Lines Matching refs:p

54 mbc_enc_len(const UChar* p)  in mbc_enc_len()  argument
56 return EncLen_EUCJP[*p]; in mbc_enc_len()
60 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
62 while (p < end) { in is_valid_mbc_string()
63 if (*p < 0x80) { in is_valid_mbc_string()
64 p++; in is_valid_mbc_string()
66 else if (*p > 0xa0) { in is_valid_mbc_string()
67 if (*p == 0xff) return FALSE; in is_valid_mbc_string()
68 p++; in is_valid_mbc_string()
69 if (p >= end) return FALSE; in is_valid_mbc_string()
70 if (*p < 0xa1 || *p == 0xff) return FALSE; in is_valid_mbc_string()
71 p++; in is_valid_mbc_string()
73 else if (*p == 0x8e) { in is_valid_mbc_string()
74 p++; in is_valid_mbc_string()
75 if (p >= end) return FALSE; in is_valid_mbc_string()
76 if (*p < 0xa1 || *p > 0xdf) return FALSE; in is_valid_mbc_string()
77 p++; in is_valid_mbc_string()
79 else if (*p == 0x8f) { in is_valid_mbc_string()
80 p++; in is_valid_mbc_string()
81 if (p >= end) return FALSE; in is_valid_mbc_string()
82 if (*p < 0xa1 || *p == 0xff) return FALSE; in is_valid_mbc_string()
83 p++; in is_valid_mbc_string()
84 if (p >= end) return FALSE; in is_valid_mbc_string()
85 if (*p < 0xa1 || *p == 0xff) return FALSE; in is_valid_mbc_string()
86 p++; in is_valid_mbc_string()
96 mbc_to_code(const UChar* p, const UChar* end) in mbc_to_code() argument
101 len = enclen(ONIG_ENCODING_EUC_JP, p); in mbc_to_code()
102 n = (OnigCodePoint )*p++; in mbc_to_code()
106 if (p >= end) break; in mbc_to_code()
107 c = *p++; in mbc_to_code()
145 UChar *p = buf; in code_to_mbc() local
147 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in code_to_mbc()
148 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
149 *p++ = (UChar )(code & 0xff); in code_to_mbc()
152 if (enclen(ONIG_ENCODING_EUC_JP, buf) != (p - buf)) in code_to_mbc()
155 return p - buf; in code_to_mbc()
163 const UChar* p = *pp; in mbc_case_fold() local
165 if (ONIGENC_IS_MBC_ASCII(p)) { in mbc_case_fold()
166 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in mbc_case_fold()
173 len = enclen(ONIG_ENCODING_EUC_JP, p); in mbc_case_fold()
175 *lower++ = *p++; in mbc_case_fold()
188 const UChar *p; in left_adjust_char_head() local
192 p = s; in left_adjust_char_head()
194 while (!eucjp_islead(*p) && p > start) p--; in left_adjust_char_head()
195 len = enclen(ONIG_ENCODING_EUC_JP, p); in left_adjust_char_head()
196 if (p + len > s) return (UChar* )p; in left_adjust_char_head()
197 p += len; in left_adjust_char_head()
198 return (UChar* )(p + ((s - p) & ~1)); in left_adjust_char_head()
230 property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in property_name_to_ctype() argument
233 int len = end - p; in property_name_to_ctype()
237 xmemcpy(q, p, (size_t )len); in property_name_to_ctype()