Freigeben über


Currency.GetName Method

Definition

Overloads

GetName(Locale, CurrencyNameStyle, String, Boolean[])

Returns the display name for the given currency in the given locale.

GetName(ULocale, CurrencyNameStyle, String, Boolean[])

Returns the display name for the given currency in the given locale.

GetName(ULocale, CurrencyNameStyle, Boolean[])

Returns the display name for the given currency in the given locale.

GetName(Locale, CurrencyNameStyle, Boolean[])

Returns the display name for the given currency in the given locale.

GetName(Locale, CurrencyNameStyle, String, Boolean[])

Returns the display name for the given currency in the given locale.

[Android.Runtime.Register("getName", "(Ljava/util/Locale;ILjava/lang/String;[Z)Ljava/lang/String;", "GetGetName_Ljava_util_Locale_ILjava_lang_String_arrayZHandler", ApiSince=24)]
public virtual string? GetName (Java.Util.Locale? locale, Android.Icu.Util.CurrencyNameStyle nameStyle, string? pluralCount, bool[]? isChoiceFormat);
[<Android.Runtime.Register("getName", "(Ljava/util/Locale;ILjava/lang/String;[Z)Ljava/lang/String;", "GetGetName_Ljava_util_Locale_ILjava_lang_String_arrayZHandler", ApiSince=24)>]
abstract member GetName : Java.Util.Locale * Android.Icu.Util.CurrencyNameStyle * string * bool[] -> string
override this.GetName : Java.Util.Locale * Android.Icu.Util.CurrencyNameStyle * string * bool[] -> string

Parameters

locale
Locale

locale in which to display currency

nameStyle
CurrencyNameStyle

selector for which kind of name to return

pluralCount
String

plural count string for this locale

isChoiceFormat
Boolean[]

isChoiceFormat[0] is always set to false, or isChoiceFormat can be null; display names are static strings; since ICU 4.4, ChoiceFormat patterns are no longer supported

Returns

display string for this currency. If the resource data contains no entry for this currency, then the ISO 4217 code is returned.

Attributes

Remarks

Returns the display name for the given currency in the given locale. This is a convenience overload of getName(ULocale, int, String, boolean[]);

