Collator.GetInstance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetInstance(ULocale) |
<strong>[icu]</strong> Returns the Collator for the desired locale. |
GetInstance(Locale) |
Returns the Collator for the desired locale. |
GetInstance(ULocale)
<strong>[icu]</strong> Returns the Collator for the desired locale.
[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/Collator;", "", ApiSince=24)]
public static Android.Icu.Text.Collator? GetInstance (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/Collator;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.Collator
Parameters
- locale
- ULocale
the desired locale.
Returns
Collator for the desired locale if it is created successfully. Otherwise if there is no Collator associated with the current locale, the root collator will be returned.
- Attributes
Remarks
<strong>[icu]</strong> Returns the Collator for the desired locale.
For some languages, multiple collation types are available; for example, "de
Java documentation for android.icu.text.Collator.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 Collator for the desired locale.
[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/Collator;", "", ApiSince=24)]
public static Android.Icu.Text.Collator? GetInstance (Java.Util.Locale? locale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/Collator;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Text.Collator
Parameters
- locale
- Locale
the desired locale.
Returns
Collator for the desired locale if it is created successfully. Otherwise if there is no Collator associated with the current locale, the root collator will be returned.
- Attributes
Remarks
Returns the Collator for the desired locale.
For some languages, multiple collation types are available; for example, "de-u-co-phonebk". Starting with ICU 54, collation attributes can be specified via locale keywords as well, in the old locale extension syntax ("el
Java documentation for android.icu.text.Collator.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.