Lines Matching refs:p

74 mbc_enc_len(const UChar* p)  in mbc_enc_len()  argument
76 return EncLen_SJIS[*p]; in mbc_enc_len()
96 mbc_to_code(const UChar* p, const UChar* end) in mbc_to_code() argument
101 len = enclen(ONIG_ENCODING_SJIS, p); in mbc_to_code()
102 c = *p++; in mbc_to_code()
107 if (p >= end) break; in mbc_to_code()
108 c = *p++; in mbc_to_code()
117 UChar *p = buf; in code_to_mbc() local
119 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
120 *p++ = (UChar )(code & 0xff); in code_to_mbc()
123 if (enclen(ONIG_ENCODING_SJIS, buf) != (p - buf)) in code_to_mbc()
126 return p - buf; in code_to_mbc()
133 const UChar* p = *pp; in mbc_case_fold() local
135 if (ONIGENC_IS_MBC_ASCII(p)) { in mbc_case_fold()
136 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in mbc_case_fold()
142 int len = enclen(ONIG_ENCODING_SJIS, p); in mbc_case_fold()
145 *lower++ = *p++; in mbc_case_fold()
181 const UChar *p; in left_adjust_char_head() local
185 p = s; in left_adjust_char_head()
187 if (SJIS_ISMB_TRAIL(*p)) { in left_adjust_char_head()
188 while (p > start) { in left_adjust_char_head()
189 if (! SJIS_ISMB_FIRST(*--p)) { in left_adjust_char_head()
190 p++; in left_adjust_char_head()
195 len = enclen(ONIG_ENCODING_SJIS, 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()
242 property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in property_name_to_ctype() argument
248 if (onig_st_lookup_strend(PropertyNameTable, p, end, &ctype) == 0) { in property_name_to_ctype()
249 return onigenc_minimum_property_name_to_ctype(enc, p, end); in property_name_to_ctype()