Language

NumberingSystem.GetInstance Method

Definition

Overloads

Name Description
GetInstance(ULocale)

Returns the default numbering system for the specified ULocale.

GetInstance(Locale)

Returns the default numbering system for the specified locale.

GetInstance(Int32, Boolean, String)

Factory method for creating a numbering system.

GetInstance(ULocale)

Returns the default numbering system for the specified ULocale.

[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberingSystem;", "", ApiSince=24)]
public static Android.Icu.Text.NumberingSystem? GetInstance(Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberingSystem;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.NumberingSystem

Parameters

locale
ULocale

The ICU locale whose numbering-system preference and locale data are used.

Returns

The numbering system selected for the supplied locale, including its numbering-system keyword and locale fallback.

Attributes

Remarks

Returns the default numbering system for the specified ULocale.

Java documentation for android.icu.text.NumberingSystem.getInstance(android.icu.util.ULocale).

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

GetInstance(Locale)

Returns the default numbering system for the specified locale.

[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberingSystem;", "", ApiSince=24)]
public static Android.Icu.Text.NumberingSystem? GetInstance(Java.Util.Locale? inLocale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberingSystem;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Text.NumberingSystem

Parameters

inLocale
Locale

The Java locale converted to an ICU locale to select its numbering system.

Returns

The numbering system selected from the ICU equivalent of inLocale.

Attributes

Remarks

Returns the default numbering system for the specified locale.

Java documentation for android.icu.text.NumberingSystem.getInstance(java.util.Locale).

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

GetInstance(Int32, Boolean, String)

Factory method for creating a numbering system.

[Android.Runtime.Register("getInstance", "(IZLjava/lang/String;)Landroid/icu/text/NumberingSystem;", "", ApiSince=24)]
public static Android.Icu.Text.NumberingSystem? GetInstance(int radix_in, bool isAlgorithmic_in, string? desc_in);
[<Android.Runtime.Register("getInstance", "(IZLjava/lang/String;)Landroid/icu/text/NumberingSystem;", "", ApiSince=24)>]
static member GetInstance : int * bool * string -> Android.Icu.Text.NumberingSystem

Parameters

radix_in
Int32

The radix for this numbering system. ICU currently supports only numbering systems whose radix is 10.

isAlgorithmic_in
Boolean

Specifies whether the numbering system is algorithmic (true) or numeric (false).

desc_in
String

String used to describe the characteristics of the numbering system. For numeric systems, this string contains the digits used by the numbering system, in order, starting from zero. For algorithmic numbering systems, the string contains the name of the RBNF ruleset in the locale's NumberingSystemRules section that will be used to format numbers using this numbering system.

Returns

A new numbering system with the supplied radix, algorithm flag, and description, and no predefined system name.

Attributes

Remarks

Factory method for creating a numbering system.

Java documentation for android.icu.text.NumberingSystem.getInstance(int, boolean, java.lang.String).

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