PluralRules.ForLocale 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
ForLocale(ULocale) |
Provides access to the predefined cardinal-number |
ForLocale(Locale) |
Provides access to the predefined cardinal-number |
ForLocale(ULocale, PluralRules+PluralType) | |
ForLocale(Locale, PluralRules+PluralType) |
ForLocale(ULocale)
Provides access to the predefined cardinal-number PluralRules
for a given
locale.
[Android.Runtime.Register("forLocale", "(Landroid/icu/util/ULocale;)Landroid/icu/text/PluralRules;", "", ApiSince=24)]
public static Android.Icu.Text.PluralRules? ForLocale (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("forLocale", "(Landroid/icu/util/ULocale;)Landroid/icu/text/PluralRules;", "", ApiSince=24)>]
static member ForLocale : Android.Icu.Util.ULocale -> Android.Icu.Text.PluralRules
Parameters
- locale
- ULocale
The locale for which a PluralRules
object is
returned.
Returns
The predefined PluralRules
object for this locale.
If there's no predefined rules for this locale, the rules
for the closest parent in the locale hierarchy that has one will
be returned. The final fallback always returns the default
rules.
- Attributes
Remarks
Provides access to the predefined cardinal-number PluralRules
for a given locale. Same as forLocale(locale, PluralType.CARDINAL).
ICU defines plural rules for many locales based on CLDR Language Plural Rules. For these predefined rules, see CLDR page at https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
Java documentation for android.icu.text.PluralRules.forLocale(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
ForLocale(Locale)
Provides access to the predefined cardinal-number PluralRules
for a given
java.util.Locale
.
[Android.Runtime.Register("forLocale", "(Ljava/util/Locale;)Landroid/icu/text/PluralRules;", "", ApiSince=24)]
public static Android.Icu.Text.PluralRules? ForLocale (Java.Util.Locale? locale);
[<Android.Runtime.Register("forLocale", "(Ljava/util/Locale;)Landroid/icu/text/PluralRules;", "", ApiSince=24)>]
static member ForLocale : Java.Util.Locale -> Android.Icu.Text.PluralRules
Parameters
- locale
- Locale
The locale for which a PluralRules
object is
returned.
Returns
The predefined PluralRules
object for this locale.
If there's no predefined rules for this locale, the rules
for the closest parent in the locale hierarchy that has one will
be returned. The final fallback always returns the default
rules.
- Attributes
Remarks
Provides access to the predefined cardinal-number PluralRules
for a given java.util.Locale
. Same as forLocale(locale, PluralType.CARDINAL).
ICU defines plural rules for many locales based on CLDR Language Plural Rules. For these predefined rules, see CLDR page at https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/language_plural_rules.html
Java documentation for android.icu.text.PluralRules.forLocale(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
ForLocale(ULocale, PluralRules+PluralType)
[Android.Runtime.Register("forLocale", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules$PluralType;)Landroid/icu/text/PluralRules;", "", ApiSince=24)]
public static Android.Icu.Text.PluralRules? ForLocale (Android.Icu.Util.ULocale? locale, Android.Icu.Text.PluralRules.PluralType? type);
[<Android.Runtime.Register("forLocale", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules$PluralType;)Landroid/icu/text/PluralRules;", "", ApiSince=24)>]
static member ForLocale : Android.Icu.Util.ULocale * Android.Icu.Text.PluralRules.PluralType -> Android.Icu.Text.PluralRules
Parameters
- locale
- ULocale
Returns
- Attributes
Remarks
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
ForLocale(Locale, PluralRules+PluralType)
[Android.Runtime.Register("forLocale", "(Ljava/util/Locale;Landroid/icu/text/PluralRules$PluralType;)Landroid/icu/text/PluralRules;", "", ApiSince=24)]
public static Android.Icu.Text.PluralRules? ForLocale (Java.Util.Locale? locale, Android.Icu.Text.PluralRules.PluralType? type);
[<Android.Runtime.Register("forLocale", "(Ljava/util/Locale;Landroid/icu/text/PluralRules$PluralType;)Landroid/icu/text/PluralRules;", "", ApiSince=24)>]
static member ForLocale : Java.Util.Locale * Android.Icu.Text.PluralRules.PluralType -> Android.Icu.Text.PluralRules
Parameters
- locale
- Locale
Returns
- Attributes
Remarks
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.