Go to the documentation of this file.
10 #ifndef __ULDNAMES_H__
11 #define __ULDNAMES_H__
54 #if !UCONFIG_NO_FORMATTING
81 #if U_SHOW_CPLUSPLUS_API
138 int32_t maxResultSize,
158 int32_t maxResultSize,
176 int32_t maxResultSize,
194 int32_t maxResultSize,
212 int32_t maxResultSize,
230 int32_t maxResultSize,
248 int32_t maxResultSize,
268 int32_t maxResultSize,
UDialectHandling
Enum used in LocaleDisplayNames::createInstance.
Basic definitions for ICU, for both C and C++ APIs.
C API: Unicode Script Information.
UScriptCode
Constants for ISO 15924 script codes.
@ ULDN_STANDARD_NAMES
Use standard names when generating a locale name, e.g.
const char * uldn_getLocale(const ULocaleDisplayNames *ldn)
Returns the locale used to determine the display names.
UDisplayContextType
Display context types, for getting values of a particular setting.
int32_t uldn_scriptDisplayName(const ULocaleDisplayNames *ldn, const char *script, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided script.
ULocaleDisplayNames * uldn_openForContext(const char *locale, UDisplayContext *contexts, int32_t length, UErrorCode *pErrorCode)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale,...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
ULocaleDisplayNames * uldn_open(const char *locale, UDialectHandling dialectHandling, UErrorCode *pErrorCode)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale,...
int32_t uldn_scriptCodeDisplayName(const ULocaleDisplayNames *ldn, UScriptCode scriptCode, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided script code.
struct ULocaleDisplayNames ULocaleDisplayNames
C typedef for struct ULocaleDisplayNames.
@ ULDN_DIALECT_NAMES
Use dialect names, when generating a locale name, e.g.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
UDisplayContext uldn_getContext(const ULocaleDisplayNames *ldn, UDisplayContextType type, UErrorCode *pErrorCode)
Returns the UDisplayContext value for the specified UDisplayContextType.
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
UDialectHandling uldn_getDialectHandling(const ULocaleDisplayNames *ldn)
Returns the dialect handling used in the display names.
int32_t uldn_variantDisplayName(const ULocaleDisplayNames *ldn, const char *variant, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided variant.
int32_t uldn_keyDisplayName(const ULocaleDisplayNames *ldn, const char *key, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided locale key.
UDisplayContext
Display context settings.
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
C API: Display context types (enum values)
int32_t uldn_keyValueDisplayName(const ULocaleDisplayNames *ldn, const char *key, const char *value, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided value (used with the provided key).
void uldn_close(ULocaleDisplayNames *ldn)
Closes a ULocaleDisplayNames instance obtained from uldn_open().
#define U_NAMESPACE_BEGIN
int32_t uldn_regionDisplayName(const ULocaleDisplayNames *ldn, const char *region, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided region code.
int32_t uldn_localeDisplayName(const ULocaleDisplayNames *ldn, const char *locale, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided locale.
int32_t uldn_languageDisplayName(const ULocaleDisplayNames *ldn, const char *lang, UChar *result, int32_t maxResultSize, UErrorCode *pErrorCode)
Returns the display name of the provided language code.