Lines Matching refs:p
54 eucjp_mbc_enc_len(const UChar* p) in eucjp_mbc_enc_len() argument
56 return EncLen_EUCJP[*p]; in eucjp_mbc_enc_len()
60 eucjp_mbc_to_code(const UChar* p, const UChar* end) in eucjp_mbc_to_code() argument
65 len = enc_len(ONIG_ENCODING_EUC_JP, p); in eucjp_mbc_to_code()
66 n = (OnigCodePoint )*p++; in eucjp_mbc_to_code()
70 if (p >= end) break; in eucjp_mbc_to_code()
71 c = *p++; in eucjp_mbc_to_code()
108 UChar *p = buf; in eucjp_code_to_mbc() local
110 if ((code & 0xff0000) != 0) *p++ = (UChar )(((code >> 16) & 0xff)); in eucjp_code_to_mbc()
111 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff)); in eucjp_code_to_mbc()
112 *p++ = (UChar )(code & 0xff); in eucjp_code_to_mbc()
115 if (enc_len(ONIG_ENCODING_EUC_JP, buf) != (p - buf)) in eucjp_code_to_mbc()
118 return p - buf; in eucjp_code_to_mbc()
126 const UChar* p = *pp; in eucjp_mbc_to_normalize() local
128 if (ONIGENC_IS_MBC_ASCII(p)) { in eucjp_mbc_to_normalize()
130 *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p); in eucjp_mbc_to_normalize()
133 *lower = *p; in eucjp_mbc_to_normalize()
140 len = enc_len(ONIG_ENCODING_EUC_JP, p); in eucjp_mbc_to_normalize()
141 if (lower != p) { in eucjp_mbc_to_normalize()
144 *lower++ = *p++; in eucjp_mbc_to_normalize()
179 const UChar *p; in eucjp_left_adjust_char_head() local
183 p = s; in eucjp_left_adjust_char_head()
185 while (!eucjp_islead(*p) && p > start) p--; in eucjp_left_adjust_char_head()
186 len = enc_len(ONIG_ENCODING_EUC_JP, p); in eucjp_left_adjust_char_head()
187 if (p + len > s) return (UChar* )p; in eucjp_left_adjust_char_head()
188 p += len; in eucjp_left_adjust_char_head()
189 return (UChar* )(p + ((s - p) & ~1)); in eucjp_left_adjust_char_head()