Lines Matching refs:p

52 utf16be_mbc_enc_len(const UChar* p)  in utf16be_mbc_enc_len()  argument
54 return EncLen_UTF16[*p]; in utf16be_mbc_enc_len()
58 utf16be_is_mbc_newline(const UChar* p, const UChar* end) in utf16be_is_mbc_newline() argument
60 if (p + 1 < end) { in utf16be_is_mbc_newline()
61 if (*(p+1) == 0x0a && *p == 0x00) in utf16be_is_mbc_newline()
66 *(p+1) == 0x0d || in utf16be_is_mbc_newline()
68 *(p+1) == 0x85) && *p == 0x00) in utf16be_is_mbc_newline()
70 if (*p == 0x20 && (*(p+1) == 0x29 || *(p+1) == 0x28)) in utf16be_is_mbc_newline()
78 utf16be_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in utf16be_mbc_to_code() argument
82 if (UTF16_IS_SURROGATE_FIRST(*p)) { in utf16be_mbc_to_code()
83 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16) in utf16be_mbc_to_code()
84 + ((((p[1] & 0x3f) << 2) + (p[2] - 0xdc)) << 8) in utf16be_mbc_to_code()
85 + p[3]; in utf16be_mbc_to_code()
88 code = p[0] * 256 + p[1]; in utf16be_mbc_to_code()
102 UChar* p = buf; in utf16be_code_to_mbc() local
108 *p++ = (plane >> 2) + 0xd8; in utf16be_code_to_mbc()
110 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16be_code_to_mbc()
111 *p++ = (high & 0x03) + 0xdc; in utf16be_code_to_mbc()
112 *p = (UChar )(code & 0xff); in utf16be_code_to_mbc()
116 *p++ = (UChar )((code & 0xff00) >> 8); in utf16be_code_to_mbc()
117 *p++ = (UChar )(code & 0xff); in utf16be_code_to_mbc()
126 const UChar* p = *pp; in utf16be_mbc_case_fold() local
128 if (ONIGENC_IS_ASCII_CODE(*(p+1)) && *p == 0) { in utf16be_mbc_case_fold()
129 p++; in utf16be_mbc_case_fold()
132 if (*p == 0x49) { in utf16be_mbc_case_fold()
142 *fold = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16be_mbc_case_fold()
155 const UChar* p = *pp;
157 (*pp) += EncLen_UTF16[*p];
159 if (*p == 0) {
162 p++;
163 if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
167 c = *p;
202 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16be_get_case_fold_codes_by_str() argument
205 flag, p, end, items); in utf16be_get_case_fold_codes_by_str()