ICU 52.1
52.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
i18n
unicode
ulocdata.h
Go to the documentation of this file.
1
/*
2
******************************************************************************
3
* *
4
* Copyright (C) 2003-2013, 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,
48
#ifndef U_HIDE_DRAFT_API
49
50
ULOCDATA_ES_PUNCTUATION
=3,
51
#endif
/* U_HIDE_DRAFT_API */
52
53
ULOCDATA_ES_COUNT
=4
54
}
ULocaleDataExemplarSetType
;
55
59
typedef
enum
ULocaleDataDelimiterType
{
61
ULOCDATA_QUOTATION_START
= 0,
63
ULOCDATA_QUOTATION_END
= 1,
65
ULOCDATA_ALT_QUOTATION_START
= 2,
67
ULOCDATA_ALT_QUOTATION_END
= 3,
69
ULOCDATA_DELIMITER_COUNT
= 4
70
}
ULocaleDataDelimiterType
;
71
80
U_STABLE
ULocaleData
* U_EXPORT2
81
ulocdata_open
(
const
char
*localeID,
UErrorCode
*status);
82
89
U_STABLE
void
U_EXPORT2
90
ulocdata_close
(
ULocaleData
*uld);
91
92
#if U_SHOW_CPLUSPLUS_API
93
94
U_NAMESPACE_BEGIN
95
105
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalULocaleDataPointer
,
ULocaleData
,
ulocdata_close
);
106
107
U_NAMESPACE_END
108
109
#endif
110
122
U_STABLE
void
U_EXPORT2
123
ulocdata_setNoSubstitute
(
ULocaleData
*uld,
UBool
setting);
124
136
U_STABLE
UBool
U_EXPORT2
137
ulocdata_getNoSubstitute
(
ULocaleData
*uld);
138
166
U_STABLE
USet
* U_EXPORT2
167
ulocdata_getExemplarSet
(
ULocaleData
*uld,
USet
*fillIn,
168
uint32_t options,
ULocaleDataExemplarSetType
extype,
UErrorCode
*status);
169
183
U_STABLE
int32_t U_EXPORT2
184
ulocdata_getDelimiter
(
ULocaleData
*uld,
ULocaleDataDelimiterType
type,
UChar
*result, int32_t resultLength,
UErrorCode
*status);
185
190
typedef
enum
UMeasurementSystem
{
191
UMS_SI,
192
UMS_US
,
193
UMS_LIMIT
194
}
UMeasurementSystem
;
195
206
U_STABLE
UMeasurementSystem
U_EXPORT2
207
ulocdata_getMeasurementSystem
(
const
char
*localeID,
UErrorCode
*status);
208
225
U_STABLE
void
U_EXPORT2
226
ulocdata_getPaperSize
(
const
char
*localeID, int32_t *height, int32_t *width,
UErrorCode
*status);
227
234
U_STABLE
void
U_EXPORT2
235
ulocdata_getCLDRVersion
(
UVersionInfo
versionArray,
UErrorCode
*status);
236
252
U_STABLE
int32_t U_EXPORT2
253
ulocdata_getLocaleDisplayPattern
(
ULocaleData
*uld,
254
UChar
*pattern,
255
int32_t patternCapacity,
256
UErrorCode
*status);
257
258
274
U_STABLE
int32_t U_EXPORT2
275
ulocdata_getLocaleSeparator
(
ULocaleData
*uld,
276
UChar
*separator,
277
int32_t separatorCapacity,
278
UErrorCode
*status);
279
#endif
Generated on Thu Sep 30 2021 22:27:47 for ICU 52.1 by
1.8.1.2