Package | Description |
---|---|
com.ibm.icu.text |
Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping.
|
Modifier and Type | Field and Description |
---|---|
static PluralRules |
PluralRules.DEFAULT
The default rules that accept any number and return
KEYWORD_OTHER . |
Modifier and Type | Method and Description |
---|---|
static PluralRules |
PluralRules.createRules(String description)
Creates a PluralRules from a description if it is parsable,
otherwise returns null.
|
static PluralRules |
PluralRules.forLocale(Locale locale)
Provides access to the predefined cardinal-number
PluralRules for a given
Locale . |
static PluralRules |
PluralRules.forLocale(Locale locale,
PluralRules.PluralType type)
Provides access to the predefined
PluralRules for a given
Locale and the plural type. |
static PluralRules |
PluralRules.forLocale(ULocale locale)
Provides access to the predefined cardinal-number
PluralRules for a given
locale. |
PluralRules |
PluralRules.Factory.forLocale(ULocale locale)
Deprecated.
This API is ICU internal only.
|
static PluralRules |
PluralRules.forLocale(ULocale locale,
PluralRules.PluralType type)
Provides access to the predefined
PluralRules for a given
locale and the plural type. |
abstract PluralRules |
PluralRules.Factory.forLocale(ULocale locale,
PluralRules.PluralType type)
Deprecated.
This API is ICU internal only.
|
PluralRules |
CurrencyPluralInfo.getPluralRules()
Gets plural rules of this locale, used for currency plural format
|
static PluralRules |
PluralRules.newInternal(String description,
com.ibm.icu.impl.number.range.StandardPluralRanges ranges)
Deprecated.
This API is ICU internal only.
|
static PluralRules |
PluralRules.parseDescription(String description)
Parses a plural rules description and returns a PluralRules.
|
Modifier and Type | Method and Description |
---|---|
int |
PluralRules.compareTo(PluralRules other)
Deprecated.
internal
|
boolean |
PluralRules.equals(PluralRules rhs)
Returns true if rhs is equal to this.
|
Constructor and Description |
---|
PluralFormat(Locale locale,
PluralRules rules)
Creates a new cardinal-number
PluralFormat for a given set of rules. |
PluralFormat(PluralRules rules)
Creates a new cardinal-number
PluralFormat for a given set of rules. |
PluralFormat(PluralRules rules,
String pattern)
Creates a new cardinal-number
PluralFormat for a given set of rules and a
pattern. |
PluralFormat(ULocale ulocale,
PluralRules rules)
Creates a new cardinal-number
PluralFormat for a given set of rules. |
PluralFormat(ULocale ulocale,
PluralRules rules,
String pattern)
Creates a new cardinal-number
PluralFormat for a given set of rules, a
pattern and a locale. |
Copyright © 2016 Unicode, Inc. and others.