Go to the documentation of this file.
42 #ifndef U_HIDE_INTERNAL_API
47 #define U_TREE_SEPARATOR '-'
53 #define U_TREE_SEPARATOR_STRING "-"
59 #define U_TREE_ENTRY_SEP_CHAR '/'
65 #define U_TREE_ENTRY_SEP_STRING "/"
71 #define U_ICUDATA_ALIAS "ICUDATA"
141 uint8_t dataFormat[4];
145 uint8_t formatVersion[4];
149 uint8_t dataVersion[4];
175 const char *type,
const char *name,
201 udata_open(
const char *path,
const char *type,
const char *name,
394 #ifndef U_HIDE_DEPRECATED_API
400 #endif // U_HIDE_DEPRECATED_API
418 #if U_SHOW_CPLUSPLUS_API
435 #endif // U_SHOW_CPLUSPLUS_API
uint8_t isBigEndian
0 for little-endian machine, 1 for big-endian
UDataMemory * udata_openChoice(const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode)
Data loading function.
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
void udata_setFileAccess(UDataFileAccess access, UErrorCode *status)
This function may be called to control how ICU loads data.
uint8_t reservedByte
unused, set to 0
UDataInfo contains the properties about the requested data.
UBool UDataMemoryIsAcceptable(void *context, const char *type, const char *name, const UDataInfo *pInfo)
Callback function for udata_openChoice().
UDataMemory * udata_open(const char *path, const char *type, const char *name, UErrorCode *pErrorCode)
Convenience function.
uint16_t size
sizeof(UDataInfo)
void udata_setCommonData(const void *data, UErrorCode *err)
This function bypasses the normal ICU data loading process and allows you to force ICU's system data ...
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
void udata_setAppData(const char *packageName, const void *data, UErrorCode *err)
This function bypasses the normal ICU data loading process for application-specific data and allows y...
An alias for the default access mode.
ICU only loads data from packages, not from single files.
ICU looks for data in single files first, then in packages.
struct UDataMemory UDataMemory
Forward declaration of the data memory type.
void udata_close(UDataMemory *pData)
Close the data memory.
Number of real UDataFileAccess values.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
uint8_t charsetFamily
see U_CHARSET_FAMILY values in utypes.h
UDataFileAccess
Possible settings for udata_setFileAccess()
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
void udata_getInfo(UDataMemory *pData, UDataInfo *pInfo)
Get the information from the data memory header.
const void * udata_getMemory(UDataMemory *pData)
Get the pointer to the actual data inside the data memory.
uint8_t sizeofUChar
sizeof(UChar), one of { 1, 2, 4 }
ICU loads data from packages first, and only from single files if the data cannot be found in a packa...
uint16_t reservedWord
unused, set to 0
ICU does not access the file system for data loading.