Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Header Files   Compound Members   File Members  

utypes.h File Reference


Defines

#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. More...

#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

Typedefs

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. More...

typedef void* UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ compilers. More...

typedef enum UErrorCode UErrorCode
typedef void* UMTX

Enumerations

enum  UErrorCode { U_ERROR_INFO_START, U_USING_FALLBACK_ERROR, U_USING_DEFAULT_ERROR, U_ERROR_INFO_LIMIT, U_ZERO_ERROR, U_ILLEGAL_ARGUMENT_ERROR, U_MISSING_RESOURCE_ERROR, U_INVALID_FORMAT_ERROR, U_FILE_ACCESS_ERROR, U_INTERNAL_PROGRAM_ERROR, U_MESSAGE_PARSE_ERROR, U_MEMORY_ALLOCATION_ERROR, U_INDEX_OUTOFBOUNDS_ERROR, U_PARSE_ERROR, U_INVALID_CHAR_FOUND, U_TRUNCATED_CHAR_FOUND, U_ILLEGAL_CHAR_FOUND, U_INVALID_TABLE_FORMAT, U_INVALID_TABLE_FILE, U_BUFFER_OVERFLOW_ERROR, U_UNSUPPORTED_ERROR, U_ERROR_LIMIT }
Error code to replace exception handling. More...


Functions

U_CAPI const char* U_EXPORT2 u_errorName (UErrorCode code)
Return a string for a UErrorCode value. More...


Define Documentation

#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)

Stable:

#define U_FAILURE (x)

Stable:

#define T_INT32 (i)

#define U_COPYRIGHT_STRING ()

#define U_COPYRIGHT_STRING_LENGTH ()


Typedef Documentation

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


Enumeration Type Documentation

enum UErrorCode

Error code to replace exception handling.

So that the code is compatible with all C++ compilers.

Enumeration values:
U_ERROR_INFO_START  
U_USING_FALLBACK_ERROR  
U_USING_DEFAULT_ERROR  
U_ERROR_INFO_LIMIT  
U_ZERO_ERROR   success.
U_ILLEGAL_ARGUMENT_ERROR  
U_MISSING_RESOURCE_ERROR  
U_INVALID_FORMAT_ERROR  
U_FILE_ACCESS_ERROR  
U_INTERNAL_PROGRAM_ERROR  
U_MESSAGE_PARSE_ERROR  
U_MEMORY_ALLOCATION_ERROR  
U_INDEX_OUTOFBOUNDS_ERROR  
U_PARSE_ERROR  
U_INVALID_CHAR_FOUND  
U_TRUNCATED_CHAR_FOUND  
U_ILLEGAL_CHAR_FOUND  
U_INVALID_TABLE_FORMAT  
U_INVALID_TABLE_FILE  
U_BUFFER_OVERFLOW_ERROR  
U_UNSUPPORTED_ERROR  
U_ERROR_LIMIT  

Function Documentation

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.


Generated at Thu Feb 10 15:30:21 2000 for icu by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999