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

udata.h

Go to the documentation of this file.
00001 /*
00002 ******************************************************************************
00003 *
00004 *   Copyright (C) 1999-2001, 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 
00058 typedef struct {
00060     uint16_t size;
00061 
00063     uint16_t reservedWord;
00064 
00065     /* platform data properties */
00067     uint8_t isBigEndian;
00068 
00070     uint8_t charsetFamily;
00071 
00073     uint8_t sizeofUChar;
00074 
00076     uint8_t reservedByte;
00077 
00079     uint8_t dataFormat[4];
00080 
00082     uint8_t formatVersion[4];
00083     uint8_t dataVersion[4];
00084 } UDataInfo;
00085 
00086 /* API for reading data -----------------------------------------------------*/
00087 
00092 typedef struct UDataMemory UDataMemory;
00093 
00107 typedef UBool U_CALLCONV
00108 UDataMemoryIsAcceptable(void *context,
00109                         const char *type, const char *name,
00110                         const UDataInfo *pInfo);
00111 
00112 
00132 U_CAPI UDataMemory * U_EXPORT2
00133 udata_open(const char *path, const char *type, const char *name,
00134            UErrorCode *pErrorCode);
00135 
00194 U_CAPI UDataMemory * U_EXPORT2
00195 udata_openChoice(const char *path, const char *type, const char *name,
00196                  UDataMemoryIsAcceptable *isAcceptable, void *context,
00197                  UErrorCode *pErrorCode);
00198 
00206 U_CAPI void U_EXPORT2
00207 udata_close(UDataMemory *pData);
00208 
00215 U_CAPI const void * U_EXPORT2
00216 udata_getMemory(UDataMemory *pData);
00217 
00236 U_CAPI void U_EXPORT2
00237 udata_getInfo(UDataMemory *pData, UDataInfo *pInfo);
00238 
00271 U_CAPI void U_EXPORT2
00272 udata_setCommonData(const void *data, UErrorCode *err);
00273 
00274 
00297 U_CAPI void U_EXPORT2
00298 udata_setAppData(const char *path, const void *data, UErrorCode *err);
00299 
00300 U_CDECL_END
00301 
00302 #endif

Generated on Thu Aug 15 14:13:31 2002 for ICU 2.2 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001