Lines Matching refs:p
52 euctw_mbc_enc_len(const UChar* p) in euctw_mbc_enc_len() argument
54 return EncLen_EUCTW[*p]; in euctw_mbc_enc_len()
72 is_valid_mbc_string(const UChar* p, const UChar* end) in is_valid_mbc_string() argument
74 while (p < end) { in is_valid_mbc_string()
75 if (*p < 0x80) { in is_valid_mbc_string()
76 p++; in is_valid_mbc_string()
78 else if (*p < 0xa1) { in is_valid_mbc_string()
79 if (*p == 0x8e) { in is_valid_mbc_string()
80 p++; in is_valid_mbc_string()
81 if (p >= end) return FALSE; in is_valid_mbc_string()
82 if (*p < 0xa1 || *p > 0xb0) return FALSE; in is_valid_mbc_string()
83 p++; in is_valid_mbc_string()
84 if (p >= end) return FALSE; in is_valid_mbc_string()
85 if (*p < 0xa1 || *p == 0xff) in is_valid_mbc_string()
87 p++; in is_valid_mbc_string()
88 if (p >= end) return FALSE; in is_valid_mbc_string()
89 if (*p < 0xa1 || *p == 0xff) in is_valid_mbc_string()
91 p++; in is_valid_mbc_string()
96 else if (*p < 0xff) { in is_valid_mbc_string()
97 p++; in is_valid_mbc_string()
98 if (p >= end) return FALSE; in is_valid_mbc_string()
99 if (*p < 0xa1 || *p == 0xff) in is_valid_mbc_string()
101 p++; in is_valid_mbc_string()
111 euctw_mbc_to_code(const UChar* p, const UChar* end) in euctw_mbc_to_code() argument
113 return onigenc_mbn_mbc_to_code(ONIG_ENCODING_EUC_TW, p, end); in euctw_mbc_to_code()
144 const UChar *p; in euctw_left_adjust_char_head() local
148 p = s; in euctw_left_adjust_char_head()
150 while (!euctw_islead(*p) && p > start) p--; in euctw_left_adjust_char_head()
151 len = enclen(ONIG_ENCODING_EUC_TW, p); in euctw_left_adjust_char_head()
152 if (p + len > s) return (UChar* )p; in euctw_left_adjust_char_head()
153 p += len; in euctw_left_adjust_char_head()
154 return (UChar* )(p + ((s - p) & ~1)); in euctw_left_adjust_char_head()