ICU 49.1.1
49.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
i18n
unicode
ulocdata.h
Go to the documentation of this file.
1
/*
2
******************************************************************************
3
* *
4
* Copyright (C) 2003-2012, International Business Machines *
5
* Corporation and others. All Rights Reserved. *
6
* *
7
******************************************************************************
8
* file name: ulocdata.h
9
* encoding: US-ASCII
10
* tab size: 8 (not used)
11
* indentation:4
12
*
13
* created on: 2003Oct21
14
* created by: Ram Viswanadha
15
*/
16
17
#ifndef __ULOCDATA_H__
18
#define __ULOCDATA_H__
19
20
#include "
unicode/ures.h
"
21
#include "
unicode/uloc.h
"
22
#include "
unicode/uset.h
"
23
#include "
unicode/localpointer.h
"
24
31
struct
ULocaleData
;
32
34
typedef
struct
ULocaleData
ULocaleData
;
35
36
37
41
typedef
enum
ULocaleDataExemplarSetType
{
43
ULOCDATA_ES_STANDARD
=0,
45
ULOCDATA_ES_AUXILIARY
=1,
47
ULOCDATA_ES_INDEX
=2,
49
ULOCDATA_ES_COUNT
=3
50
}
ULocaleDataExemplarSetType
;
51
55
typedef
enum
ULocaleDataDelimiterType
{
57
ULOCDATA_QUOTATION_START
= 0,
59
ULOCDATA_QUOTATION_END
= 1,
61
ULOCDATA_ALT_QUOTATION_START
= 2,
63
ULOCDATA_ALT_QUOTATION_END
= 3,
65
ULOCDATA_DELIMITER_COUNT
= 4
66
}
ULocaleDataDelimiterType
;
67
76
U_STABLE
ULocaleData
* U_EXPORT2
77
ulocdata_open
(
const
char
*localeID,
UErrorCode
*status);
78
85
U_STABLE
void
U_EXPORT2
86
ulocdata_close
(
ULocaleData
*uld);
87
88
#if U_SHOW_CPLUSPLUS_API
89
90
U_NAMESPACE_BEGIN
91
101
U_DEFINE_LOCAL_OPEN_POINTER(LocalULocaleDataPointer,
ULocaleData
,
ulocdata_close
);
102
103
U_NAMESPACE_END
104
105
#endif
106
118
U_STABLE
void
U_EXPORT2
119
ulocdata_setNoSubstitute
(
ULocaleData
*uld,
UBool
setting);
120
132
U_STABLE
UBool
U_EXPORT2
133
ulocdata_getNoSubstitute
(
ULocaleData
*uld);
134
162
U_STABLE
USet
* U_EXPORT2
163
ulocdata_getExemplarSet
(
ULocaleData
*uld,
USet
*fillIn,
164
uint32_t options,
ULocaleDataExemplarSetType
extype,
UErrorCode
*status);
165
179
U_STABLE
int32_t U_EXPORT2
180
ulocdata_getDelimiter
(
ULocaleData
*uld,
ULocaleDataDelimiterType
type,
UChar
*result, int32_t resultLength,
UErrorCode
*status);
181
186
typedef
enum
UMeasurementSystem
{
187
UMS_SI,
188
UMS_US
,
189
UMS_LIMIT
190
}
UMeasurementSystem
;
191
202
U_STABLE
UMeasurementSystem
U_EXPORT2
203
ulocdata_getMeasurementSystem
(
const
char
*localeID,
UErrorCode
*status);
204
221
U_STABLE
void
U_EXPORT2
222
ulocdata_getPaperSize
(
const
char
*localeID, int32_t *height, int32_t *width,
UErrorCode
*status);
223
230
U_STABLE
void
U_EXPORT2
231
ulocdata_getCLDRVersion
(
UVersionInfo
versionArray,
UErrorCode
*status);
232
248
U_STABLE
int32_t U_EXPORT2
249
ulocdata_getLocaleDisplayPattern
(
ULocaleData
*uld,
250
UChar
*pattern,
251
int32_t patternCapacity,
252
UErrorCode
*status);
253
254
270
U_STABLE
int32_t U_EXPORT2
271
ulocdata_getLocaleSeparator
(
ULocaleData
*uld,
272
UChar
*separator,
273
int32_t separatorCapacity,
274
UErrorCode
*status);
275
#endif
Generated by
1.8.3.1