Class AN_Locale
A Locale object represents a specific geographical, political, or cultural region.
An operation that requires a Locale to perform its task is called locale-sensitive
and uses the Locale to tailor information for the user.
Inheritance
System.Object
AN_Locale
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: cs.temp.dll.dll
Syntax
Fields
m_CountryCode
Declaration
protected string m_CountryCode
Field Value
Type |
Description |
System.String |
|
m_CurrencyCode
Declaration
protected string m_CurrencyCode
Field Value
Type |
Description |
System.String |
|
m_CurrencySymbol
Declaration
protected string m_CurrencySymbol
Field Value
Type |
Description |
System.String |
|
m_LanguageCode
Declaration
protected string m_LanguageCode
Field Value
Type |
Description |
System.String |
|
Properties
CountryCode
Returns a three-letter abbreviation for this locale's country.
If the country matches an ISO 3166-1 alpha-2 code,
the corresponding ISO 3166-1 alpha-3 uppercase code is returned.
If the locale doesn't specify a country, this will be the empty string.
Declaration
public string CountryCode { get; }
Property Value
Type |
Description |
System.String |
|
CurrencyCode
Gets the ISO 4217 currency code of this currency.
Declaration
public string CurrencyCode { get; }
Property Value
Type |
Description |
System.String |
|
CurrencySymbol
Gets the symbol of this currency for the specified locale.
For example, for the US Dollar, the symbol is "$" if the specified locale is the US,
while for other locales it may be "US$".
If no symbol can be determined, the ISO 4217 currency code is returned.
Declaration
public string CurrencySymbol { get; }
Property Value
Type |
Description |
System.String |
|
LanguageCode
Returns a three-letter abbreviation of this locale's language.
If the language matches an ISO 639-1 two-letter code,
the corresponding ISO 639-2/T three-letter lowercase code is returned.
The ISO 639-2 language codes can be found on-line,
see "Codes for the Representation of Names of Languages Part 2: Alpha-3 Code".
If the locale specifies a three-letter language, the language is returned as is.
If the locale does not specify a language the empty string is returned.
Declaration
public string LanguageCode { get; }
Property Value
Type |
Description |
System.String |
|
Methods
GetDefault()
Gets the current value of the default locale for this instance of the Java Virtual Machine.
The Java Virtual Machine sets the default locale during startup based on the host environment.
It is used by many locale-sensitive methods if no locale is explicitly specified.
Declaration
public static AN_Locale GetDefault()
Returns