ICU 56.1
56.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
i18n
unicode
ulocdata.h
Go to the documentation of this file.
1
/*
2
******************************************************************************
3
* *
4
* Copyright (C) 2003-2015, 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_PUNCTUATION
=3,
51
ULOCDATA_ES_COUNT
=4
52
}
ULocaleDataExemplarSetType
;
53
57
typedef
enum
ULocaleDataDelimiterType
{
59
ULOCDATA_QUOTATION_START
= 0,
61
ULOCDATA_QUOTATION_END
= 1,
63
ULOCDATA_ALT_QUOTATION_START
= 2,
65
ULOCDATA_ALT_QUOTATION_END
= 3,
67
ULOCDATA_DELIMITER_COUNT
= 4
68
}
ULocaleDataDelimiterType
;
69
78
U_STABLE
ULocaleData
* U_EXPORT2
79
ulocdata_open
(
const
char
*localeID,
UErrorCode
*status);
80
87
U_STABLE
void
U_EXPORT2
88
ulocdata_close
(
ULocaleData
*uld);
89
90
#if U_SHOW_CPLUSPLUS_API
91
92
U_NAMESPACE_BEGIN
93
103
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalULocaleDataPointer
,
ULocaleData
,
ulocdata_close
);
104
105
U_NAMESPACE_END
106
107
#endif
108
120
U_STABLE
void
U_EXPORT2
121
ulocdata_setNoSubstitute
(
ULocaleData
*uld,
UBool
setting);
122
134
U_STABLE
UBool
U_EXPORT2
135
ulocdata_getNoSubstitute
(
ULocaleData
*uld);
136
164
U_STABLE
USet
* U_EXPORT2
165
ulocdata_getExemplarSet
(
ULocaleData
*uld,
USet
*fillIn,
166
uint32_t options,
ULocaleDataExemplarSetType
extype,
UErrorCode
*status);
167
181
U_STABLE
int32_t U_EXPORT2
182
ulocdata_getDelimiter
(
ULocaleData
*uld,
ULocaleDataDelimiterType
type,
UChar
*result, int32_t resultLength,
UErrorCode
*status);
183
188
typedef
enum
UMeasurementSystem
{
189
UMS_SI
,
190
UMS_US
,
191
UMS_UK
,
192
UMS_LIMIT
193
}
UMeasurementSystem
;
194
205
U_STABLE
UMeasurementSystem
U_EXPORT2
206
ulocdata_getMeasurementSystem
(
const
char
*localeID,
UErrorCode
*status);
207
224
U_STABLE
void
U_EXPORT2
225
ulocdata_getPaperSize
(
const
char
*localeID, int32_t *height, int32_t *width,
UErrorCode
*status);
226
233
U_STABLE
void
U_EXPORT2
234
ulocdata_getCLDRVersion
(
UVersionInfo
versionArray,
UErrorCode
*status);
235
251
U_STABLE
int32_t U_EXPORT2
252
ulocdata_getLocaleDisplayPattern
(
ULocaleData
*uld,
253
UChar
*pattern,
254
int32_t patternCapacity,
255
UErrorCode
*status);
256
257
273
U_STABLE
int32_t U_EXPORT2
274
ulocdata_getLocaleSeparator
(
ULocaleData
*uld,
275
UChar
*separator,
276
int32_t separatorCapacity,
277
UErrorCode
*status);
278
#endif
Generated on Wed Oct 7 2015 21:17:57 for ICU 56.1 by
1.8.1.2