Lines Matching refs:p

61 utf16le_mbc_enc_len(const UChar* p)  in utf16le_mbc_enc_len()  argument
63 return EncLen_UTF16[*(p+1)]; in utf16le_mbc_enc_len()
67 utf16le_is_mbc_newline(const UChar* p, const UChar* end) in utf16le_is_mbc_newline() argument
69 if (p + 1 < end) { in utf16le_is_mbc_newline()
70 if (*p == 0x0a && *(p+1) == 0x00) in utf16le_is_mbc_newline()
73 if ((*p == 0x0d || *p == 0x85) && *(p+1) == 0x00) in utf16le_is_mbc_newline()
75 if (*(p+1) == 0x20 && (*p == 0x29 || *p == 0x28)) in utf16le_is_mbc_newline()
83 utf16le_mbc_to_code(const UChar* p, const UChar* end) in utf16le_mbc_to_code() argument
86 UChar c0 = *p; in utf16le_mbc_to_code()
87 UChar c1 = *(p+1); in utf16le_mbc_to_code()
91 + ((((c0 & 0x3f) << 2) + (p[3] - 0xdc)) << 8) in utf16le_mbc_to_code()
92 + p[2]; in utf16le_mbc_to_code()
95 code = c1 * 256 + p[0]; in utf16le_mbc_to_code()
103 UChar* p = buf; in utf16le_code_to_mbc() local
111 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16le_code_to_mbc()
112 *p++ = (plane >> 2) + 0xd8; in utf16le_code_to_mbc()
113 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
114 *p = (high & 0x02) + 0xdc; in utf16le_code_to_mbc()
118 *p++ = (UChar )(code & 0xff); in utf16le_code_to_mbc()
119 *p++ = (UChar )((code & 0xff00) >> 8); in utf16le_code_to_mbc()
128 const UChar* p = *pp; in utf16le_mbc_to_normalize() local
130 if (*(p+1) == 0) { in utf16le_mbc_to_normalize()
133 ONIGENC_IS_MBC_ASCII(p)) || in utf16le_mbc_to_normalize()
135 !ONIGENC_IS_MBC_ASCII(p))) { in utf16le_mbc_to_normalize()
136 *lower = ONIGENC_ISO_8859_1_TO_LOWER_CASE(*p); in utf16le_mbc_to_normalize()
139 *lower = *p; in utf16le_mbc_to_normalize()
145 int len = EncLen_UTF16[*(p+1)]; in utf16le_mbc_to_normalize()
146 if (lower != p) { in utf16le_mbc_to_normalize()
149 *lower++ = *p++; in utf16le_mbc_to_normalize()
160 const UChar* p = *pp; in utf16le_is_mbc_ambiguous() local
162 (*pp) += EncLen_UTF16[*(p+1)]; in utf16le_is_mbc_ambiguous()
164 if (*(p+1) == 0) { in utf16le_is_mbc_ambiguous()
168 ONIGENC_IS_MBC_ASCII(p)) || in utf16le_is_mbc_ambiguous()
170 !ONIGENC_IS_MBC_ASCII(p))) { in utf16le_is_mbc_ambiguous()
171 c = *p; in utf16le_is_mbc_ambiguous()