Logo Search packages:      
Sourcecode: icu version File versions

udata.h File Reference

Detailed Description

C API: Data memory.

Information about data memory.

This structure may grow in the future, indicated by the size field.

The platform data property fields help determine if a data file can be efficiently used on a given machine. The particular fields are of importance only if the data is affected by the properties - if there is integer data with word sizes > 1 byte, char* text, or UChar* text.

The implementation for the udata_open[Choice]() functions may reject data based on the value in isBigEndian. No other field is used by the udata API implementation.

The dataFormat may be used to identify the kind of data, e.g. a converter table.

The formatVersion field should be used to make sure that the format can be interpreted. I may be a good idea to check only for the one or two highest of the version elements to allow the data memory to get more or somewhat rearranged contents, for as long as the using code can still interpret the older contents.

The dataVersion field is intended to be a common place to store the source version of the data; for data from the Unicode character database, this could reflect the Unicode version.

Definition in file udata.h.

#include "unicode/utypes.h"

Go to the source code of this file.


struct  UDataInfo


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


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

Generated by  Doxygen 1.6.0   Back to index