Lines Matching refs:p

52 utf16be_mbc_enc_len(const UChar* p)  in utf16be_mbc_enc_len()  argument
54 return EncLen_UTF16[*p]; in utf16be_mbc_enc_len()
58 utf16be_is_mbc_newline(const UChar* p, const UChar* end) in utf16be_is_mbc_newline() argument
60 if (p + 1 < end) { in utf16be_is_mbc_newline()
61 if (*(p+1) == 0x0a && *p == 0x00) in utf16be_is_mbc_newline()
66 *(p+1) == 0x0d || in utf16be_is_mbc_newline()
68 *(p+1) == 0x85) && *p == 0x00) in utf16be_is_mbc_newline()
70 if (*p == 0x20 && (*(p+1) == 0x29 || *(p+1) == 0x28)) in utf16be_is_mbc_newline()
78 utf16be_mbc_to_code(const UChar* p, const UChar* end) in utf16be_mbc_to_code() argument
82 if (UTF16_IS_SURROGATE_FIRST(*p)) { in utf16be_mbc_to_code()
83 if (end - p < 4) return 0; in utf16be_mbc_to_code()
84 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16) in utf16be_mbc_to_code()
85 + ((((p[1] & 0x3f) << 2) + (p[2] - 0xdc)) << 8) in utf16be_mbc_to_code()
86 + p[3]; in utf16be_mbc_to_code()
89 if (end - p < 2) return 0; in utf16be_mbc_to_code()
90 code = p[0] * 256 + p[1]; in utf16be_mbc_to_code()
104 UChar* p = buf; in utf16be_code_to_mbc() local
110 *p++ = (plane >> 2) + 0xd8; in utf16be_code_to_mbc()
112 *p++ = ((plane & 0x03) << 6) + (high >> 2); in utf16be_code_to_mbc()
113 *p++ = (high & 0x03) + 0xdc; in utf16be_code_to_mbc()
114 *p = (UChar )(code & 0xff); in utf16be_code_to_mbc()
118 *p++ = (UChar )((code & 0xff00) >> 8); in utf16be_code_to_mbc()
119 *p++ = (UChar )(code & 0xff); in utf16be_code_to_mbc()
128 const UChar* p = *pp; in utf16be_mbc_case_fold() local
130 if (ONIGENC_IS_ASCII_CODE(*(p+1)) && *p == 0) { in utf16be_mbc_case_fold()
131 p++; in utf16be_mbc_case_fold()
134 if (*p == 0x49) { in utf16be_mbc_case_fold()
144 *fold = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in utf16be_mbc_case_fold()
157 const UChar* p = *pp;
159 (*pp) += EncLen_UTF16[*p];
161 if (*p == 0) {
164 p++;
165 if (*p == 0xdf && (flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
169 c = *p;
204 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in utf16be_get_case_fold_codes_by_str() argument
207 flag, p, end, items); in utf16be_get_case_fold_codes_by_str()