Main Page | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

udata.h

Go to the documentation of this file.
00001 /* 00002 ****************************************************************************** 00003 * 00004 * Copyright (C) 1999-2003, International Business Machines 00005 * Corporation and others. All Rights Reserved. 00006 * 00007 ****************************************************************************** 00008 * file name: udata.h 00009 * encoding: US-ASCII 00010 * tab size: 8 (not used) 00011 * indentation:4 00012 * 00013 * created on: 1999oct25 00014 * created by: Markus W. Scherer 00015 */ 00016 00017 #ifndef __UDATA_H__ 00018 #define __UDATA_H__ 00019 00020 #include "unicode/utypes.h" 00021 00022 U_CDECL_BEGIN 00023 00072 typedef struct { 00075 uint16_t size; 00076 00079 uint16_t reservedWord; 00080 00081 /* platform data properties */ 00084 uint8_t isBigEndian; 00085 00088 uint8_t charsetFamily; 00089 00092 uint8_t sizeofUChar; 00093 00096 uint8_t reservedByte; 00097 00100 uint8_t dataFormat[4]; 00101 00104 uint8_t formatVersion[4]; 00105 00108 uint8_t dataVersion[4]; 00109 } UDataInfo; 00110 00111 /* API for reading data -----------------------------------------------------*/ 00112 00117 typedef struct UDataMemory UDataMemory; 00118 00132 typedef UBool U_CALLCONV 00133 UDataMemoryIsAcceptable(void *context, 00134 const char *type, const char *name, 00135 const UDataInfo *pInfo); 00136 00137 00159 U_CAPI UDataMemory * U_EXPORT2 00160 udata_open(const char *path, const char *type, const char *name, 00161 UErrorCode *pErrorCode); 00162 00211 U_CAPI UDataMemory * U_EXPORT2 00212 udata_openChoice(const char *path, const char *type, const char *name, 00213 UDataMemoryIsAcceptable *isAcceptable, void *context, 00214 UErrorCode *pErrorCode); 00215 00223 U_CAPI void U_EXPORT2 00224 udata_close(UDataMemory *pData); 00225 00232 U_CAPI const void * U_EXPORT2 00233 udata_getMemory(UDataMemory *pData); 00234 00253 U_CAPI void U_EXPORT2 00254 udata_getInfo(UDataMemory *pData, UDataInfo *pInfo); 00255 00290 U_CAPI void U_EXPORT2 00291 udata_setCommonData(const void *data, UErrorCode *err); 00292 00293 00318 U_CAPI void U_EXPORT2 00319 udata_setAppData(const char *packageName, const void *data, UErrorCode *err); 00320 00321 U_CDECL_END 00322 00323 #endif

Generated on Wed Sep 15 17:18:09 2004 for ICU 2.8 by doxygen 1.3.8