31 #include "unicode/uvernum.h"
36 #define U_COPYRIGHT_STRING_LENGTH 128
41 #define U_MAX_VERSION_LENGTH 4
46 #define U_VERSION_DELIMITER '.'
51 #define U_MAX_VERSION_STRING_LENGTH 20
104 # if U_DISABLE_RENAMING
105 # define U_ICU_NAMESPACE icu
106 namespace U_ICU_NAMESPACE { }
108 # define U_ICU_NAMESPACE U_ICU_ENTRY_POINT_RENAME(icu)
109 namespace U_ICU_NAMESPACE { }
110 namespace icu = U_ICU_NAMESPACE;
113 # define U_NAMESPACE_BEGIN extern "C++" { namespace U_ICU_NAMESPACE {
114 # define U_NAMESPACE_END } }
115 # define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
116 # define U_NAMESPACE_QUALIFIER U_ICU_NAMESPACE::
118 # ifndef U_USING_ICU_NAMESPACE
119 # define U_USING_ICU_NAMESPACE 1
121 # if U_USING_ICU_NAMESPACE
125 # define U_NAMESPACE_BEGIN extern "C++" {
126 # define U_NAMESPACE_END }
127 # define U_NAMESPACE_USE
128 # define U_NAMESPACE_QUALIFIER
131 # define U_NAMESPACE_BEGIN
132 # define U_NAMESPACE_END
133 # define U_NAMESPACE_USE
134 # define U_NAMESPACE_QUALIFIER
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.
#define U_MAX_VERSION_LENGTH
An ICU version consists of up to 4 numbers from 0..255.
void u_getVersion(UVersionInfo versionArray)
Gets the ICU release version.
void u_versionFromString(UVersionInfo versionArray, const char *versionString)
Parse a string with dotted-decimal version information and fill in a UVersionInfo structure with the ...
Basic types and constants for UTF.
#define U_NAMESPACE_USE
This is used to specify that the rest of the code uses the public ICU C++ API namespace.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
void u_versionFromUString(UVersionInfo versionArray, const UChar *versionString)
Parse a Unicode string with dotted-decimal version information and fill in a UVersionInfo structure w...
void u_versionToString(UVersionInfo versionArray, char *versionString)
Write a string with dotted-decimal version information according to the input UVersionInfo.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.