Lines Matching refs:p

110 utf16le_mbc_enc_len(const UChar* p)  in utf16le_mbc_enc_len()  argument
112 return EncLen_UTF16[*(p+1)]; in utf16le_mbc_enc_len()
116 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
120 while (p < end1) { in is_valid_mbc_string()
121 int len = utf16le_mbc_enc_len(p); in is_valid_mbc_string()
123 if (p + 3 < end && ! UTF16_IS_SURROGATE_SECOND(*(p + 3))) in is_valid_mbc_string()
127 if (UTF16_IS_SURROGATE_SECOND(*(p + 1))) in is_valid_mbc_string()
130 p += len; in is_valid_mbc_string()
133 if (p != end) in is_valid_mbc_string()
140 utf16le_is_mbc_newline(const UChar* p, const UChar* end) in utf16le_is_mbc_newline() argument
142 if (p + 1 < end) { in utf16le_is_mbc_newline()
143 if (*p == 0x0a && *(p+1) == 0x00) in utf16le_is_mbc_newline()
148 *p == 0x0d || in utf16le_is_mbc_newline()
150 *p == 0x85) && *(p+1) == 0x00) in utf16le_is_mbc_newline()
153 if (*(p+1) == 0x20 && (*p == 0x29 || *p == 0x28)) in utf16le_is_mbc_newline()
161 utf16le_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in utf16le_mbc_to_code() argument
164 UChar c0 = *p; in utf16le_mbc_to_code()
165 UChar c1 = *(p+1); in utf16le_mbc_to_code()
169 + ((((c0 & 0x3f) << 2) + (p[3] - 0xdc)) << 8) in utf16le_mbc_to_code()
170 + p[2]; in utf16le_mbc_to_code()
173 code = c1 * 256 + p[0]; in utf16le_mbc_to_code()
181 UChar* p = buf; in utf16le_code_to_mbc() local
189 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16le_code_to_mbc()
190 *p++ = (plane >> 2) + 0xd8; in utf16le_code_to_mbc()
191 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
192 *p = (high & 0x03) + 0xdc; in utf16le_code_to_mbc()
196 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
197 *p++ = (UChar )((code & 0xff00) >> 8); in utf16le_code_to_mbc()
206 const UChar* p = *pp; in utf16le_mbc_case_fold() local
208 if (ONIGENC_IS_ASCII_CODE(*p) && *(p+1) == 0) { in utf16le_mbc_case_fold()
211 if (*p == 0x49) { in utf16le_mbc_case_fold()
220 *fold++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16le_mbc_case_fold()
248 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16le_get_case_fold_codes_by_str() argument
251 flag, p, end, items); in utf16le_get_case_fold_codes_by_str()