Lines Matching refs:UChar

41 #define utf8_islead(c)     ((UChar )((c) & 0xc0) != 0x80)
63 mbc_enc_len(const UChar* p) in mbc_enc_len()
69 is_mbc_newline(const UChar* p, const UChar* end) in is_mbc_newline()
94 mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED) in mbc_to_code()
138 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc()
140 #define UTF8_TRAILS(code, shift) (UChar )((((code) >> (shift)) & 0x3f) | 0x80) in code_to_mbc()
141 #define UTF8_TRAIL0(code) (UChar )(((code) & 0x3f) | 0x80) in code_to_mbc()
144 *buf = (UChar )code; in code_to_mbc()
148 UChar *p = buf; in code_to_mbc()
151 *p++ = (UChar )(((code>>6)& 0x1f) | 0xc0); in code_to_mbc()
154 *p++ = (UChar )(((code>>12) & 0x0f) | 0xe0); in code_to_mbc()
158 *p++ = (UChar )(((code>>18) & 0x07) | 0xf0); in code_to_mbc()
163 *p++ = (UChar )(((code>>24) & 0x03) | 0xf8); in code_to_mbc()
169 *p++ = (UChar )(((code>>30) & 0x01) | 0xfc); in code_to_mbc()
195 mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, in mbc_case_fold()
196 const UChar* end, UChar* fold) in mbc_case_fold()
198 const UChar* p = *pp; in mbc_case_fold()
224 is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
226 const UChar* p = *pp;
238 if (c <= (UChar )0x9e) { /* upper */
239 if (c == (UChar )0x97) return FALSE;
242 else if (c >= (UChar )0xa0 && c <= (UChar )0xbe) { /* lower */
243 if (c == (UChar )'\267') return FALSE;
246 else if (c == (UChar )0x9f &&
268 static UChar*
269 left_adjust_char_head(const UChar* start, const UChar* s) in left_adjust_char_head()
271 const UChar *p; in left_adjust_char_head()
273 if (s <= start) return (UChar* )s; in left_adjust_char_head()
277 return (UChar* )p; in left_adjust_char_head()