23 #ifndef __UMACHINE_H__ 24 #define __UMACHINE_H__ 77 # define U_CFUNC extern "C" 78 # define U_CDECL_BEGIN extern "C" { 79 # define U_CDECL_END } 81 # define U_CFUNC extern 82 # define U_CDECL_BEGIN 86 #ifndef U_ATTRIBUTE_DEPRECATED 92 #if U_GCC_MAJOR_MINOR >= 302 93 # define U_ATTRIBUTE_DEPRECATED __attribute__ ((deprecated)) 99 #elif defined(_MSC_VER) && (_MSC_VER >= 1400) 100 # define U_ATTRIBUTE_DEPRECATED __declspec(deprecated) 102 # define U_ATTRIBUTE_DEPRECATED 107 #define U_CAPI U_CFUNC U_EXPORT 109 #define U_STABLE U_CAPI 111 #define U_DRAFT U_CAPI 113 #define U_DEPRECATED U_CAPI U_ATTRIBUTE_DEPRECATED 115 #define U_OBSOLETE U_CAPI 117 #define U_INTERNAL U_CAPI 125 # define INT8_MIN ((int8_t)(-128)) 129 # define INT16_MIN ((int16_t)(-32767-1)) 133 # define INT32_MIN ((int32_t)(-2147483647-1)) 138 # define INT8_MAX ((int8_t)(127)) 142 # define INT16_MAX ((int16_t)(32767)) 146 # define INT32_MAX ((int32_t)(2147483647)) 151 # define UINT8_MAX ((uint8_t)(255U)) 155 # define UINT16_MAX ((uint16_t)(65535U)) 159 # define UINT32_MAX ((uint32_t)(4294967295U)) 162 #if defined(U_INT64_T_UNAVAILABLE) 163 # error int64_t is required for decimal format and rule-based number format. 171 # define INT64_C(c) c ## LL 179 # define UINT64_C(c) c ## ULL 183 # define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1)) 187 # define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807))) 189 # ifndef U_UINT64_MAX 191 # define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615))) 230 #if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32) 231 # ifdef __STDC_ISO_10646__ 232 # if (U_SIZEOF_WCHAR_T==2) 233 # define U_WCHAR_IS_UTF16 234 # elif (U_SIZEOF_WCHAR_T==4) 235 # define U_WCHAR_IS_UTF32 237 # elif defined __UCS2__ 238 # if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2) 239 # define U_WCHAR_IS_UTF16 241 # elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__)) 242 # if (U_SIZEOF_WCHAR_T==4) 243 # define U_WCHAR_IS_UTF32 245 # elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED) 246 # define U_WCHAR_IS_UTF32 247 # elif U_PLATFORM_HAS_WIN32_API 248 # define U_WCHAR_IS_UTF16 255 #define U_SIZEOF_UCHAR 2 269 #if defined(UCHAR_TYPE) 270 typedef UCHAR_TYPE
UChar;
273 #elif U_SIZEOF_WCHAR_T==2 274 typedef wchar_t UChar;
275 #elif defined(__CHAR16_TYPE__) 276 typedef __CHAR16_TYPE__
UChar;
318 #define U_SENTINEL (-1) 320 #include "unicode/urename.h" int32_t UChar32
Define UChar32 as a type for single Unicode code points.
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.