25 #ifndef __UMACHINE_H__ 26 #define __UMACHINE_H__ 54 #ifndef U_HIDE_INTERNAL_API 66 #define UCHAR_TYPE char16_t 102 # define U_CFUNC extern "C" 103 # define U_CDECL_BEGIN extern "C" { 104 # define U_CDECL_END } 106 # define U_CFUNC extern 107 # define U_CDECL_BEGIN 111 #ifndef U_ATTRIBUTE_DEPRECATED 117 #if U_GCC_MAJOR_MINOR >= 302 118 # define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated)) 124 #elif defined(_MSC_VER) && (_MSC_VER >= 1400) 125 # define U_ATTRIBUTE_DEPRECATED __declspec(deprecated) 127 # define U_ATTRIBUTE_DEPRECATED 132 #define U_CAPI U_CFUNC U_EXPORT 134 #define U_STABLE U_CAPI 136 #define U_DRAFT U_CAPI 138 #define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED 140 #define U_OBSOLETE U_CAPI 142 #define U_INTERNAL U_CAPI 160 #if U_CPLUSPLUS_VERSION >= 11 163 #define U_OVERRIDE override 166 #define U_FINAL final 184 # define INT8_MIN ((int8_t)(-128)) 188 # define INT16_MIN ((int16_t)(-32767-1)) 192 # define INT32_MIN ((int32_t)(-2147483647-1)) 197 # define INT8_MAX ((int8_t)(127)) 201 # define INT16_MAX ((int16_t)(32767)) 205 # define INT32_MAX ((int32_t)(2147483647)) 210 # define UINT8_MAX ((uint8_t)(255U)) 214 # define UINT16_MAX ((uint16_t)(65535U)) 218 # define UINT32_MAX ((uint32_t)(4294967295U)) 221 #if defined(U_INT64_T_UNAVAILABLE) 222 # error int64_t is required for decimal format and rule-based number format. 230 # define INT64_C(c) c ## LL 238 # define UINT64_C(c) c ## ULL 242 # define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1)) 246 # define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807))) 248 # ifndef U_UINT64_MAX 250 # define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615))) 289 #if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) 290 # ifdef __STDC_ISO_10646__ 291 # if (U_SIZEOF_WCHAR_T==2) 292 # define U_WCHAR_IS_UTF16 293 # elif (U_SIZEOF_WCHAR_T==4) 294 # define U_WCHAR_IS_UTF32 296 # elif defined __UCS2__ 297 # if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) 298 # define U_WCHAR_IS_UTF16 300 # elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) 301 # if (U_SIZEOF_WCHAR_T==4) 302 # define U_WCHAR_IS_UTF32 304 # elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) 305 # define U_WCHAR_IS_UTF32 306 # elif U_PLATFORM_HAS_WIN32_API 307 # define U_WCHAR_IS_UTF16 314 #define U_SIZEOF_UCHAR 2 328 #if defined(UCHAR_TYPE) 329 typedef UCHAR_TYPE
UChar;
332 #elif U_SIZEOF_WCHAR_T==2 333 typedef wchar_t UChar;
334 #elif defined(__CHAR16_TYPE__) 335 typedef __CHAR16_TYPE__
UChar;
377 #define U_SENTINEL (-1) 379 #include "unicode/urename.h" int32_t UChar32
Define UChar32 as a type for single Unicode code points.
C API: Unicode Properties.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
C API: Definitions of integer types of various widths.
int8_t UBool
The ICU boolean type.