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) in mbc_to_code()
140 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc()
142 #define UTF8_TRAILS(code, shift) (UChar )((((code) >> (shift)) & 0x3f) | 0x80) in code_to_mbc()
143 #define UTF8_TRAIL0(code) (UChar )(((code) & 0x3f) | 0x80) in code_to_mbc()
146 *buf = (UChar )code; in code_to_mbc()
150 UChar *p = buf; in code_to_mbc()
153 *p++ = (UChar )(((code>>6)& 0x1f) | 0xc0); in code_to_mbc()
156 *p++ = (UChar )(((code>>12) & 0x0f) | 0xe0); in code_to_mbc()
160 *p++ = (UChar )(((code>>18) & 0x07) | 0xf0); in code_to_mbc()
165 *p++ = (UChar )(((code>>24) & 0x03) | 0xf8); in code_to_mbc()
171 *p++ = (UChar )(((code>>30) & 0x01) | 0xfc); in code_to_mbc()
197 mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, in mbc_case_fold()
198 const UChar* end, UChar* fold) in mbc_case_fold()
200 const UChar* p = *pp; in mbc_case_fold()
226 is_mbc_ambiguous(OnigCaseFoldType flag, const UChar** pp, const UChar* end)
228 const UChar* p = *pp;
240 if (c <= (UChar )0x9e) { /* upper */
241 if (c == (UChar )0x97) return FALSE;
244 else if (c >= (UChar )0xa0 && c <= (UChar )0xbe) { /* lower */
245 if (c == (UChar )'\267') return FALSE;
248 else if (c == (UChar )0x9f &&
270 static UChar*
271 left_adjust_char_head(const UChar* start, const UChar* s) in left_adjust_char_head()
273 const UChar *p; in left_adjust_char_head()
275 if (s <= start) return (UChar* )s; in left_adjust_char_head()
279 return (UChar* )p; in left_adjust_char_head()