ICU 64.2
64.2
|
Returns display names of Locales and components of Locales. More...
#include <locdspnm.h>
Public Member Functions | |
virtual | ~LocaleDisplayNames () |
Destructor. More... | |
virtual const Locale & | getLocale () const =0 |
Returns the locale used to determine the display names. More... | |
virtual UDialectHandling | getDialectHandling () const =0 |
Returns the dialect handling used in the display names. More... | |
virtual UDisplayContext | getContext (UDisplayContextType type) const =0 |
Returns the UDisplayContext value for the specified UDisplayContextType. More... | |
virtual UnicodeString & | localeDisplayName (const Locale &locale, UnicodeString &result) const =0 |
Returns the display name of the provided locale. More... | |
virtual UnicodeString & | localeDisplayName (const char *localeId, UnicodeString &result) const =0 |
Returns the display name of the provided locale id. More... | |
virtual UnicodeString & | languageDisplayName (const char *lang, UnicodeString &result) const =0 |
Returns the display name of the provided language code. More... | |
virtual UnicodeString & | scriptDisplayName (const char *script, UnicodeString &result) const =0 |
Returns the display name of the provided script code. More... | |
virtual UnicodeString & | scriptDisplayName (UScriptCode scriptCode, UnicodeString &result) const =0 |
Returns the display name of the provided script code. More... | |
virtual UnicodeString & | regionDisplayName (const char *region, UnicodeString &result) const =0 |
Returns the display name of the provided region code. More... | |
virtual UnicodeString & | variantDisplayName (const char *variant, UnicodeString &result) const =0 |
Returns the display name of the provided variant. More... | |
virtual UnicodeString & | keyDisplayName (const char *key, UnicodeString &result) const =0 |
Returns the display name of the provided locale key. More... | |
virtual UnicodeString & | keyValueDisplayName (const char *key, const char *value, UnicodeString &result) const =0 |
Returns the display name of the provided value (used with the provided key). More... | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. More... | |
virtual UClassID | getDynamicClassID () const |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Static Public Member Functions | |
static LocaleDisplayNames * | createInstance (const Locale &locale) |
Convenience overload of createInstance(const Locale& locale, UDialectHandling dialectHandling) that specifies STANDARD dialect handling. More... | |
static LocaleDisplayNames * | createInstance (const Locale &locale, UDialectHandling dialectHandling) |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling. More... | |
static LocaleDisplayNames * | createInstance (const Locale &locale, UDisplayContext *contexts, int32_t length) |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided UDisplayContext settings. More... | |
Returns display names of Locales and components of Locales.
For more information on language, script, region, variant, key, and values, see Locale.
Definition at line 36 of file locdspnm.h.
|
virtual |
Destructor.
|
inlinestatic |
Convenience overload of createInstance(const Locale& locale, UDialectHandling dialectHandling) that specifies STANDARD dialect handling.
locale | the display locale |
Definition at line 199 of file locdspnm.h.
References U_NAMESPACE_END, and ULDN_STANDARD_NAMES.
|
static |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling.
locale | the display locale |
dialectHandling | how to select names for locales |
|
static |
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided UDisplayContext settings.
locale | the display locale |
contexts | List of one or more context settings (e.g. for dialect handling, capitalization, etc. |
length | Number of items in the contexts list |
|
pure virtual |
Returns the UDisplayContext value for the specified UDisplayContextType.
type | the UDisplayContextType whose value to return |
|
pure virtual |
Returns the dialect handling used in the display names.
|
pure virtual |
Returns the locale used to determine the display names.
This is not necessarily the same locale passed to createInstance.
|
pure virtual |
Returns the display name of the provided locale key.
key | the locale key name |
result | receives the locale key's display name |
|
pure virtual |
Returns the display name of the provided value (used with the provided key).
key | the locale key name |
value | the locale key's value |
result | receives the value's display name |
|
pure virtual |
Returns the display name of the provided language code.
lang | the language code |
result | receives the language code's display name |
|
pure virtual |
Returns the display name of the provided locale.
locale | the locale whose display name to return |
result | receives the locale's display name |
|
pure virtual |
Returns the display name of the provided locale id.
localeId | the id of the locale whose display name to return |
result | receives the locale's display name |
|
pure virtual |
Returns the display name of the provided region code.
region | the region code |
result | receives the region code's display name |
|
pure virtual |
Returns the display name of the provided script code.
script | the script code |
result | receives the script code's display name |
|
pure virtual |
Returns the display name of the provided script code.
scriptCode | the script code number |
result | receives the script code's display name |
|
pure virtual |
Returns the display name of the provided variant.
variant | the variant string |
result | receives the variant's display name |