Logo Search packages:      
Sourcecode: icu version File versions  Download package

Classes | Defines | Typedefs | Enumerations | Functions

udata.h File Reference

C API: Data loading interface. More...

#include "unicode/utypes.h"
Include dependency graph for udata.h:

Go to the source code of this file.


struct  UDataInfo


#define U_TREE_ENTRY_SEP_CHAR   '/'
#define U_TREE_SEPARATOR   '-'


typedef enum UDataFileAccess UDataFileAccess
typedef struct UDataMemory UDataMemory
typedef UBool U_CALLCONV UDataMemoryIsAcceptable (void *context, const char *type, const char *name, const UDataInfo *pInfo)


enum  UDataFileAccess {


U_STABLE void U_EXPORT2 udata_close (UDataMemory *pData)
U_STABLE void U_EXPORT2 udata_getInfo (UDataMemory *pData, UDataInfo *pInfo)
U_STABLE const void *U_EXPORT2 udata_getMemory (UDataMemory *pData)
U_STABLE UDataMemory *U_EXPORT2 udata_open (const char *path, const char *type, const char *name, UErrorCode *pErrorCode)
U_STABLE UDataMemory *U_EXPORT2 udata_openChoice (const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode)
U_STABLE void U_EXPORT2 udata_setAppData (const char *packageName, const void *data, UErrorCode *err)
U_STABLE void U_EXPORT2 udata_setCommonData (const void *data, UErrorCode *err)
U_STABLE void U_EXPORT2 udata_setFileAccess (UDataFileAccess access, UErrorCode *status)

Detailed Description

C API: Data loading interface.

Information about data loading interface

This API is used to find and efficiently load data for ICU and applications using ICU. It provides an abstract interface that specifies a data type and name to find and load the data. Normally this API is used by other ICU APIs to load required data out of the ICU data library, but it can be used to load data out of other places.

See the User Guide Data Management chapter.

Definition in file udata.h.

Generated by  Doxygen 1.6.0   Back to index