Package | Description |
---|---|
com.ibm.icu.number |
Library for localized number formatting introduced in ICU 60; for usage, see com.ibm.icu.number.NumberFormatter.
|
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 | Method and Description |
---|---|
static UnlocalizedNumberFormatter |
NumberFormatter.fromDecimalFormat(com.ibm.icu.impl.number.DecimalFormatProperties properties,
DecimalFormatSymbols symbols,
com.ibm.icu.impl.number.DecimalFormatProperties exportedProperties)
Deprecated.
ICU 60 This API is ICU internal only.
|
T |
NumberFormatterSettings.symbols(DecimalFormatSymbols symbols)
Specifies the symbols (decimal separator, grouping separator, percent sign, numerals, etc.) to use
when rendering numbers.
|
Modifier and Type | Method and Description |
---|---|
static DecimalFormatSymbols |
DecimalFormatSymbols.forNumberingSystem(Locale locale,
NumberingSystem ns)
[icu] Returns a DecimalFormatSymbols instance for the given locale with digits and symbols
corresponding to the given
NumberingSystem . |
static DecimalFormatSymbols |
DecimalFormatSymbols.forNumberingSystem(ULocale locale,
NumberingSystem ns)
[icu] Returns a DecimalFormatSymbols instance for the given locale with digits and symbols
corresponding to the given
NumberingSystem . |
DecimalFormatSymbols |
DecimalFormat.getDecimalFormatSymbols()
Returns a copy of the decimal format symbols used by this formatter.
|
static DecimalFormatSymbols |
DecimalFormatSymbols.getInstance()
Returns a DecimalFormatSymbols instance for the default locale.
|
static DecimalFormatSymbols |
DecimalFormatSymbols.getInstance(Locale locale)
Returns a DecimalFormatSymbols instance for the given locale.
|
static DecimalFormatSymbols |
DecimalFormatSymbols.getInstance(ULocale locale)
Returns a DecimalFormatSymbols instance for the given locale.
|
Modifier and Type | Method and Description |
---|---|
void |
RuleBasedNumberFormat.setDecimalFormatSymbols(DecimalFormatSymbols newSymbols)
Sets the decimal format symbols used by this formatter.
|
void |
DecimalFormat.setDecimalFormatSymbols(DecimalFormatSymbols newSymbols)
Sets the decimal format symbols used by this formatter.
|
Constructor and Description |
---|
DecimalFormat(String pattern,
DecimalFormatSymbols symbols)
Creates a DecimalFormat based on the given pattern and symbols.
|
DecimalFormat(String pattern,
DecimalFormatSymbols symbols,
CurrencyPluralInfo infoInput,
int style)
Creates a DecimalFormat based on the given pattern and symbols, with additional control over
the behavior of currency.
|
Copyright © 2016 Unicode, Inc. and others.