Lines Matching refs:uchar
85 * by defining UTF_SIZE to either 8, 16, or 32. utf.h would then define the UChar type
89 * A lot of the ICU source code assumes UChar strings are in UTF-16.
95 * <p>Accordingly, utf.h defines UChar to be an unsigned 16-bit integer. If this matches wchar_t, then
96 * UChar is defined to be exactly wchar_t, otherwise uint16_t.</p>
101 * the definition of UChar. For details see the documentation for UChar32 itself.</p>
233 #define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800)
281 #define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0)
283 #define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e)
285 #define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80)
500 /** Is uchar a first/lead surrogate? @deprecated ICU 2.4. Renamed to U_IS_LEAD and U16_IS_LEAD, see utf_old.h. */
501 #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800)
503 /** Is uchar a second/trail surrogate? @deprecated ICU 2.4. Renamed to U_IS_TRAIL and U16_IS_TRAIL, see utf_old.h. */
504 #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00)
517 #define UTF_FIRST_SURROGATE(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
520 #define UTF_SECOND_SURROGATE(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
529 #define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar)
532 #define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar)
535 #define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar)
776 #define UTF32_IS_SINGLE(uchar) 1
778 #define UTF32_IS_LEAD(uchar) 0
780 #define UTF32_IS_TRAIL(uchar) 0
999 #define UTF_IS_SINGLE(uchar) U16_IS_SINGLE(uchar)
1006 #define UTF_IS_LEAD(uchar) U16_IS_LEAD(uchar)
1013 #define UTF_IS_TRAIL(uchar) U16_IS_TRAIL(uchar)