ICU 49.1.1
49.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
i18n
unicode
uldnames.h
Go to the documentation of this file.
1
/*
2
*******************************************************************************
3
* Copyright (C) 2010, International Business Machines Corporation and *
4
* others. All Rights Reserved. *
5
*******************************************************************************
6
*/
7
8
#ifndef __ULDNAMES_H__
9
#define __ULDNAMES_H__
10
16
#include "
unicode/utypes.h
"
17
#include "
unicode/localpointer.h
"
18
#include "
unicode/uscript.h
"
19
24
typedef
enum
{
30
ULDN_STANDARD_NAMES
= 0,
36
ULDN_DIALECT_NAMES
37
}
UDialectHandling
;
38
43
struct
ULocaleDisplayNames
;
44
49
typedef
struct
ULocaleDisplayNames
ULocaleDisplayNames
;
50
51
#if !UCONFIG_NO_FORMATTING
52
65
U_STABLE
ULocaleDisplayNames
* U_EXPORT2
66
uldn_open
(
const
char
* locale,
67
UDialectHandling
dialectHandling,
68
UErrorCode
*pErrorCode);
69
75
U_STABLE
void
U_EXPORT2
76
uldn_close
(
ULocaleDisplayNames
*ldn);
77
78
#if U_SHOW_CPLUSPLUS_API
79
80
U_NAMESPACE_BEGIN
81
91
U_DEFINE_LOCAL_OPEN_POINTER(LocalULocaleDisplayNamesPointer,
ULocaleDisplayNames
,
uldn_close
);
92
93
U_NAMESPACE_END
94
95
#endif
96
97
/* getters for state */
98
106
U_STABLE
const
char
* U_EXPORT2
107
uldn_getLocale
(
const
ULocaleDisplayNames
*ldn);
108
115
U_STABLE
UDialectHandling
U_EXPORT2
116
uldn_getDialectHandling
(
const
ULocaleDisplayNames
*ldn);
117
118
/* names for entire locales */
119
131
U_STABLE
int32_t U_EXPORT2
132
uldn_localeDisplayName
(
const
ULocaleDisplayNames
*ldn,
133
const
char
*locale,
134
UChar
*result,
135
int32_t maxResultSize,
136
UErrorCode
*pErrorCode);
137
138
/* names for components of a locale */
139
151
U_STABLE
int32_t U_EXPORT2
152
uldn_languageDisplayName
(
const
ULocaleDisplayNames
*ldn,
153
const
char
*lang,
154
UChar
*result,
155
int32_t maxResultSize,
156
UErrorCode
*pErrorCode);
157
169
U_STABLE
int32_t U_EXPORT2
170
uldn_scriptDisplayName
(
const
ULocaleDisplayNames
*ldn,
171
const
char
*script,
172
UChar
*result,
173
int32_t maxResultSize,
174
UErrorCode
*pErrorCode);
175
187
U_STABLE
int32_t U_EXPORT2
188
uldn_scriptCodeDisplayName
(
const
ULocaleDisplayNames
*ldn,
189
UScriptCode
scriptCode,
190
UChar
*result,
191
int32_t maxResultSize,
192
UErrorCode
*pErrorCode);
193
205
U_STABLE
int32_t U_EXPORT2
206
uldn_regionDisplayName
(
const
ULocaleDisplayNames
*ldn,
207
const
char
*region,
208
UChar
*result,
209
int32_t maxResultSize,
210
UErrorCode
*pErrorCode);
211
223
U_STABLE
int32_t U_EXPORT2
224
uldn_variantDisplayName
(
const
ULocaleDisplayNames
*ldn,
225
const
char
*variant,
226
UChar
*result,
227
int32_t maxResultSize,
228
UErrorCode
*pErrorCode);
229
241
U_STABLE
int32_t U_EXPORT2
242
uldn_keyDisplayName
(
const
ULocaleDisplayNames
*ldn,
243
const
char
*key,
244
UChar
*result,
245
int32_t maxResultSize,
246
UErrorCode
*pErrorCode);
247
260
U_STABLE
int32_t U_EXPORT2
261
uldn_keyValueDisplayName
(
const
ULocaleDisplayNames
*ldn,
262
const
char
*key,
263
const
char
*value,
264
UChar
*result,
265
int32_t maxResultSize,
266
UErrorCode
*pErrorCode);
267
268
269
#endif
/* !UCONFIG_NO_FORMATTING */
270
#endif
/* __ULDNAMES_H__ */
Generated by
1.8.3.1