Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

utypes.h File Reference

#include <wchar.h>
#include <stdlib.h>
#include "pos400.h"

Include dependency graph for utypes.h:

Include dependency graph

Go to the source code of this file.

Defines

#define TRUE   1
#define FALSE   0
#define U_CFUNC
#define U_CDECL_BEGIN
#define U_CDECL_END
#define U_CAPI   U_CFUNC U_EXPORT
#define NULL   ((void *)0)
#define U_MAX_PTR   ((void*)-1)
#define U_SUCCESS(x)   ((x)<=U_ZERO_ERROR)
#define U_FAILURE(x)   ((x)>U_ZERO_ERROR)
#define T_INT32(i)   ((int32_t)i)
#define errorName(code)

Typedefs

typedef int32_t UTextOffset
typedef uint16_t UChar
typedef enum UErrorCode UErrorCode

Enumerations

enum  UErrorCode {
  U_ERROR_INFO_START = -128, U_USING_FALLBACK_ERROR = -128, U_USING_DEFAULT_ERROR = -127, U_ERROR_INFO_LIMIT,
  U_ZERO_ERROR = 0, U_ILLEGAL_ARGUMENT_ERROR = 1, U_MISSING_RESOURCE_ERROR = 2, U_INVALID_FORMAT_ERROR = 3,
  U_FILE_ACCESS_ERROR = 4, U_INTERNAL_PROGRAM_ERROR = 5, U_MESSAGE_PARSE_ERROR = 6, U_MEMORY_ALLOCATION_ERROR = 7,
  U_INDEX_OUTOFBOUNDS_ERROR = 8, U_PARSE_ERROR = 9, U_INVALID_CHAR_FOUND = 10, U_TRUNCATED_CHAR_FOUND = 11,
  U_ILLEGAL_CHAR_FOUND = 12, U_INVALID_TABLE_FORMAT = 13, U_INVALID_TABLE_FILE = 14, U_BUFFER_OVERFLOW_ERROR = 15,
  U_UNSUPPORTED_ERROR = 16, U_ERROR_LIMIT
}

Variables

XERCES_CPP_NAMESPACE_BEGIN
typedef int8_t 
bool_t
const char * _uErrorInfoName [U_ERROR_INFO_LIMIT-U_ERROR_INFO_START]
const char * _uErrorName [U_ERROR_LIMIT]


Define Documentation

#define errorName code   ) 
 

Value:

((code)>=0 && (code)<U_ERROR_LIMIT) ? \ _uErrorName[code] : \ ((code)>=U_ERROR_INFO_START && (code)<U_ERROR_INFO_LIMIT) ? \ _uErrorInfoName[code-U_ERROR_INFO_START] : \ "[BOGUS UErrorCode]"

#define FALSE   0
 

#define NULL   ((void *)0)
 

#define T_INT32  )     ((int32_t)i)
 

#define TRUE   1
 

#define U_CAPI   U_CFUNC U_EXPORT
 

#define U_CDECL_BEGIN
 

#define U_CDECL_END
 

#define U_CFUNC
 

#define U_FAILURE x   )     ((x)>U_ZERO_ERROR)
 

#define U_MAX_PTR   ((void*)-1)
 

#define U_SUCCESS x   )     ((x)<=U_ZERO_ERROR)
 


Typedef Documentation

typedef uint16_t UChar
 

typedef enum UErrorCode UErrorCode
 

typedef int32_t UTextOffset
 


Enumeration Type Documentation

enum UErrorCode
 

Error code to replace exception handling

Enumeration values:
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 


Variable Documentation

const char* _uErrorInfoName[U_ERROR_INFO_LIMIT-U_ERROR_INFO_START] [static]
 

Initial value:

{ "U_USING_FALLBACK_ERROR", "U_USING_DEFAULT_ERROR" }

const char* _uErrorName[U_ERROR_LIMIT] [static]
 

Initial value:

{ "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" }

XERCES_CPP_NAMESPACE_BEGIN typedef int8_t bool_t
 

Log
utypes.h,v
Revision 1.3 2004/09/08 13:56:45 peiyongz Apache License Version 2.0

Revision 1.2 2002/11/04 15:14:33 tng C++ Namespace Support.

Revision 1.1.1.1 2002/02/01 22:22:36 peiyongz sane_include

Revision 1.1 2000/02/10 18:08:28 abagchi Initial checkin


Generated on Thu Apr 30 02:35:39 2009 for ACS C++ API by doxygen 1.3.8