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

udata.h File Reference


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.

#include "unicode/utypes.h"
#include "unicode/localpointer.h"

Go to the source code of this file.

Classes

struct  UDataInfo

Defines

#define U_ICUDATA_ALIAS   "ICUDATA"
#define U_TREE_ENTRY_SEP_CHAR   '/'
#define U_TREE_ENTRY_SEP_STRING   "/"
#define U_TREE_SEPARATOR   '-'
#define U_TREE_SEPARATOR_STRING   "-"

Typedefs

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

Enumerations

enum  UDataFileAccess {
  UDATA_FILES_FIRST, UDATA_ONLY_PACKAGES, UDATA_PACKAGES_FIRST, UDATA_NO_FILES,
  UDATA_DEFAULT_ACCESS = UDATA_FILES_FIRST, UDATA_FILE_ACCESS_COUNT
}

Functions

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)


Generated by  Doxygen 1.6.0   Back to index