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()
126 UChar *p = buf; in code_to_mbc() local
128 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in code_to_mbc()
129 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
130 *p++ = (UChar )(code & 0xff); in code_to_mbc()
133 if (enclen(ONIG_ENCODING_EUC_JP, buf) != (p - buf)) in code_to_mbc()
136 return (int )(p - buf); in code_to_mbc()
144 const UChar* p = *pp; in mbc_case_fold() local
146 if (ONIGENC_IS_MBC_ASCII(p)) { in mbc_case_fold()
147 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in mbc_case_fold()
154 len = enclen(ONIG_ENCODING_EUC_JP, p); in mbc_case_fold()
156 *lower++ = *p++; in mbc_case_fold()
169 const UChar *p; in left_adjust_char_head() local
173 p = s; in left_adjust_char_head()
175 while (!eucjp_islead(*p) && p > start) p--; in left_adjust_char_head()
176 len = enclen(ONIG_ENCODING_EUC_JP, p); in left_adjust_char_head()
177 if (p + len > s) return (UChar* )p; in left_adjust_char_head()
178 p += len; in left_adjust_char_head()
179 return (UChar* )(p + ((s - p) & ~1)); in left_adjust_char_head()
211 property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in property_name_to_ctype() argument
214 int len = (int )(end - p); in property_name_to_ctype()
218 xmemcpy(q, p, (size_t )len); in property_name_to_ctype()