89 #define U_PF_UNKNOWN 0 91 #define U_PF_WINDOWS 1000 93 #define U_PF_MINGW 1800 99 #define U_PF_CYGWIN 1900 102 #define U_PF_HPUX 2100 104 #define U_PF_SOLARIS 2600 106 #define U_PF_BSD 3000 108 #define U_PF_AIX 3100 110 #define U_PF_IRIX 3200 119 #define U_PF_DARWIN 3500 121 #define U_PF_IPHONE 3550 123 #define U_PF_QNX 3700 125 #define U_PF_LINUX 4000 132 #define U_PF_BROWSER_NATIVE_CLIENT 4020 134 #define U_PF_ANDROID 4050 136 #define U_PF_FUCHSIA 4100 139 #define U_PF_OS390 9000 141 #define U_PF_OS400 9400 145 #elif defined(__MINGW32__) 146 # define U_PLATFORM U_PF_MINGW 147 #elif defined(__CYGWIN__) 148 # define U_PLATFORM U_PF_CYGWIN 149 #elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 150 # define U_PLATFORM U_PF_WINDOWS 151 #elif defined(__ANDROID__) 152 # define U_PLATFORM U_PF_ANDROID 154 # include <android/api-level.h> 155 #elif defined(__pnacl__) || defined(__native_client__) 156 # define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT 157 #elif defined(__Fuchsia__) 158 # define U_PLATFORM U_PF_FUCHSIA 159 #elif defined(linux) || defined(__linux__) || defined(__linux) 160 # define U_PLATFORM U_PF_LINUX 161 #elif defined(__APPLE__) && defined(__MACH__) 162 # include <TargetConditionals.h> 163 # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE 164 # define U_PLATFORM U_PF_IPHONE 166 # define U_PLATFORM U_PF_DARWIN 168 #elif defined(BSD) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__MirBSD__) 169 # if defined(__FreeBSD__) 170 # include <sys/endian.h> 172 # define U_PLATFORM U_PF_BSD 173 #elif defined(sun) || defined(__sun) 175 # define U_PLATFORM U_PF_SOLARIS 176 # if defined(__GNUC__) 181 # include <sys/isa_defs.h> 183 #elif defined(_AIX) || defined(__TOS_AIX__) 184 # define U_PLATFORM U_PF_AIX 185 #elif defined(_hpux) || defined(hpux) || defined(__hpux) 186 # define U_PLATFORM U_PF_HPUX 187 #elif defined(sgi) || defined(__sgi) 188 # define U_PLATFORM U_PF_IRIX 189 #elif defined(__QNX__) || defined(__QNXNTO__) 190 # define U_PLATFORM U_PF_QNX 191 #elif defined(__TOS_MVS__) 192 # define U_PLATFORM U_PF_OS390 193 #elif defined(__OS400__) || defined(__TOS_OS400__) 194 # define U_PLATFORM U_PF_OS400 196 # define U_PLATFORM U_PF_UNKNOWN 220 #ifdef U_PLATFORM_USES_ONLY_WIN32_API 222 #elif (U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_MINGW) || defined(CYGWINMSVC) 223 # define U_PLATFORM_USES_ONLY_WIN32_API 1 226 # define U_PLATFORM_USES_ONLY_WIN32_API 0 235 #ifdef U_PLATFORM_HAS_WIN32_API 237 #elif U_PF_WINDOWS <= U_PLATFORM && U_PLATFORM <= U_PF_CYGWIN 238 # define U_PLATFORM_HAS_WIN32_API 1 240 # define U_PLATFORM_HAS_WIN32_API 0 249 #ifdef U_PLATFORM_HAS_WINUWP_API 252 # define U_PLATFORM_HAS_WINUWP_API 0 261 #ifdef U_PLATFORM_IMPLEMENTS_POSIX 263 #elif U_PLATFORM_USES_ONLY_WIN32_API 264 # define U_PLATFORM_IMPLEMENTS_POSIX 0 266 # define U_PLATFORM_IMPLEMENTS_POSIX 1 274 #ifdef U_PLATFORM_IS_LINUX_BASED 276 #elif U_PF_LINUX <= U_PLATFORM && U_PLATFORM <= 4499 277 # define U_PLATFORM_IS_LINUX_BASED 1 279 # define U_PLATFORM_IS_LINUX_BASED 0 287 #ifdef U_PLATFORM_IS_DARWIN_BASED 289 #elif U_PF_DARWIN <= U_PLATFORM && U_PLATFORM <= U_PF_IPHONE 290 # define U_PLATFORM_IS_DARWIN_BASED 1 292 # define U_PLATFORM_IS_DARWIN_BASED 0 302 #ifdef U_HAVE_STDINT_H 304 #elif U_PLATFORM_USES_ONLY_WIN32_API 305 # if defined(__BORLANDC__) || U_PLATFORM == U_PF_MINGW || (defined(_MSC_VER) && _MSC_VER>=1600) 307 # define U_HAVE_STDINT_H 1 309 # define U_HAVE_STDINT_H 0 311 #elif U_PLATFORM == U_PF_SOLARIS 313 # define U_HAVE_STDINT_H 0 314 #elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER) 316 # define U_HAVE_STDINT_H 0 318 # define U_HAVE_STDINT_H 1 327 #ifdef U_HAVE_INTTYPES_H 329 #elif U_PLATFORM == U_PF_SOLARIS 331 # define U_HAVE_INTTYPES_H 1 332 #elif U_PLATFORM == U_PF_AIX && !defined(_AIX51) && defined(_POWER) 334 # define U_HAVE_INTTYPES_H 1 337 # define U_HAVE_INTTYPES_H U_HAVE_STDINT_H 355 # define U_GCC_MAJOR_MINOR (__GNUC__ * 100 + __GNUC_MINOR__) 357 # define U_GCC_MAJOR_MINOR 0 365 #ifdef U_IS_BIG_ENDIAN 367 #elif defined(BYTE_ORDER) && defined(BIG_ENDIAN) 368 # define U_IS_BIG_ENDIAN (BYTE_ORDER == BIG_ENDIAN) 369 #elif defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) 371 # define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__) 372 #elif defined(__BIG_ENDIAN__) || defined(_BIG_ENDIAN) 373 # define U_IS_BIG_ENDIAN 1 374 #elif defined(__LITTLE_ENDIAN__) || defined(_LITTLE_ENDIAN) 375 # define U_IS_BIG_ENDIAN 0 376 #elif U_PLATFORM == U_PF_OS390 || U_PLATFORM == U_PF_OS400 || defined(__s390__) || defined(__s390x__) 378 # define U_IS_BIG_ENDIAN 1 379 #elif defined(_PA_RISC1_0) || defined(_PA_RISC1_1) || defined(_PA_RISC2_0) 381 # define U_IS_BIG_ENDIAN 1 382 #elif defined(sparc) || defined(__sparc) || defined(__sparc__) 384 # define U_IS_BIG_ENDIAN 1 386 # define U_IS_BIG_ENDIAN 0 394 #ifdef U_HAVE_PLACEMENT_NEW 396 #elif defined(__BORLANDC__) 397 # define U_HAVE_PLACEMENT_NEW 0 399 # define U_HAVE_PLACEMENT_NEW 1 408 #ifdef U_HAVE_DEBUG_LOCATION_NEW 410 #elif defined(_MSC_VER) 411 # define U_HAVE_DEBUG_LOCATION_NEW 1 413 # define U_HAVE_DEBUG_LOCATION_NEW 0 417 #ifndef __has_attribute 418 # define __has_attribute(x) 0 420 #ifndef __has_cpp_attribute 421 # define __has_cpp_attribute(x) 0 423 #ifndef __has_declspec_attribute 424 # define __has_declspec_attribute(x) 0 426 #ifndef __has_builtin 427 # define __has_builtin(x) 0 429 #ifndef __has_feature 430 # define __has_feature(x) 0 432 #ifndef __has_extension 433 # define __has_extension(x) 0 435 #ifndef __has_warning 436 # define __has_warning(x) 0 444 #if defined(__GNUC__) && __GNUC__>=3 445 # define U_MALLOC_ATTR __attribute__ ((__malloc__)) 447 # define U_MALLOC_ATTR 455 #if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) || __has_attribute(alloc_size) 456 # define U_ALLOC_SIZE_ATTR(X) __attribute__ ((alloc_size(X))) 457 # define U_ALLOC_SIZE_ATTR2(X,Y) __attribute__ ((alloc_size(X,Y))) 459 # define U_ALLOC_SIZE_ATTR(X) 460 # define U_ALLOC_SIZE_ATTR2(X,Y) 469 #ifdef U_CPLUSPLUS_VERSION 470 # if U_CPLUSPLUS_VERSION != 0 && !defined(__cplusplus) 471 # undef U_CPLUSPLUS_VERSION 472 # define U_CPLUSPLUS_VERSION 0 475 #elif !defined(__cplusplus) 476 # define U_CPLUSPLUS_VERSION 0 477 #elif __cplusplus >= 201402L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L) 478 # define U_CPLUSPLUS_VERSION 14 479 #elif __cplusplus >= 201103L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L) 480 # define U_CPLUSPLUS_VERSION 11 483 # define U_CPLUSPLUS_VERSION 1 486 #if (U_PLATFORM == U_PF_AIX || U_PLATFORM == U_PF_OS390) && defined(__cplusplus) &&(U_CPLUSPLUS_VERSION < 11) 489 typedef decltype(
nullptr) nullptr_t;
503 # define U_NOEXCEPT noexcept 514 #elif defined(U_FALLTHROUGH) 516 #elif defined(__clang__) 519 # if __has_cpp_attribute(clang::fallthrough) || \ 520 (__has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough")) 521 # define U_FALLTHROUGH [[clang::fallthrough]] 523 #elif defined(__GNUC__) && (__GNUC__ >= 7) 524 # define U_FALLTHROUGH __attribute__((fallthrough)) 527 #ifndef U_FALLTHROUGH 528 # define U_FALLTHROUGH 541 #define U_ASCII_FAMILY 0 547 #define U_EBCDIC_FAMILY 1 591 #ifdef U_CHARSET_FAMILY 593 #elif U_PLATFORM == U_PF_OS390 && (!defined(__CHARSET_LIB) || !__CHARSET_LIB) 594 # define U_CHARSET_FAMILY U_EBCDIC_FAMILY 595 #elif U_PLATFORM == U_PF_OS400 && !defined(__UTF32__) 596 # define U_CHARSET_FAMILY U_EBCDIC_FAMILY 598 # define U_CHARSET_FAMILY U_ASCII_FAMILY 621 #ifdef U_CHARSET_IS_UTF8 623 #elif U_PLATFORM_IS_LINUX_BASED || U_PLATFORM_IS_DARWIN_BASED 624 # define U_CHARSET_IS_UTF8 1 626 # define U_CHARSET_IS_UTF8 0 641 #ifdef U_HAVE_WCHAR_H 643 #elif U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9 649 # define U_HAVE_WCHAR_H 0 651 # define U_HAVE_WCHAR_H 1 660 #ifdef U_SIZEOF_WCHAR_T 662 #elif (U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9) 667 # define U_SIZEOF_WCHAR_T 1 668 #elif U_PLATFORM_HAS_WIN32_API || U_PLATFORM == U_PF_CYGWIN 669 # define U_SIZEOF_WCHAR_T 2 670 #elif U_PLATFORM == U_PF_AIX 680 # define U_SIZEOF_WCHAR_T 4 682 # define U_SIZEOF_WCHAR_T 2 684 #elif U_PLATFORM == U_PF_OS390 691 # define U_SIZEOF_WCHAR_T 4 693 # define U_SIZEOF_WCHAR_T 2 695 #elif U_PLATFORM == U_PF_OS400 696 # if defined(__UTF32__) 702 # define U_SIZEOF_WCHAR_T 4 703 # elif defined(__UCS2__) 709 # define U_SIZEOF_WCHAR_T 2 716 # define U_SIZEOF_WCHAR_T 2 719 # define U_SIZEOF_WCHAR_T 4 722 #ifndef U_HAVE_WCSCPY 723 #define U_HAVE_WCSCPY U_HAVE_WCHAR_H 736 #ifdef U_HAVE_CHAR16_T 750 # if U_CPLUSPLUS_VERSION >= 11 || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) 751 # define U_HAVE_CHAR16_T 1 753 # define U_HAVE_CHAR16_T 0 764 #ifdef U_DECLARE_UTF16 766 #elif U_HAVE_CHAR16_T \ 767 || (defined(__xlC__) && defined(__IBM_UTF_LITERAL) && U_SIZEOF_WCHAR_T != 2) \ 768 || (defined(__HP_aCC) && __HP_aCC >= 035000) \ 769 || (defined(__HP_cc) && __HP_cc >= 111106) \ 770 || (defined(U_IN_DOXYGEN)) 771 # define U_DECLARE_UTF16(string) u ## string 772 #elif U_SIZEOF_WCHAR_T == 2 \ 773 && (U_CHARSET_FAMILY == 0 || (U_PF_OS390 <= U_PLATFORM && U_PLATFORM <= U_PF_OS400 && defined(__UCS2__))) 774 # define U_DECLARE_UTF16(string) L ## string 787 #elif defined(U_STATIC_IMPLEMENTATION) 789 #elif defined(_MSC_VER) || (__has_declspec_attribute(dllexport) && __has_declspec_attribute(dllimport)) 790 # define U_EXPORT __declspec(dllexport) 791 #elif defined(__GNUC__) 792 # define U_EXPORT __attribute__((visibility("default"))) 793 #elif (defined(__SUNPRO_CC) && __SUNPRO_CC >= 0x550) \ 794 || (defined(__SUNPRO_C) && __SUNPRO_C >= 0x550) 795 # define U_EXPORT __global 805 #elif defined(_MSC_VER) 806 # define U_EXPORT2 __cdecl 813 #elif defined(_MSC_VER) || (__has_declspec_attribute(dllexport) && __has_declspec_attribute(dllimport)) 815 # define U_IMPORT __declspec(dllimport) 837 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) 838 # define U_CALLCONV __cdecl 840 # define U_CALLCONV U_EXPORT2 848 #if U_PLATFORM == U_PF_OS390 && defined(__cplusplus) 849 # define U_CALLCONV_FPTR U_CALLCONV 851 # define U_CALLCONV_FPTR C API: definitions of ICU version numbers.
User-configurable settings.