#define TRUE () |
#define FALSE () |
#define U_ASCII_FAMILY () |
#define U_EBCDIC_FAMILY () |
#define U_CHARSET_FAMILY () |
#define U_SIZEOF_WCHAR_T () |
#define U_SIZEOF_UCHAR () |
#define U_ICU_VERSION () |
#define U_MAX_VERSION_LENGTH () |
#define U_VERSION_DELIMITER () |
#define U_MAX_VERSION_STRING_LENGTH () |
#define U_CFUNC () |
#define U_CDECL_BEGIN () |
#define U_CDECL_END () |
#define U_CAPI () |
#define U_CALLCONV () |
#define NULL () |
#define U_MAX_PTR () |
#define U_MILLIS_PER_SECOND () |
#define U_MILLIS_PER_MINUTE () |
#define U_MILLIS_PER_HOUR () |
#define U_MILLIS_PER_DAY () |
#define U_COMMON_API () |
Control of symbol import/export.
The ICU is separated into two libraries.
#define U_I18N_API () |
#define U_SUCCESS (x) |
#define U_FAILURE (x) |
#define T_INT32 (i) |
#define U_COPYRIGHT_STRING () |
#define U_COPYRIGHT_STRING_LENGTH () |
typedef int8_t bool_t |
typedef int32_t UTextOffset |
typedef uint16_t UChar |
typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH] |
typedef double UDate |
Date and Time data type.
This is a primitive data type that holds the date and time as the number of milliseconds since 1970-jan-01, 00:00 UTC. UTC leap seconds are ignored.
typedef void* UClassID |
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ compilers.
Each class hierarchy which needs to implement polymorphic clone() or operator==() defines two methods, described in detail below. UClassID values can be compared using operator==(). Nothing else should be done with them.
getDynamicClassID() is declared in the base class of the hierarchy as a pure virtual. Each concrete subclass implements it in the same way:
class Base { public: virtual UClassID getDynamicClassID() const = 0; }
class Derived { public: virtual UClassID getDynamicClassID() const { return Derived::getStaticClassID(); } }
Each concrete class implements getStaticClassID() as well, which allows clients to test for a specific type.
class Derived { public: static UClassID getStaticClassID(); private: static char fgClassID; }
// In Derived.cpp: UClassID Derived::getStaticClassID() { return (UClassID)&Derived::fgClassID; } char Derived::fgClassID = 0; // Value is irrelevant
typedef enum UErrorCode UErrorCode |
typedef void* UMTX |
enum UErrorCode |
Error code to replace exception handling.
So that the code is compatible with all C++ compilers.
U_CAPI const char *U_EXPORT2 u_errorName (UErrorCode code) |
Return a string for a UErrorCode value.
The string will be the same as the name of the error code constant in the enum above.