ICU 50.1.2
50.1.2
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
common
unicode
udata.h
Go to the documentation of this file.
1
/*
2
******************************************************************************
3
*
4
* Copyright (C) 1999-2012, International Business Machines
5
* Corporation and others. All Rights Reserved.
6
*
7
******************************************************************************
8
* file name: udata.h
9
* encoding: US-ASCII
10
* tab size: 8 (not used)
11
* indentation:4
12
*
13
* created on: 1999oct25
14
* created by: Markus W. Scherer
15
*/
16
17
#ifndef __UDATA_H__
18
#define __UDATA_H__
19
20
#include "
unicode/utypes.h
"
21
#include "
unicode/localpointer.h
"
22
23
U_CDECL_BEGIN
24
40
#ifndef U_HIDE_INTERNAL_API
41
45
#define U_TREE_SEPARATOR '-'
46
51
#define U_TREE_SEPARATOR_STRING "-"
52
57
#define U_TREE_ENTRY_SEP_CHAR '/'
58
63
#define U_TREE_ENTRY_SEP_STRING "/"
64
69
#define U_ICUDATA_ALIAS "ICUDATA"
70
71
#endif
/* U_HIDE_INTERNAL_API */
72
106
typedef
struct
{
109
uint16_t
size
;
110
113
uint16_t
reservedWord
;
114
115
/* platform data properties */
118
uint8_t
isBigEndian
;
119
122
uint8_t
charsetFamily
;
123
126
uint8_t
sizeofUChar
;
127
130
uint8_t
reservedByte
;
131
134
uint8_t dataFormat[4];
135
138
uint8_t formatVersion[4];
139
142
uint8_t dataVersion[4];
143
}
UDataInfo
;
144
145
/* API for reading data -----------------------------------------------------*/
146
151
typedef
struct
UDataMemory
UDataMemory
;
152
166
typedef
UBool
U_CALLCONV
167
UDataMemoryIsAcceptable
(
void
*context,
168
const
char
*type,
const
char
*name,
169
const
UDataInfo
*pInfo);
170
171
193
U_STABLE
UDataMemory
* U_EXPORT2
194
udata_open
(
const
char
*path,
const
char
*type,
const
char
*name,
195
UErrorCode
*pErrorCode);
196
245
U_STABLE
UDataMemory
* U_EXPORT2
246
udata_openChoice
(
const
char
*path,
const
char
*type,
const
char
*name,
247
UDataMemoryIsAcceptable
*isAcceptable,
void
*context,
248
UErrorCode
*pErrorCode);
249
257
U_STABLE
void
U_EXPORT2
258
udata_close
(
UDataMemory
*pData);
259
260
#if U_SHOW_CPLUSPLUS_API
261
262
U_NAMESPACE_BEGIN
263
273
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalUDataMemoryPointer
,
UDataMemory
,
udata_close
);
274
275
U_NAMESPACE_END
276
277
#endif
278
285
U_STABLE
const
void
* U_EXPORT2
286
udata_getMemory
(
UDataMemory
*pData);
287
306
U_STABLE
void
U_EXPORT2
307
udata_getInfo
(
UDataMemory
*pData,
UDataInfo
*pInfo);
308
349
U_STABLE
void
U_EXPORT2
350
udata_setCommonData
(
const
void
*data,
UErrorCode
*err);
351
352
377
U_STABLE
void
U_EXPORT2
378
udata_setAppData
(
const
char
*packageName,
const
void
*data,
UErrorCode
*err);
379
385
typedef
enum
UDataFileAccess
{
387
UDATA_FILES_FIRST
,
389
UDATA_DEFAULT_ACCESS
=
UDATA_FILES_FIRST
,
391
UDATA_ONLY_PACKAGES
,
394
UDATA_PACKAGES_FIRST
,
396
UDATA_NO_FILES
,
398
UDATA_FILE_ACCESS_COUNT
399
}
UDataFileAccess
;
400
411
U_STABLE
void
U_EXPORT2
412
udata_setFileAccess
(
UDataFileAccess
access,
UErrorCode
*status);
413
414
U_CDECL_END
415
416
#endif
Generated by
1.8.3.1