Search in sources :

Example 1 with PluralType

use of com.ibm.icu.text.PluralRules.PluralType in project es6draft by anba.

the class PluralRulesObject method createPluralRules.

private PluralRules createPluralRules() {
    ULocale locale = ULocale.forLanguageTag(this.locale);
    PluralType pluralType = "cardinal".equals(type) ? PluralType.CARDINAL : PluralType.ORDINAL;
    return PluralRules.forLocale(locale, pluralType);
}
Also used : ULocale(com.ibm.icu.util.ULocale) PluralType(com.ibm.icu.text.PluralRules.PluralType)

Aggregations

PluralType (com.ibm.icu.text.PluralRules.PluralType)1 ULocale (com.ibm.icu.util.ULocale)1