#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 "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
namespace {
constexpr char _kLanguages[] = …;
constexpr char _kScripts[] = …;
constexpr char _kScriptsStandAlone[] = …;
constexpr char _kCountries[] = …;
constexpr char _kVariants[] = …;
constexpr char _kKeys[] = …;
constexpr char _kTypes[] = …;
constexpr char _kCurrency[] = …;
constexpr char _kCurrencies[] = …;
constexpr char _kLocaleDisplayPattern[] = …;
constexpr char _kPattern[] = …;
constexpr char _kSeparator[] = …;
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 &errorCode) { … }
UDisplayNameGetter;
int32_t
_getDisplayNameForComponent(const char *locale,
const char *displayLocale,
char16_t *dest, int32_t destCapacity,
UDisplayNameGetter *getter,
const char *tag,
UErrorCode &errorCode) { … }
}
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){ … }