Lines Matching refs:p

71 mbc_enc_len(const UChar* p)  in mbc_enc_len()  argument
73 return EncLen_UTF8[*p]; in mbc_enc_len()
77 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
81 while (p < end) { in is_valid_mbc_string()
82 if (! utf8_islead(*p)) in is_valid_mbc_string()
85 len = mbc_enc_len(p++); in is_valid_mbc_string()
88 if (p == end) in is_valid_mbc_string()
91 if (! utf8_istail(*p++)) in is_valid_mbc_string()
101 mbc_to_code(const UChar* p, const UChar* end) in mbc_to_code() argument
106 len = mbc_enc_len(p); in mbc_to_code()
107 if (len > (int )(end - p)) len = (int )(end - p); in mbc_to_code()
109 c = *p++; in mbc_to_code()
114 c = *p++; in mbc_to_code()
159 UChar *p = buf; in code_to_mbc() local
162 *p++ = (UChar )(((code>>6)& 0x1f) | 0xc0); in code_to_mbc()
165 *p++ = (UChar )(((code>>12) & 0x0f) | 0xe0); in code_to_mbc()
166 *p++ = UTF8_TRAILS(code, 6); in code_to_mbc()
169 *p++ = (UChar )(((code>>18) & 0x07) | 0xf0); in code_to_mbc()
170 *p++ = UTF8_TRAILS(code, 12); in code_to_mbc()
171 *p++ = UTF8_TRAILS(code, 6); in code_to_mbc()
175 *p++ = (UChar )(((code>>24) & 0x03) | 0xf8); in code_to_mbc()
176 *p++ = UTF8_TRAILS(code, 18); in code_to_mbc()
177 *p++ = UTF8_TRAILS(code, 12); in code_to_mbc()
178 *p++ = UTF8_TRAILS(code, 6); in code_to_mbc()
181 *p++ = (UChar )(((code>>30) & 0x01) | 0xfc); in code_to_mbc()
182 *p++ = UTF8_TRAILS(code, 24); in code_to_mbc()
183 *p++ = UTF8_TRAILS(code, 18); in code_to_mbc()
184 *p++ = UTF8_TRAILS(code, 12); in code_to_mbc()
185 *p++ = UTF8_TRAILS(code, 6); in code_to_mbc()
190 *p = 0xfe; in code_to_mbc()
194 *p = 0xff; in code_to_mbc()
202 *p++ = UTF8_TRAIL0(code); in code_to_mbc()
203 return (int )(p - buf); in code_to_mbc()
211 const UChar* p = *pp; in mbc_case_fold() local
213 if (ONIGENC_IS_MBC_ASCII(p)) { in mbc_case_fold()
216 if (*p == 0x49) { in mbc_case_fold()
225 *fold = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in mbc_case_fold()
247 const UChar *p; in left_adjust_char_head() local
250 p = s; in left_adjust_char_head()
252 while (!utf8_islead(*p) && p > start) p--; in left_adjust_char_head()
253 return (UChar* )p; in left_adjust_char_head()
258 const OnigUChar* p, const OnigUChar* end, OnigCaseFoldCodeItem items[]) in get_case_fold_codes_by_str() argument
261 flag, p, end, items); in get_case_fold_codes_by_str()