Lines Matching refs:p

55 utf16be_mbc_enc_len(const UChar* p)  in utf16be_mbc_enc_len()  argument
57 return EncLen_UTF16[*p]; in utf16be_mbc_enc_len()
61 utf16be_is_mbc_newline(const UChar* p, const UChar* end) in utf16be_is_mbc_newline() argument
63 if (p + 1 < end) { in utf16be_is_mbc_newline()
64 if (*(p+1) == 0x0a && *p == 0x00) in utf16be_is_mbc_newline()
67 if ((*(p+1) == 0x0d || *(p+1) == 0x85) && *p == 0x00) in utf16be_is_mbc_newline()
69 if (*p == 0x20 && (*(p+1) == 0x29 || *(p+1) == 0x28)) in utf16be_is_mbc_newline()
77 utf16be_mbc_to_code(const UChar* p, const UChar* end) in utf16be_mbc_to_code() argument
81 if (UTF16_IS_SURROGATE_FIRST(*p)) { in utf16be_mbc_to_code()
82 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16) in utf16be_mbc_to_code()
83 + ((((p[1] & 0x3f) << 2) + (p[2] - 0xdc)) << 8) in utf16be_mbc_to_code()
84 + p[3]; in utf16be_mbc_to_code()
87 code = p[0] * 256 + p[1]; in utf16be_mbc_to_code()
101 UChar* p = buf; in utf16be_code_to_mbc() local
107 *p++ = (plane >> 2) + 0xd8; in utf16be_code_to_mbc()
109 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16be_code_to_mbc()
110 *p++ = (high & 0x02) + 0xdc; in utf16be_code_to_mbc()
111 *p = (UChar )(code & 0xff); in utf16be_code_to_mbc()
115 *p++ = (UChar )((code & 0xff00) >> 8); in utf16be_code_to_mbc()
116 *p++ = (UChar )(code & 0xff); in utf16be_code_to_mbc()
125 const UChar* p = *pp; in utf16be_mbc_to_normalize() local
127 if (*p == 0) { in utf16be_mbc_to_normalize()
128 p++; in utf16be_mbc_to_normalize()
131 ONIGENC_IS_MBC_ASCII(p)) || in utf16be_mbc_to_normalize()
133 !ONIGENC_IS_MBC_ASCII(p))) { in utf16be_mbc_to_normalize()
134 *lower = ONIGENC_ISO_8859_1_TO_LOWER_CASE(*p); in utf16be_mbc_to_normalize()
137 *lower = *p; in utf16be_mbc_to_normalize()
145 len = EncLen_UTF16[*p]; in utf16be_mbc_to_normalize()
146 if (lower != p) { in utf16be_mbc_to_normalize()
149 *lower++ = *p++; in utf16be_mbc_to_normalize()
160 const UChar* p = *pp; in utf16be_is_mbc_ambiguous() local
162 (*pp) += EncLen_UTF16[*p]; in utf16be_is_mbc_ambiguous()
164 if (*p == 0) { in utf16be_is_mbc_ambiguous()
167 p++; in utf16be_is_mbc_ambiguous()
169 ONIGENC_IS_MBC_ASCII(p)) || in utf16be_is_mbc_ambiguous()
171 !ONIGENC_IS_MBC_ASCII(p))) { in utf16be_is_mbc_ambiguous()
172 c = *p; in utf16be_is_mbc_ambiguous()