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()
68 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
70 while (p < end) { in is_valid_mbc_string()
71 if (*p < 0x80) { in is_valid_mbc_string()
72 p++; in is_valid_mbc_string()
74 else if (*p < 0xa1) { in is_valid_mbc_string()
77 else if (*p < 0xff) { in is_valid_mbc_string()
78 p++; in is_valid_mbc_string()
79 if (p >= end) return FALSE; in is_valid_mbc_string()
80 if (*p < 0x40) return FALSE; in is_valid_mbc_string()
81 if (*p > 0x7e && *p < 0xa1) return FALSE; in is_valid_mbc_string()
82 if (*p == 0xff) return FALSE; in is_valid_mbc_string()
83 p++; in is_valid_mbc_string()
93 big5_mbc_to_code(const UChar* p, const UChar* end) in big5_mbc_to_code() argument
95 return onigenc_mbn_mbc_to_code(ONIG_ENCODING_BIG5, p, end); in big5_mbc_to_code()
143 const UChar *p; in big5_left_adjust_char_head() local
147 p = s; in big5_left_adjust_char_head()
149 if (BIG5_ISMB_TRAIL(*p)) { in big5_left_adjust_char_head()
150 while (p > start) { in big5_left_adjust_char_head()
151 if (! BIG5_ISMB_FIRST(*--p)) { in big5_left_adjust_char_head()
152 p++; in big5_left_adjust_char_head()
157 len = enclen(ONIG_ENCODING_BIG5, p); in big5_left_adjust_char_head()
158 if (p + len > s) return (UChar* )p; in big5_left_adjust_char_head()
159 p += len; in big5_left_adjust_char_head()
160 return (UChar* )(p + ((s - p) & ~1)); in big5_left_adjust_char_head()