Lines Matching refs:p
52 euckr_mbc_enc_len(const UChar* p) in euckr_mbc_enc_len() argument
54 return EncLen_EUCKR[*p]; in euckr_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 < 0xa1 || *p == 0xff) in is_valid_mbc_string()
82 p++; in is_valid_mbc_string()
92 euckr_mbc_to_code(const UChar* p, const UChar* end) in euckr_mbc_to_code() argument
94 return onigenc_mbn_mbc_to_code(ONIG_ENCODING_EUC_KR, p, end); in euckr_mbc_to_code()
125 const UChar *p; in euckr_left_adjust_char_head() local
129 p = s; in euckr_left_adjust_char_head()
131 while (!euckr_islead(*p) && p > start) p--; in euckr_left_adjust_char_head()
132 len = enclen(ONIG_ENCODING_EUC_KR, p); in euckr_left_adjust_char_head()
133 if (p + len > s) return (UChar* )p; in euckr_left_adjust_char_head()
134 p += len; in euckr_left_adjust_char_head()
135 return (UChar* )(p + ((s - p) & ~1)); in euckr_left_adjust_char_head()