Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Header Files   Compound Members   File Members  

udata.h

This is the verbatim text of the udata.h include file.
/*
*******************************************************************************
*
*   Copyright (C) 1999-2000, International Business Machines
*   Corporation and others.  All Rights Reserved.
*
*******************************************************************************
*   file name:  udata.h
*   encoding:   US-ASCII
*   tab size:   8 (not used)
*   indentation:4
*
*   created on: 1999oct25
*   created by: Markus W. Scherer
*/

#ifndef __UDATA_H__
#define __UDATA_H__

#include "unicode/utypes.h"

typedef struct {
    uint16_t size;

    uint16_t reservedWord;

    /* platform data properties */
    uint8_t isBigEndian;

    uint8_t charsetFamily;

    uint8_t sizeofUChar;

    uint8_t reservedByte;

    uint8_t dataFormat[4];

    uint8_t formatVersion[4];
    uint8_t dataVersion[4];
} UDataInfo;

/* API for reading data -----------------------------------------------------*/

typedef struct UDataMemory UDataMemory;

typedef bool_t
UDataMemoryIsAcceptable(void *context,
                        const char *type, const char *name,
                        UDataInfo *pInfo);


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_close(UDataMemory *pData);

U_CAPI const void * U_EXPORT2
udata_getMemory(UDataMemory *pData);

U_CAPI void U_EXPORT2
udata_getInfo(UDataMemory *pData, UDataInfo *pInfo);

#endif

Generated at Thu Feb 10 15:31:10 2000 for icu by doxygen 1.0.0 written by Dimitri van Heesch, © 1997-1999