flavors.java.Formatter.number.localize Class
Java number localization algorithm.
Item Index
Methods
- decimalSeparator static
- digits static
- groupingSeparator static
- localize static
- localizeNumber static
- sign static
Methods
decimalSeparator
-
arg -
culture
Java number localization algorithm. If a decimal separator is present, a culture-specific decimal separator is substituted.
Parameters:
-
argArrayCharacter array representing the Number to be localized
-
cultureObjectCulture information
Returns:
digits
-
arg
Java number localization algorithm. Each digit character d in the string is replaced by a culture-specific digit computed relative to the current culture's zero digit z; that is d - '0' + z.
Parameters:
-
argArrayCharacter array representing the Number to be localized
Returns:
groupingSeparator
-
arg -
culture
Java number localization algorithm. If the ',' ('\u002c') flag is given, then the culture-specific grouping separator is inserted by scanning the integer part of the string from least significant to most significant digits and inserting a separator at intervals defined by the culture's grouping size.
Parameters:
-
argArrayCharacter array representing the Number to be localized
-
cultureObjectCulture information
localize
-
arg -
width -
culture
Java number localization algorithm. If the '0' flag is given, then the culture-specific zero digits are inserted after the sign character, if any, and before the first non-zero digit, until the length of the string is equal to the requested field width.
Parameters:
-
argArrayCharacter array representing the Number to be localized
-
widthNumberLength of the resulting string
-
cultureObjectCulture information
Returns:
localizeNumber
-
arg -
culture -
width -
options
Java localization algorithm for number strings.
Parameters:
-
argStringNumber string to be localized
-
cultureObjectCulture-specific information
-
widthNumberThe result's minimum width
-
optionsObjectLocalization options (Options of a parsed token)
Returns:
sign
-
arg -
opt
Java flavored number localization algorithm.
If the value is negative and the '(' flag is given, then a '(' is prepended and a ')' is appended.
If the value is negative and '(' flag is not given, then a '-' is prepended.
If the '+' flag is given and the value is positive or zero, then a '+' will be prepended.
If the ' ' flag is given and the value is positive or zero, then a ' ' will be prepended.
Parameters:
-
argArrayCharacter array representing the Number to be localized
-
optObjectSign options
