77# define U_CFUNC extern "C"
78# define U_CDECL_BEGIN extern "C" {
81# define U_CFUNC extern
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
135#if U_CPLUSPLUS_VERSION >= 11
138#define U_OVERRIDE override
159# define INT8_MIN ((int8_t)(-128))
163# define INT16_MIN ((int16_t)(-32767-1))
167# define INT32_MIN ((int32_t)(-2147483647-1))
172# define INT8_MAX ((int8_t)(127))
176# define INT16_MAX ((int16_t)(32767))
180# define INT32_MAX ((int32_t)(2147483647))
185# define UINT8_MAX ((uint8_t)(255U))
189# define UINT16_MAX ((uint16_t)(65535U))
193# define UINT32_MAX ((uint32_t)(4294967295U))
196#if defined(U_INT64_T_UNAVAILABLE)
197# error int64_t is required for decimal format and rule-based number format.
205# define INT64_C(c) c ## LL
213# define UINT64_C(c) c ## ULL
217# define U_INT64_MIN ((int64_t)(INT64_C(-9223372036854775807)-1))
221# define U_INT64_MAX ((int64_t)(INT64_C(9223372036854775807)))
225# define U_UINT64_MAX ((uint64_t)(UINT64_C(18446744073709551615)))
264#if !defined(U_WCHAR_IS_UTF16) && !defined(U_WCHAR_IS_UTF32)
265# ifdef __STDC_ISO_10646__
266# if (U_SIZEOF_WCHAR_T==2)
267# define U_WCHAR_IS_UTF16
268# elif (U_SIZEOF_WCHAR_T==4)
269# define U_WCHAR_IS_UTF32
271# elif defined __UCS2__
272# if (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400) && (U_SIZEOF_WCHAR_T==2)
273# define U_WCHAR_IS_UTF16
275# elif defined(__UCS4__) || (U_PLATFORM == U_PF_OS400 && defined(__UTF32__))
276# if (U_SIZEOF_WCHAR_T==4)
277# define U_WCHAR_IS_UTF32
279# elif U_PLATFORM_IS_DARWIN_BASED || (U_SIZEOF_WCHAR_T==4 && U_PLATFORM_IS_LINUX_BASED)
280# define U_WCHAR_IS_UTF32
281# elif U_PLATFORM_HAS_WIN32_API
282# define U_WCHAR_IS_UTF16
289#define U_SIZEOF_UCHAR 2
303#if defined(UCHAR_TYPE)
307#elif U_SIZEOF_WCHAR_T==2
308 typedef wchar_t UChar;
309#elif defined(__CHAR16_TYPE__)
352#define U_SENTINEL (-1)
354#include "unicode/urename.h"
"Smart pointer" base class; do not use directly: use LocalPointer etc.
C API: Definitions of integer types of various widths.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
int8_t UBool
The ICU boolean type.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...