#include "unicode/utypes.h"
#include "unicode/brkiter.h"
#include "unicode/locid.h"
#include "unicode/uenum.h"
#include "unicode/uloc.h"
#include "unicode/ures.h"
#include "unicode/ustring.h"
#include "bytesinkutil.h"
#include "charstr.h"
#include "cmemory.h"
#include "cstring.h"
#include "putilimp.h"
#include "ulocimp.h"
#include "uresimp.h"
#include "ureslocs.h"
#include "ustr_imp.h"
U_NAMESPACE_BEGIN
UnicodeString&
Locale::getDisplayLanguage(UnicodeString& dispLang) const
{ … }
UnicodeString&
Locale::getDisplayLanguage(const Locale &displayLocale,
UnicodeString &result) const { … }
UnicodeString&
Locale::getDisplayScript(UnicodeString& dispScript) const
{ … }
UnicodeString&
Locale::getDisplayScript(const Locale &displayLocale,
UnicodeString &result) const { … }
UnicodeString&
Locale::getDisplayCountry(UnicodeString& dispCntry) const
{ … }
UnicodeString&
Locale::getDisplayCountry(const Locale &displayLocale,
UnicodeString &result) const { … }
UnicodeString&
Locale::getDisplayVariant(UnicodeString& dispVar) const
{ … }
UnicodeString&
Locale::getDisplayVariant(const Locale &displayLocale,
UnicodeString &result) const { … }
UnicodeString&
Locale::getDisplayName( UnicodeString& name ) const
{ … }
UnicodeString&
Locale::getDisplayName(const Locale &displayLocale,
UnicodeString &result) const { … }
#if ! UCONFIG_NO_BREAK_ITERATION
UnicodeString& U_EXPORT2
BreakIterator::getDisplayName(const Locale& objectLocale,
UnicodeString& name)
{ … }
UnicodeString& U_EXPORT2
BreakIterator::getDisplayName(const Locale& objectLocale,
const Locale& displayLocale,
UnicodeString& name)
{ … }
#endif
U_NAMESPACE_END
U_NAMESPACE_USE
static const char _kLanguages[] = …;
static const char _kScripts[] = …;
static const char _kScriptsStandAlone[] = …;
static const char _kCountries[] = …;
static const char _kVariants[] = …;
static const char _kKeys[] = …;
static const char _kTypes[] = …;
static const char _kCurrency[] = …;
static const char _kCurrencies[] = …;
static const char _kLocaleDisplayPattern[] = …;
static const char _kPattern[] = …;
static const char _kSeparator[] = …;
static int32_t
_getStringOrCopyKey(const char *path, const char *locale,
const char *tableKey,
const char* subTableKey,
const char *itemKey,
const char *substitute,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode) { … }
UDisplayNameGetter;
static int32_t
_getDisplayNameForComponent(const char *locale,
const char *displayLocale,
char16_t *dest, int32_t destCapacity,
UDisplayNameGetter *getter,
const char *tag,
UErrorCode *pErrorCode) { … }
U_CAPI int32_t U_EXPORT2
uloc_getDisplayLanguage(const char *locale,
const char *displayLocale,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode) { … }
U_CAPI int32_t U_EXPORT2
uloc_getDisplayScript(const char* locale,
const char* displayLocale,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode)
{ … }
static int32_t
uloc_getDisplayScriptInContext(const char* locale,
const char* displayLocale,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode)
{ … }
U_CAPI int32_t U_EXPORT2
uloc_getDisplayCountry(const char *locale,
const char *displayLocale,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode) { … }
U_CAPI int32_t U_EXPORT2
uloc_getDisplayVariant(const char *locale,
const char *displayLocale,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode) { … }
U_CAPI int32_t U_EXPORT2
uloc_getDisplayName(const char *locale,
const char *displayLocale,
char16_t *dest, int32_t destCapacity,
UErrorCode *pErrorCode)
{ … }
U_CAPI int32_t U_EXPORT2
uloc_getDisplayKeyword(const char* keyword,
const char* displayLocale,
char16_t* dest,
int32_t destCapacity,
UErrorCode* status){ … }
#define UCURRENCY_DISPLAY_NAME_INDEX …
U_CAPI int32_t U_EXPORT2
uloc_getDisplayKeywordValue( const char* locale,
const char* keyword,
const char* displayLocale,
char16_t* dest,
int32_t destCapacity,
UErrorCode* status){ … }