130#define U_IS_UNICODE_NONCHAR(c) \
132 ((c)<=0xfdef || ((c)&0xfffe)==0xfffe) && (c)<=0x10ffff)
151#define U_IS_UNICODE_CHAR(c) \
152 ((uint32_t)(c)<0xd800 || \
153 (0xdfff<(c) && (c)<=0x10ffff && !U_IS_UNICODE_NONCHAR(c)))
161#define U_IS_BMP(c) ((uint32_t)(c)<=0xffff)
169#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x10000)<=0xfffff)
177#define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
185#define U_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
193#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
202#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
211#define U_IS_SURROGATE_TRAIL(c) (((c)&0x400)!=0)
215#if !U_NO_DEFAULT_INCLUDE_UTF_HEADERS
Basic types and constants for UTF.
C API: 16-bit Unicode handling macros.
C API: 8-bit Unicode handling macros.
C API: Deprecated macros for Unicode string handling.