Java.Util.Locale Members

The members of Java.Util.Locale are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Constructs a new Locale using the specified language.
Constructs a new Locale using the specified language and country codes.
Constructs a new Locale using the specified language, country, and variant codes.

Public Properties

[read-only]
static
CanadaLocale. Locale constant for en_CA.
[read-only]
static
CanadaFrenchLocale. Locale constant for fr_CA.
[read-only]
static
ChinaLocale. Locale constant for zh_CN.
[read-only]
static
ChineseLocale. Locale constant for zh.
[read-only]
Countrystring. Returns the country code for this locale, or "" if this locale doesn't correspond to a specific country.
static
DefaultLocale. Returns the user's preferred locale.
[read-only]
DisplayCountrystring. Equivalent to getDisplayCountry(Locale.getDefault()).
[read-only]
DisplayLanguagestring. Equivalent to getDisplayLanguage(Locale.getDefault()).
[read-only]
DisplayNamestring. Equivalent to getDisplayName(Locale.getDefault()).
[read-only]
DisplayScriptstring. Equivalent to getDisplayScript(Locale.getDefault()))
[read-only]
DisplayVariantstring. Returns the full variant name in the default Locale for the variant code of this Locale.
[read-only]
static
EnglishLocale. Locale constant for en.
[read-only]
ExtensionKeysICollection<Java.Lang.Character>. Returns the set of BCP-47 extensions this locale contains.
[read-only]
static
FranceLocale. Locale constant for fr_FR.
[read-only]
static
FrenchLocale. Locale constant for fr.
[read-only]
static
GermanLocale. Locale constant for de.
[read-only]
static
GermanyLocale. Locale constant for de_DE.
[read-only]
ISO3Countrystring. Returns the three-letter ISO 3166 country code which corresponds to the country code for this Locale.
[read-only]
ISO3Languagestring. Returns the three-letter ISO 639-2/T language code which corresponds to the language code for this Locale.
[read-only]
static
ItalianLocale. Locale constant for it.
[read-only]
static
ItalyLocale. Locale constant for it_IT.
[read-only]
static
JapanLocale. Locale constant for ja_JP.
[read-only]
static
JapaneseLocale. Locale constant for ja.
[read-only]
static
KoreaLocale. Locale constant for ko_KR.
[read-only]
static
KoreanLocale. Locale constant for ko.
[read-only]
Languagestring. Returns the language code for this Locale or the empty string if no language was set.
[read-only]
static
PrcLocale. Locale constant for zh_CN.
[read-only]
static
PrivateUseExtensionchar. BCP-47 extension identifier (or "singleton") for the private use extension.
[read-only]
static
RootLocale. Locale constant for the root locale.
[read-only]
Scriptstring. Returns the script code for this Locale or an empty String if no script was set.
[read-only]
static
SimplifiedChineseLocale. Locale constant for zh_CN.
[read-only]
static
TaiwanLocale. Locale constant for zh_TW.
[read-only]
static
TraditionalChineseLocale. Locale constant for zh_TW.
[read-only]
static
UkLocale. Locale constant for en_GB.
[read-only]
UnicodeLocaleAttributesICollection<string>. Returns the set of unicode locale extension attributes this locale contains.
[read-only]
static
UnicodeLocaleExtensionchar. BCP-47 extension identifier (or "singleton") for the unicode locale extension.
[read-only]
UnicodeLocaleKeysICollection<string>. Returns the set of unicode locale extension keywords this locale contains.
[read-only]
static
UsLocale. Locale constant for en_US.
[read-only]
Variantstring. Returns the variant code for this Locale or an empty String if no variant was set.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clone() : Java.Lang.Object
Creates and returns a copy of this Object.
static
ForLanguageTag(string) : Locale
Returns a locale for a given BCP-47 language tag.
static
GetAvailableLocales() : Locale[]
Returns the system's installed locales.
GetDisplayCountry(Locale) : string
Returns the name of this locale's country, localized to locale.
GetDisplayLanguage(Locale) : string
Returns the name of this locale's language, localized to locale.
GetDisplayName(Locale) : string
Returns this locale's language name, country name, and variant, localized to locale.
GetDisplayScript(Locale) : string
Returns the name of this locale's script code, localized to Java.Util.Locale.
GetDisplayVariant(Locale) : string
Returns the full variant name in the specified Locale for the variant code of this Locale.
GetExtension(char) : string
Returns the BCP-47 extension whose key is extensionKey, or null if this locale does not contain the extension.
static
GetISOCountries() : string[]
Returns an array of strings containing all the two-letter ISO 3166 country codes that can be used as the country code when constructing a Locale.
static
GetISOLanguages() : string[]
Returns an array of strings containing all the two-letter ISO 639-1 language codes that can be used as the language code when constructing a Locale.
GetUnicodeLocaleType(string) : string
Returns the type for the specified unicode locale extension key.
ToLanguageTag() : string
Returns a well formed BCP-47 language tag that identifies this locale.
override
ToString() : string
Returns the string representation of this Locale.