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 utf16le_is_mbc_newline(const UChar* p, const UChar* end) in utf16le_is_mbc_newline() argument
66 if (p + 1 < end) { in utf16le_is_mbc_newline()
67 if (*p == 0x0a && *(p+1) == 0x00) in utf16le_is_mbc_newline()
72 *p == 0x0d || in utf16le_is_mbc_newline()
74 *p == 0x85) && *(p+1) == 0x00) in utf16le_is_mbc_newline()
76 if (*(p+1) == 0x20 && (*p == 0x29 || *p == 0x28)) in utf16le_is_mbc_newline()
84 utf16le_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in utf16le_mbc_to_code() argument
87 UChar c0 = *p; in utf16le_mbc_to_code()
88 UChar c1 = *(p+1); in utf16le_mbc_to_code()
92 + ((((c0 & 0x3f) << 2) + (p[3] - 0xdc)) << 8) in utf16le_mbc_to_code()
93 + p[2]; in utf16le_mbc_to_code()
96 code = c1 * 256 + p[0]; in utf16le_mbc_to_code()
104 UChar* p = buf; in utf16le_code_to_mbc() local
112 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16le_code_to_mbc()
113 *p++ = (plane >> 2) + 0xd8; in utf16le_code_to_mbc()
114 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
115 *p = (high & 0x03) + 0xdc; in utf16le_code_to_mbc()
119 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
120 *p++ = (UChar )((code & 0xff00) >> 8); in utf16le_code_to_mbc()
129 const UChar* p = *pp; in utf16le_mbc_case_fold() local
131 if (ONIGENC_IS_ASCII_CODE(*p) && *(p+1) == 0) { in utf16le_mbc_case_fold()
134 if (*p == 0x49) { in utf16le_mbc_case_fold()
143 *fold++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16le_mbc_case_fold()
158 const UChar* p = *pp;
160 (*pp) += EncLen_UTF16[*(p+1)];
162 if (*(p+1) == 0) {
165 if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
169 c = *p;
203 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16le_get_case_fold_codes_by_str() argument
206 flag, p, end, items); in utf16le_get_case_fold_codes_by_str()