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 mbc_to_code(const UChar* p, const UChar* end) in mbc_to_code() argument
65 len = enclen(ONIG_ENCODING_EUC_JP, p); in mbc_to_code()
66 n = (OnigCodePoint )*p++; in mbc_to_code()
70 if (p >= end) break; in mbc_to_code()
71 c = *p++; in mbc_to_code()
109 UChar *p = buf; in code_to_mbc() local
111 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in code_to_mbc()
112 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in code_to_mbc()
113 *p++ = (UChar )(code & 0xff); in code_to_mbc()
116 if (enclen(ONIG_ENCODING_EUC_JP, buf) != (p - buf)) in code_to_mbc()
119 return p - buf; in code_to_mbc()
127 const UChar* p = *pp; in mbc_case_fold() local
129 if (ONIGENC_IS_MBC_ASCII(p)) { in mbc_case_fold()
130 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in mbc_case_fold()
137 len = enclen(ONIG_ENCODING_EUC_JP, p); in mbc_case_fold()
139 *lower++ = *p++; in mbc_case_fold()
152 const UChar *p; in left_adjust_char_head() local
156 p = s; in left_adjust_char_head()
158 while (!eucjp_islead(*p) && p > start) p--; in left_adjust_char_head()
159 len = enclen(ONIG_ENCODING_EUC_JP, p); in left_adjust_char_head()
160 if (p + len > s) return (UChar* )p; in left_adjust_char_head()
161 p += len; in left_adjust_char_head()
162 return (UChar* )(p + ((s - p) & ~1)); in left_adjust_char_head()
208 property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end) in property_name_to_ctype() argument
214 if (onig_st_lookup_strend(PropertyNameTable, p, end, &ctype) == 0) { in property_name_to_ctype()
215 return onigenc_minimum_property_name_to_ctype(enc, p, end); in property_name_to_ctype()