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

utypes.h File Reference


Defines

#define U_ASCII_FAMILY
#define U_EBCDIC_FAMILY
#define U_CHARSET_FAMILY
#define U_ICU_VERSION
#define U_MAX_VERSION_LENGTH
#define U_VERSION_DELIMITER
#define U_MAX_VERSION_STRING_LENGTH
#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 U_COPYRIGHT_STRING
#define U_COPYRIGHT_STRING_LENGTH

Typedefs

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_RESOURCE_TYPE_MISMATCH, 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 U_ASCII_FAMILY ()

Definition at line 78 of file utypes.h.

#define U_EBCDIC_FAMILY ()

Definition at line 79 of file utypes.h.

#define U_CHARSET_FAMILY ()

Definition at line 82 of file utypes.h.

#define U_ICU_VERSION ()

Definition at line 88 of file utypes.h.

#define U_MAX_VERSION_LENGTH ()

Definition at line 90 of file utypes.h.

#define U_VERSION_DELIMITER ()

Definition at line 91 of file utypes.h.

#define U_MAX_VERSION_STRING_LENGTH ()

Definition at line 92 of file utypes.h.

#define U_CALLCONV ()

Definition at line 101 of file utypes.h.

#define NULL ()

Definition at line 109 of file utypes.h.

#define U_MAX_PTR ()

Definition at line 116 of file utypes.h.

#define U_MILLIS_PER_SECOND ()

Definition at line 132 of file utypes.h.

#define U_MILLIS_PER_MINUTE ()

Definition at line 133 of file utypes.h.

#define U_MILLIS_PER_HOUR ()

Definition at line 134 of file utypes.h.

#define U_MILLIS_PER_DAY ()

Definition at line 135 of file utypes.h.

#define U_COMMON_API ()

Control of symbol import/export.

The ICU is separated into two libraries.

Definition at line 198 of file utypes.h.

#define U_I18N_API ()

Definition at line 199 of file utypes.h.

#define U_SUCCESS (x)

Stable:

Definition at line 250 of file utypes.h.

#define U_FAILURE (x)

Stable:

Definition at line 252 of file utypes.h.

#define U_COPYRIGHT_STRING ()

Definition at line 263 of file utypes.h.

#define U_COPYRIGHT_STRING_LENGTH ()

Definition at line 266 of file utypes.h.


Typedef Documentation

typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]

Definition at line 94 of file utypes.h.

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.

Definition at line 129 of file utypes.h.

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

Definition at line 179 of file utypes.h.

typedef enum UErrorCode UErrorCode

Definition at line 238 of file utypes.h.

typedef void* UMTX

Definition at line 275 of file utypes.h.


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_RESOURCE_TYPE_MISMATCH  
U_ERROR_LIMIT  

Definition at line 208 of file utypes.h.


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 Wed Aug 16 16:05:32 2000 for ICU1.6 by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999