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

LETypes.h

Go to the documentation of this file.
00001 
00002 /*
00003  * @(#)LETypes.h        1.2 00/03/15
00004  *
00005  * (C) Copyright IBM Corp. 1998, 1999, 2000 - All Rights Reserved
00006  *
00007  */
00008 
00009 #ifndef __LETYPES_H
00010 #define __LETYPES_H
00011 
00012 #include "unicode/utypes.h"
00013 
00014 typedef int32_t le_int32;
00015 typedef uint32_t le_uint32;
00016 typedef int16_t le_int16;
00017 typedef uint16_t le_uint16;
00018 typedef int8_t le_int8;
00019 typedef uint8_t le_uint8;
00020 
00021 typedef bool_t le_bool;
00022 
00023 #ifndef true
00024 #define true 1
00025 #endif
00026 
00027 #ifndef false
00028 #define false 0
00029 #endif
00030 
00031 #ifndef NULL
00032 #define NULL 0
00033 #endif
00034 
00035 typedef le_uint32 LETag;
00036 
00037 typedef le_uint16 LEGlyphID;
00038 
00039 typedef UChar LEUnicode16;
00040 typedef UChar32 LEUnicode32;
00041 typedef UChar LEUnicode;        // FIXME: we should depricate this type in favor of LEUnicode16...
00042 
00043 struct LEPoint
00044 {
00045     float fX;
00046     float fY;
00047 };
00048 
00049 #ifndef XP_CPLUSPLUS
00050 typedef struct LEPoint LEPoint;
00051 #endif
00052 
00053 #define LE_ARRAY_COPY(dst, src, count) memcpy(dst, src, (count) * sizeof (src)[0])
00054 
00055 enum LEErrorCode {
00056         /* informational */
00057         // none right now...
00058 
00059         /* success */
00060         LE_NO_ERROR                                             = U_ZERO_ERROR,
00061 
00062         /* failures */
00063         LE_ILLEGAL_ARGUMENT_ERROR               = U_ILLEGAL_ARGUMENT_ERROR,
00064         LE_MEMORY_ALLOCATION_ERROR              = U_MEMORY_ALLOCATION_ERROR,
00065         LE_INDEX_OUT_OF_BOUNDS_ERROR    = U_INDEX_OUTOFBOUNDS_ERROR,
00066         LE_NO_LAYOUT_ERROR                              = U_UNSUPPORTED_ERROR,
00067         LE_INTERNAL_ERROR                               = U_INTERNAL_PROGRAM_ERROR
00068 };
00069 
00070 #ifndef XP_CPLUSPLUS
00071 typedef enum LEErrorCode LEErrorCode;
00072 #endif
00073 
00074 #define LE_SUCCESS(code) (U_SUCCESS((UErrorCode)code))
00075 #define LE_FAILURE(code) (U_FAILURE((UErrorCode)code))
00076 
00077 #endif
00078 
00079 

Generated at Tue Jun 12 14:03:57 2001 for ICU 1.8.1 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000