Java documentation for android.icu.util.Currency.getName(java.util.Locale, int, java.lang.String, boolean[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetName(ULocale, CurrencyNameStyle, String, Boolean[])

Returns the display name for the given currency in the given locale.

[Android.Runtime.Register("getName", "(Landroid/icu/util/ULocale;ILjava/lang/String;[Z)Ljava/lang/String;", "GetGetName_Landroid_icu_util_ULocale_ILjava_lang_String_arrayZHandler", ApiSince=24)]
public virtual string? GetName (Android.Icu.Util.ULocale? locale, Android.Icu.Util.CurrencyNameStyle nameStyle, string? pluralCount, bool[]? isChoiceFormat);
[<Android.Runtime.Register("getName", "(Landroid/icu/util/ULocale;ILjava/lang/String;[Z)Ljava/lang/String;", "GetGetName_Landroid_icu_util_ULocale_ILjava_lang_String_arrayZHandler", ApiSince=24)>]
abstract member GetName : Android.Icu.Util.ULocale * Android.Icu.Util.CurrencyNameStyle * string * bool[] -> string
override this.GetName : Android.Icu.Util.ULocale * Android.Icu.Util.CurrencyNameStyle * string * bool[] -> string

Parameters

locale
ULocale

locale in which to display currency

nameStyle
CurrencyNameStyle

selector for which kind of name to return

pluralCount
String

plural count string for this locale

isChoiceFormat
Boolean[]

isChoiceFormat[0] is always set to false, or isChoiceFormat can be null; display names are static strings; since ICU 4.4, ChoiceFormat patterns are no longer supported

Returns

display string for this currency. If the resource data contains no entry for this currency, then the ISO 4217 code is returned.

Attributes

Remarks

Returns the display name for the given currency in the given locale. For example, the SYMBOL_NAME for the USD currency object in the en_US locale is "$". The PLURAL_LONG_NAME for the USD currency object when the currency amount is plural is "US dollars", such as in "3.00 US dollars"; while the PLURAL_LONG_NAME for the USD currency object when the currency amount is singular is "US dollar", such as in "1.00 US dollar".

Java documentation for android.icu.util.Currency.getName(android.icu.util.ULocale, int, java.lang.String, boolean[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetName(ULocale, CurrencyNameStyle, Boolean[])

Returns the display name for the given currency in the given locale.

[Android.Runtime.Register("getName", "(Landroid/icu/util/ULocale;I[Z)Ljava/lang/String;", "GetGetName_Landroid_icu_util_ULocale_IarrayZHandler", ApiSince=24)]
public virtual string? GetName (Android.Icu.Util.ULocale? locale, Android.Icu.Util.CurrencyNameStyle nameStyle, bool[]? isChoiceFormat);
[<Android.Runtime.Register("getName", "(Landroid/icu/util/ULocale;I[Z)Ljava/lang/String;", "GetGetName_Landroid_icu_util_ULocale_IarrayZHandler", ApiSince=24)>]
abstract member GetName : Android.Icu.Util.ULocale * Android.Icu.Util.CurrencyNameStyle * bool[] -> string
override this.GetName : Android.Icu.Util.ULocale * Android.Icu.Util.CurrencyNameStyle * bool[] -> string

Parameters

locale
ULocale

locale in which to display currency

nameStyle
CurrencyNameStyle

selector for which kind of name to return. The nameStyle should be SYMBOL_NAME, NARROW_SYMBOL_NAME, or LONG_NAME. Otherwise, throw IllegalArgumentException.

isChoiceFormat
Boolean[]

isChoiceFormat[0] is always set to false, or isChoiceFormat can be null; display names are static strings; since ICU 4.4, ChoiceFormat patterns are no longer supported

Returns

display string for this currency. If the resource data contains no entry for this currency, then the ISO 4217 code is returned. <p>

Attributes

Remarks

Returns the display name for the given currency in the given locale. For example, the display name for the USD currency object in the en_US locale is "$".

Java documentation for android.icu.util.Currency.getName(android.icu.util.ULocale, int, boolean[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetName(Locale, CurrencyNameStyle, Boolean[])

Returns the display name for the given currency in the given locale.

[Android.Runtime.Register("getName", "(Ljava/util/Locale;I[Z)Ljava/lang/String;", "GetGetName_Ljava_util_Locale_IarrayZHandler", ApiSince=24)]
public virtual string? GetName (Java.Util.Locale? locale, Android.Icu.Util.CurrencyNameStyle nameStyle, bool[]? isChoiceFormat);
[<Android.Runtime.Register("getName", "(Ljava/util/Locale;I[Z)Ljava/lang/String;", "GetGetName_Ljava_util_Locale_IarrayZHandler", ApiSince=24)>]
abstract member GetName : Java.Util.Locale * Android.Icu.Util.CurrencyNameStyle * bool[] -> string
override this.GetName : Java.Util.Locale * Android.Icu.Util.CurrencyNameStyle * bool[] -> string

Parameters

locale
Locale

locale in which to display currency

nameStyle
CurrencyNameStyle

selector for which kind of name to return. The nameStyle should be SYMBOL_NAME, NARROW_SYMBOL_NAME, or LONG_NAME. Otherwise, throw IllegalArgumentException.

isChoiceFormat
Boolean[]

isChoiceFormat[0] is always set to false, or isChoiceFormat can be null; display names are static strings; since ICU 4.4, ChoiceFormat patterns are no longer supported

Returns

display string for this currency. If the resource data contains no entry for this currency, then the ISO 4217 code is returned.

Attributes

Remarks

Returns the display name for the given currency in the given locale. This is a convenient method for getName(ULocale, int, boolean[]);

Java documentation for android.icu.util.Currency.getName(java.util.Locale, int, boolean[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to