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()
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()
65 if (*p == 0x8e) { in is_valid_mbc_string()
66 p++; in is_valid_mbc_string()
67 if (p >= end) return FALSE; in is_valid_mbc_string()
68 if (*p < 0xa1 || *p > 0xb0) return FALSE; in is_valid_mbc_string()
69 p++; in is_valid_mbc_string()
70 if (p >= end) return FALSE; in is_valid_mbc_string()
71 if (*p < 0xa1 || *p == 0xff) in is_valid_mbc_string()
73 p++; in is_valid_mbc_string()
74 if (p >= end) return FALSE; in is_valid_mbc_string()
75 if (*p < 0xa1 || *p == 0xff) in is_valid_mbc_string()
77 p++; in is_valid_mbc_string()
82 else if (*p < 0xff) { 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()
97 euctw_mbc_to_code(const UChar* p, const UChar* end) in euctw_mbc_to_code() argument
99 return onigenc_mbn_mbc_to_code(ONIG_ENCODING_EUC_TW, p, end); in euctw_mbc_to_code()
130 const UChar *p; in euctw_left_adjust_char_head() local
134 p = s; in euctw_left_adjust_char_head()
136 while (!euctw_islead(*p) && p > start) p--; in euctw_left_adjust_char_head()
137 len = enclen(ONIG_ENCODING_EUC_TW, p); in euctw_left_adjust_char_head()
138 if (p + len > s) return (UChar* )p; in euctw_left_adjust_char_head()
139 p += len; in euctw_left_adjust_char_head()
140 return (UChar* )(p + ((s - p) & ~1)); in euctw_left_adjust_char_head()