Lines Matching refs:p
52 big5_mbc_enc_len(const UChar* p) in big5_mbc_enc_len() argument
54 return EncLen_BIG5[*p]; in big5_mbc_enc_len()
58 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
60 while (p < end) { in is_valid_mbc_string()
61 if (*p < 0x80) { in is_valid_mbc_string()
62 p++; in is_valid_mbc_string()
64 else if (*p < 0xa1) { in is_valid_mbc_string()
67 else if (*p < 0xff) { in is_valid_mbc_string()
68 p++; in is_valid_mbc_string()
69 if (p >= end) return FALSE; in is_valid_mbc_string()
70 if (*p < 0x40) return FALSE; in is_valid_mbc_string()
71 if (*p > 0x7e && *p < 0xa1) return FALSE; in is_valid_mbc_string()
72 if (*p == 0xff) return FALSE; in is_valid_mbc_string()
73 p++; in is_valid_mbc_string()
83 big5_mbc_to_code(const UChar* p, const UChar* end) in big5_mbc_to_code() argument
85 return onigenc_mbn_mbc_to_code(ONIG_ENCODING_BIG5, p, end); in big5_mbc_to_code()
142 const UChar *p; in big5_left_adjust_char_head() local
146 p = s; in big5_left_adjust_char_head()
148 if (BIG5_ISMB_TRAIL(*p)) { in big5_left_adjust_char_head()
149 while (p > start) { in big5_left_adjust_char_head()
150 if (! BIG5_ISMB_FIRST(*--p)) { in big5_left_adjust_char_head()
151 p++; in big5_left_adjust_char_head()
156 len = enclen(ONIG_ENCODING_BIG5, p); in big5_left_adjust_char_head()
157 if (p + len > s) return (UChar* )p; in big5_left_adjust_char_head()
158 p += len; in big5_left_adjust_char_head()
159 return (UChar* )(p + ((s - p) & ~1)); in big5_left_adjust_char_head()