Home | History | Annotate | Download | only in unicode

Lines Matching refs:uchar

88  * by defining UTF_SIZE to either 8, 16, or 32. utf.h would then define the UChar type
92 * A lot of the ICU source code assumes UChar strings are in UTF-16.
98 * <p>Accordingly, utf.h defines UChar to be an unsigned 16-bit integer. If this matches wchar_t, then
99 * UChar is defined to be exactly wchar_t, otherwise uint16_t.</p>
104 * the definition of UChar. For details see the documentation for UChar32 itself.</p>
237 #define UTF_IS_SURROGATE(uchar) (((uchar)&0xfffff800)==0xd800)
285 #define UTF8_IS_SINGLE(uchar) (((uchar)&0x80)==0)
287 #define UTF8_IS_LEAD(uchar) ((uint8_t)((uchar)-0xc0)<0x3e)
289 #define UTF8_IS_TRAIL(uchar) (((uchar)&0xc0)==0x80)
504 /** Is uchar a first/lead surrogate? @deprecated ICU 2.4. Renamed to U_IS_LEAD and U16_IS_LEAD, see utf_old.h. */
505 #define UTF_IS_FIRST_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xd800)
507 /** Is uchar a second/trail surrogate? @deprecated ICU 2.4. Renamed to U_IS_TRAIL and U16_IS_TRAIL, see utf_old.h. */
508 #define UTF_IS_SECOND_SURROGATE(uchar) (((uchar)&0xfffffc00)==0xdc00)
521 #define UTF_FIRST_SURROGATE(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
524 #define UTF_SECOND_SURROGATE(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
533 #define UTF16_IS_SINGLE(uchar) !UTF_IS_SURROGATE(uchar)
536 #define UTF16_IS_LEAD(uchar) UTF_IS_FIRST_SURROGATE(uchar)
539 #define UTF16_IS_TRAIL(uchar) UTF_IS_SECOND_SURROGATE(uchar)
780 #define UTF32_IS_SINGLE(uchar) 1
782 #define UTF32_IS_LEAD(uchar) 0
784 #define UTF32_IS_TRAIL(uchar) 0
1003 #define UTF_IS_SINGLE(uchar) U16_IS_SINGLE(uchar)
1010 #define UTF_IS_LEAD(uchar) U16_IS_LEAD(uchar)
1017 #define UTF_IS_TRAIL(uchar) U16_IS_TRAIL(uchar)