Lines Matching refs:p

98 utf16be_mbc_enc_len(const UChar* p)  in utf16be_mbc_enc_len()  argument
100 return EncLen_UTF16[*p]; in utf16be_mbc_enc_len()
128 utf16be_is_mbc_newline(const UChar* p, const UChar* end) in utf16be_is_mbc_newline() argument
130 if (p + 1 < end) { in utf16be_is_mbc_newline()
131 if (*(p+1) == 0x0a && *p == 0x00) in utf16be_is_mbc_newline()
136 *(p+1) == 0x0d || in utf16be_is_mbc_newline()
138 *(p+1) == 0x85) && *p == 0x00) in utf16be_is_mbc_newline()
141 if (*p == 0x20 && (*(p+1) == 0x29 || *(p+1) == 0x28)) in utf16be_is_mbc_newline()
149 utf16be_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in utf16be_mbc_to_code() argument
153 if (UTF16_IS_SURROGATE_FIRST(*p)) { in utf16be_mbc_to_code()
154 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16) in utf16be_mbc_to_code()
155 + ((((p[1] & 0x3f) << 2) + (p[2] - 0xdc)) << 8) in utf16be_mbc_to_code()
156 + p[3]; in utf16be_mbc_to_code()
159 code = p[0] * 256 + p[1]; in utf16be_mbc_to_code()
181 UChar* p = buf; in utf16be_code_to_mbc() local
187 *p++ = (plane >> 2) + 0xd8; in utf16be_code_to_mbc()
189 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16be_code_to_mbc()
190 *p++ = (high & 0x03) + 0xdc; in utf16be_code_to_mbc()
191 *p = (UChar )(code & 0xff); in utf16be_code_to_mbc()
195 *p++ = (UChar )((code & 0xff00) >> 8); in utf16be_code_to_mbc()
196 *p++ = (UChar )(code & 0xff); in utf16be_code_to_mbc()
205 const UChar* p = *pp; in utf16be_mbc_case_fold() local
207 if (ONIGENC_IS_ASCII_CODE(*(p+1)) && *p == 0) { in utf16be_mbc_case_fold()
208 p++; in utf16be_mbc_case_fold()
211 if (*p == 0x49) { in utf16be_mbc_case_fold()
221 *fold = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16be_mbc_case_fold()
248 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16be_get_case_fold_codes_by_str() argument
251 flag, p, end, items); in utf16be_get_case_fold_codes_by_str()