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()
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 < 0xa1 || *p == 0xff) in is_valid_mbc_string()
72 p++; in is_valid_mbc_string()
82 euckr_mbc_to_code(const UChar* p, const UChar* end) in euckr_mbc_to_code() argument
84 return onigenc_mbn_mbc_to_code(ONIG_ENCODING_EUC_KR, p, end); in euckr_mbc_to_code()
124 const UChar *p; in euckr_left_adjust_char_head() local
128 p = s; in euckr_left_adjust_char_head()
130 while (!euckr_islead(*p) && p > start) p--; in euckr_left_adjust_char_head()
131 len = enclen(ONIG_ENCODING_EUC_KR, p); in euckr_left_adjust_char_head()
132 if (p + len > s) return (UChar* )p; in euckr_left_adjust_char_head()
133 p += len; in euckr_left_adjust_char_head()
134 return (UChar* )(p + ((s - p) & ~1)); in euckr_left_adjust_char_head()