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.
|
com.ibm.icu.util |
International calendars and other utility classes.
|
Modifier and Type | Class and Description |
---|---|
class |
CompactDecimalFormat
The CompactDecimalFormat produces abbreviated numbers, suitable for display in environments will limited real estate.
|
class |
DecimalFormat
[icu enhancement] ICU's replacement for
java.text.DecimalFormat . |
class |
RuleBasedNumberFormat
A class that formats numbers according to a set of rules.
|
Modifier and Type | Field and Description |
---|---|
protected NumberFormat |
DateFormat.numberFormat
The number formatter that
DateFormat uses to format numbers
in dates and times. |
Modifier and Type | Method and Description |
---|---|
NumberFormat |
NumberFormat.NumberFormatFactory.createFormat(Locale loc,
int formatType)
Returns a number format of the appropriate type.
|
NumberFormat |
NumberFormat.NumberFormatFactory.createFormat(ULocale loc,
int formatType)
Returns a number format of the appropriate type.
|
static NumberFormat |
NumberFormat.getCurrencyInstance()
Returns a currency format for the current default
FORMAT locale. |
static NumberFormat |
NumberFormat.getCurrencyInstance(Locale inLocale)
Returns a currency format for the specified locale.
|
static NumberFormat |
NumberFormat.getCurrencyInstance(ULocale inLocale)
[icu] Returns a currency format for the specified locale.
|
static NumberFormat |
NumberFormat.getInstance()
Returns the default number format for the current default
FORMAT locale. |
static NumberFormat |
NumberFormat.getInstance(int style)
[icu] Returns a specific style number format for default
FORMAT locale. |
static NumberFormat |
NumberFormat.getInstance(Locale inLocale)
Returns the default number format for the specified locale.
|
static NumberFormat |
NumberFormat.getInstance(Locale inLocale,
int style)
[icu] Returns a specific style number format for a specific locale.
|
static NumberFormat |
NumberFormat.getInstance(ULocale inLocale)
[icu] Returns the default number format for the specified locale.
|
static NumberFormat |
NumberFormat.getInstance(ULocale desiredLocale,
int choice)
Returns a specific style number format for a specific locale.
|
static NumberFormat |
NumberFormat.getIntegerInstance()
Returns an integer number format for the current default
FORMAT locale. |
static NumberFormat |
NumberFormat.getIntegerInstance(Locale inLocale)
Returns an integer number format for the specified locale.
|
static NumberFormat |
NumberFormat.getIntegerInstance(ULocale inLocale)
[icu] Returns an integer number format for the specified locale.
|
NumberFormat |
DateFormat.getNumberFormat()
Returns the number formatter which this date/time formatter uses to
format and parse a time.
|
protected NumberFormat |
SimpleDateFormat.getNumberFormat(char ch)
Deprecated.
This API is ICU internal only.
|
static NumberFormat |
NumberFormat.getNumberInstance()
Returns a general-purpose number format for the current default
FORMAT locale. |
static NumberFormat |
NumberFormat.getNumberInstance(Locale inLocale)
Returns a general-purpose number format for the specified locale.
|
static NumberFormat |
NumberFormat.getNumberInstance(ULocale inLocale)
[icu] Returns a general-purpose number format for the specified locale.
|
static NumberFormat |
NumberFormat.getPercentInstance()
Returns a percentage format for the current default
FORMAT locale. |
static NumberFormat |
NumberFormat.getPercentInstance(Locale inLocale)
Returns a percentage format for the specified locale.
|
static NumberFormat |
NumberFormat.getPercentInstance(ULocale inLocale)
[icu] Returns a percentage format for the specified locale.
|
static NumberFormat |
NumberFormat.getScientificInstance()
[icu] Returns a scientific format for the current default
FORMAT locale. |
static NumberFormat |
NumberFormat.getScientificInstance(Locale inLocale)
[icu] Returns a scientific format for the specified locale.
|
static NumberFormat |
NumberFormat.getScientificInstance(ULocale inLocale)
[icu] Returns a scientific format for the specified locale.
|
Modifier and Type | Method and Description |
---|---|
TimeUnitFormat |
TimeUnitFormat.setNumberFormat(NumberFormat format)
Set the format used for formatting or parsing.
|
void |
PluralFormat.setNumberFormat(NumberFormat format)
Sets the number format used by this formatter.
|
void |
SimpleDateFormat.setNumberFormat(NumberFormat newNumberFormat)
Overrides superclass method
|
void |
DateFormat.setNumberFormat(NumberFormat newNumberFormat)
Sets the number formatter.
|
protected void |
SimpleDateFormat.zeroPaddingNumber(NumberFormat nf,
StringBuffer buf,
int value,
int minDigits,
int maxDigits)
Deprecated.
This API is ICU internal only.
|
Modifier and Type | Method and Description |
---|---|
NumberFormat |
GlobalizationPreferences.getNumberFormat(int style)
Gets a number format according to the current settings.
|
protected NumberFormat |
GlobalizationPreferences.guessNumberFormat(int style)
This function can be overridden by subclasses to use different heuristics.
|
Modifier and Type | Method and Description |
---|---|
GlobalizationPreferences |
GlobalizationPreferences.setNumberFormat(int style,
NumberFormat format)
Sets a number format explicitly.
|
Copyright (c) 2013 IBM Corporation and others.