create
Create the PluralRule for a given language and (optionally) region.
Note that while the language must match, the region is optional. Unspecified or invalid regions will match the language type. Empty String values are permitted; null values are not.
Return
PluralRule for given language and PluralRuleType. null if unmatched language or no PluralType for the given language.
Parameters
BCP 47 language code (lower case), "root", or empty String ""
two-letter ISO 3166 region normalized to upper case, or empty String ""
PluralRuleType (ORDINAL or CARDINAL)
Create the PluralRule for a given Locale.
Return
PluralRule for given language and PluralRuleType. null if unmatched language or no PluralType for the given language.
Parameters
Locale to match language and (possibly) country. Null not permitted.
PluralRuleType (ORDINAL or CARDINAL). Null not permitted.