Lines Matching refs:p
74 sjis_mbc_enc_len(const UChar* p) in sjis_mbc_enc_len() argument
76 return EncLen_SJIS[*p]; in sjis_mbc_enc_len()
96 sjis_mbc_to_code(const UChar* p, const UChar* end) in sjis_mbc_to_code() argument
101 len = enc_len(ONIG_ENCODING_SJIS, p); in sjis_mbc_to_code()
102 c = *p++; in sjis_mbc_to_code()
107 if (p >= end) break; in sjis_mbc_to_code()
108 c = *p++; in sjis_mbc_to_code()
117 UChar *p = buf; in sjis_code_to_mbc() local
119 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in sjis_code_to_mbc()
120 *p++ = (UChar )(code & 0xff); in sjis_code_to_mbc()
123 if (enc_len(ONIG_ENCODING_SJIS, buf) != (p - buf)) in sjis_code_to_mbc()
126 return p - buf; in sjis_code_to_mbc()
133 const UChar* p = *pp; in sjis_mbc_to_normalize() local
135 if (ONIGENC_IS_MBC_ASCII(p)) { in sjis_mbc_to_normalize()
137 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in sjis_mbc_to_normalize()
140 *lower = *p; in sjis_mbc_to_normalize()
147 int len = enc_len(ONIG_ENCODING_SJIS, p); in sjis_mbc_to_normalize()
149 if (lower != p) { in sjis_mbc_to_normalize()
152 *lower++ = *p++; in sjis_mbc_to_normalize()
185 const UChar *p; in sjis_left_adjust_char_head() local
189 p = s; in sjis_left_adjust_char_head()
191 if (SJIS_ISMB_TRAIL(*p)) { in sjis_left_adjust_char_head()
192 while (p > start) { in sjis_left_adjust_char_head()
193 if (! SJIS_ISMB_FIRST(*--p)) { in sjis_left_adjust_char_head()
194 p++; in sjis_left_adjust_char_head()
199 len = enc_len(ONIG_ENCODING_SJIS, p); in sjis_left_adjust_char_head()
200 if (p + len > s) return (UChar* )p; in sjis_left_adjust_char_head()
201 p += len; in sjis_left_adjust_char_head()
202 return (UChar* )(p + ((s - p) & ~1)); in sjis_left_adjust_char_head()