ICU 51.2
51.2
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
i18n
unicode
uldnames.h
Go to the documentation of this file.
1
/*
2
*******************************************************************************
3
* Copyright (C) 2010-2012, 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
#include "unicode/udisplaycontext.h"
20
25
typedef
enum
{
31
ULDN_STANDARD_NAMES
= 0,
37
ULDN_DIALECT_NAMES
38
}
UDialectHandling
;
39
44
struct
ULocaleDisplayNames
;
45
50
typedef
struct
ULocaleDisplayNames
ULocaleDisplayNames
;
51
52
#if !UCONFIG_NO_FORMATTING
53
66
U_STABLE
ULocaleDisplayNames
* U_EXPORT2
67
uldn_open
(
const
char
* locale,
68
UDialectHandling
dialectHandling,
69
UErrorCode
*pErrorCode);
70
76
U_STABLE
void
U_EXPORT2
77
uldn_close
(
ULocaleDisplayNames
*ldn);
78
79
#if U_SHOW_CPLUSPLUS_API
80
81
U_NAMESPACE_BEGIN
82
92
U_DEFINE_LOCAL_OPEN_POINTER
(
LocalULocaleDisplayNamesPointer
,
ULocaleDisplayNames
,
uldn_close
);
93
94
U_NAMESPACE_END
95
96
#endif
97
98
/* getters for state */
99
107
U_STABLE
const
char
* U_EXPORT2
108
uldn_getLocale
(
const
ULocaleDisplayNames
*ldn);
109
116
U_STABLE
UDialectHandling
U_EXPORT2
117
uldn_getDialectHandling
(
const
ULocaleDisplayNames
*ldn);
118
119
/* names for entire locales */
120
132
U_STABLE
int32_t U_EXPORT2
133
uldn_localeDisplayName
(
const
ULocaleDisplayNames
*ldn,
134
const
char
*locale,
135
UChar
*result,
136
int32_t maxResultSize,
137
UErrorCode
*pErrorCode);
138
139
/* names for components of a locale */
140
152
U_STABLE
int32_t U_EXPORT2
153
uldn_languageDisplayName
(
const
ULocaleDisplayNames
*ldn,
154
const
char
*lang,
155
UChar
*result,
156
int32_t maxResultSize,
157
UErrorCode
*pErrorCode);
158
170
U_STABLE
int32_t U_EXPORT2
171
uldn_scriptDisplayName
(
const
ULocaleDisplayNames
*ldn,
172
const
char
*script,
173
UChar
*result,
174
int32_t maxResultSize,
175
UErrorCode
*pErrorCode);
176
188
U_STABLE
int32_t U_EXPORT2
189
uldn_scriptCodeDisplayName
(
const
ULocaleDisplayNames
*ldn,
190
UScriptCode
scriptCode,
191
UChar
*result,
192
int32_t maxResultSize,
193
UErrorCode
*pErrorCode);
194
206
U_STABLE
int32_t U_EXPORT2
207
uldn_regionDisplayName
(
const
ULocaleDisplayNames
*ldn,
208
const
char
*region,
209
UChar
*result,
210
int32_t maxResultSize,
211
UErrorCode
*pErrorCode);
212
224
U_STABLE
int32_t U_EXPORT2
225
uldn_variantDisplayName
(
const
ULocaleDisplayNames
*ldn,
226
const
char
*variant,
227
UChar
*result,
228
int32_t maxResultSize,
229
UErrorCode
*pErrorCode);
230
242
U_STABLE
int32_t U_EXPORT2
243
uldn_keyDisplayName
(
const
ULocaleDisplayNames
*ldn,
244
const
char
*key,
245
UChar
*result,
246
int32_t maxResultSize,
247
UErrorCode
*pErrorCode);
248
261
U_STABLE
int32_t U_EXPORT2
262
uldn_keyValueDisplayName
(
const
ULocaleDisplayNames
*ldn,
263
const
char
*key,
264
const
char
*value,
265
UChar
*result,
266
int32_t maxResultSize,
267
UErrorCode
*pErrorCode);
268
269
#ifndef U_HIDE_DRAFT_API
270
284
U_DRAFT
ULocaleDisplayNames
* U_EXPORT2
285
uldn_openForContext
(
const
char
* locale, UDisplayContext *contexts,
286
int32_t length,
UErrorCode
*pErrorCode);
287
298
U_DRAFT
UDisplayContext U_EXPORT2
299
uldn_getContext
(
const
ULocaleDisplayNames
*ldn, UDisplayContextType type,
300
UErrorCode
*pErrorCode);
301
302
#endif
/* U_HIDE_DRAFT_API */
303
304
#endif
/* !UCONFIG_NO_FORMATTING */
305
#endif
/* __ULDNAMES_H__ */
Generated on Thu May 23 2013 00:42:34 for ICU 51.2 by
1.8.1.2