38#define U_COPYRIGHT_STRING_LENGTH 128
43#define U_MAX_VERSION_LENGTH 4
48#define U_VERSION_DELIMITER '.'
53#define U_MAX_VERSION_STRING_LENGTH 20
101# if U_DISABLE_RENAMING
102# define U_ICU_NAMESPACE icu
103 namespace U_ICU_NAMESPACE { }
105# define U_ICU_NAMESPACE U_ICU_ENTRY_POINT_RENAME(icu)
106 namespace U_ICU_NAMESPACE { }
107 namespace icu = U_ICU_NAMESPACE;
110# define U_NAMESPACE_BEGIN namespace U_ICU_NAMESPACE {
111# define U_NAMESPACE_END }
112# define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
113# define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
115# ifndef U_USING_ICU_NAMESPACE
116# if defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || \
117 defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION) || \
118 defined(U_LAYOUTEX_IMPLEMENTATION) || defined(U_TOOLUTIL_IMPLEMENTATION)
119# define U_USING_ICU_NAMESPACE 0
121# define U_USING_ICU_NAMESPACE 0
124# if U_USING_ICU_NAMESPACE
128#ifndef U_HIDE_DRAFT_API
154#if defined(_MSC_VER) || (UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllexport__) && \
155 UPRV_HAS_DECLSPEC_ATTRIBUTE(__dllimport__))
156# define U_HEADER_NESTED_NAMESPACE header
157#elif defined(U_COMBINED_IMPLEMENTATION) || defined(U_COMMON_IMPLEMENTATION) || \
158 defined(U_I18N_IMPLEMENTATION) || defined(U_IO_IMPLEMENTATION) || \
159 defined(U_LAYOUTEX_IMPLEMENTATION) || defined(U_TOOLUTIL_IMPLEMENTATION)
160# define U_HEADER_NESTED_NAMESPACE internal
162# define U_HEADER_NESTED_NAMESPACE header
165#define U_HEADER_ONLY_NAMESPACE U_ICU_NAMESPACE::U_HEADER_NESTED_NAMESPACE
167namespace U_HEADER_ONLY_NAMESPACE {}
Basic types and constants for UTF.
#define U_CAPI
This is used to declare a function as a public ICU C API.
char16_t UChar
The base type for UTF-16 code units and pointers.
C API: definitions of ICU version numbers.
U_CAPI void u_versionFromUString(UVersionInfo versionArray, const UChar *versionString)
Parse a Unicode string with dotted-decimal version information and fill in a UVersionInfo structure w...
U_CAPI void u_versionToString(const UVersionInfo versionArray, char *versionString)
Write a string with dotted-decimal version information according to the input UVersionInfo.
U_CAPI void u_getVersion(UVersionInfo versionArray)
Gets the ICU release version.
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.
U_CAPI void u_versionFromString(UVersionInfo versionArray, const char *versionString)
Parse a string with dotted-decimal version information and fill in a UVersionInfo structure with the ...
#define U_MAX_VERSION_LENGTH
An ICU version consists of up to 4 numbers from 0..255.