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()
64 utf16be_is_mbc_newline(const UChar* p, const UChar* end) in utf16be_is_mbc_newline() argument
66 if (p + 1 < end) { in utf16be_is_mbc_newline()
67 if (*(p+1) == 0x0a && *p == 0x00) in utf16be_is_mbc_newline()
72 *(p+1) == 0x0d || in utf16be_is_mbc_newline()
74 *(p+1) == 0x85) && *p == 0x00) in utf16be_is_mbc_newline()
77 if (*p == 0x20 && (*(p+1) == 0x29 || *(p+1) == 0x28)) in utf16be_is_mbc_newline()
85 utf16be_mbc_to_code(const UChar* p, const UChar* end) in utf16be_mbc_to_code() argument
89 if (UTF16_IS_SURROGATE_FIRST(*p)) { in utf16be_mbc_to_code()
90 if (end - p < 4) return 0; in utf16be_mbc_to_code()
91 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16) in utf16be_mbc_to_code()
92 + ((((p[1] & 0x3f) << 2) + (p[2] - 0xdc)) << 8) in utf16be_mbc_to_code()
93 + p[3]; in utf16be_mbc_to_code()
96 if (end - p < 2) return 0; in utf16be_mbc_to_code()
97 code = p[0] * 256 + p[1]; in utf16be_mbc_to_code()
111 UChar* p = buf; in utf16be_code_to_mbc() local
117 *p++ = (plane >> 2) + 0xd8; in utf16be_code_to_mbc()
119 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16be_code_to_mbc()
120 *p++ = (high & 0x03) + 0xdc; in utf16be_code_to_mbc()
121 *p = (UChar )(code & 0xff); in utf16be_code_to_mbc()
125 *p++ = (UChar )((code & 0xff00) >> 8); in utf16be_code_to_mbc()
126 *p++ = (UChar )(code & 0xff); in utf16be_code_to_mbc()
135 const UChar* p = *pp; in utf16be_mbc_case_fold() local
137 if (ONIGENC_IS_ASCII_CODE(*(p+1)) && *p == 0) { in utf16be_mbc_case_fold()
138 p++; in utf16be_mbc_case_fold()
141 if (*p == 0x49) { in utf16be_mbc_case_fold()
151 *fold = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16be_mbc_case_fold()
164 const UChar* p = *pp;
166 (*pp) += EncLen_UTF16[*p];
168 if (*p == 0) {
171 p++;
172 if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
176 c = *p;
211 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16be_get_case_fold_codes_by_str() argument
214 flag, p, end, items); in utf16be_get_case_fold_codes_by_str()