Lines Matching refs:p
58 utf16le_mbc_enc_len(const UChar* p) in utf16le_mbc_enc_len() argument
60 return EncLen_UTF16[*(p+1)]; in utf16le_mbc_enc_len()
64 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
68 while (p < end1) { in is_valid_mbc_string()
69 p += utf16le_mbc_enc_len(p); in is_valid_mbc_string()
72 if (p != end) in is_valid_mbc_string()
79 utf16le_is_mbc_newline(const UChar* p, const UChar* end) in utf16le_is_mbc_newline() argument
81 if (p + 1 < end) { in utf16le_is_mbc_newline()
82 if (*p == 0x0a && *(p+1) == 0x00) in utf16le_is_mbc_newline()
87 *p == 0x0d || in utf16le_is_mbc_newline()
89 *p == 0x85) && *(p+1) == 0x00) in utf16le_is_mbc_newline()
92 if (*(p+1) == 0x20 && (*p == 0x29 || *p == 0x28)) in utf16le_is_mbc_newline()
100 utf16le_mbc_to_code(const UChar* p, const UChar* end) in utf16le_mbc_to_code() argument
103 UChar c0 = *p; in utf16le_mbc_to_code()
104 UChar c1 = *(p+1); in utf16le_mbc_to_code()
107 if (end - p < 4) return 0; in utf16le_mbc_to_code()
109 + ((((c0 & 0x3f) << 2) + (p[3] - 0xdc)) << 8) in utf16le_mbc_to_code()
110 + p[2]; in utf16le_mbc_to_code()
113 code = c1 * 256 + p[0]; in utf16le_mbc_to_code()
121 UChar* p = buf; in utf16le_code_to_mbc() local
129 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16le_code_to_mbc()
130 *p++ = (plane >> 2) + 0xd8; in utf16le_code_to_mbc()
131 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
132 *p = (high & 0x03) + 0xdc; in utf16le_code_to_mbc()
136 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
137 *p++ = (UChar )((code & 0xff00) >> 8); in utf16le_code_to_mbc()
146 const UChar* p = *pp; in utf16le_mbc_case_fold() local
148 if (ONIGENC_IS_ASCII_CODE(*p) && *(p+1) == 0) { in utf16le_mbc_case_fold()
151 if (*p == 0x49) { in utf16le_mbc_case_fold()
160 *fold++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16le_mbc_case_fold()
175 const UChar* p = *pp;
177 (*pp) += EncLen_UTF16[*(p+1)];
179 if (*(p+1) == 0) {
182 if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
186 c = *p;
220 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16le_get_case_fold_codes_by_str() argument
223 flag, p, end, items); in utf16le_get_case_fold_codes_by_str()