public class IrregularGroupFormatter extends NumericGroupFormatter
adjustedPicture
Constructor and Description |
---|
IrregularGroupFormatter(IntSet groupingPositions,
java.util.List<java.lang.Integer> sep,
UnicodeString adjustedPicture)
Create a formatter for numbers where the grouping separators occur at irregular positions
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(FastStringBuffer value)
Reformat a number to add grouping separators
|
java.lang.String |
getSeparator()
Get the grouping separator to be used.
|
getAdjustedPicture
public IrregularGroupFormatter(IntSet groupingPositions, java.util.List<java.lang.Integer> sep, UnicodeString adjustedPicture)
groupingPositions
- the positions where the separators are to be insertedsep
- array holding the separators to be inserted, as Unicode codepoints, in order starting
with the right-mostadjustedPicture
- public java.lang.String format(FastStringBuffer value)
NumericGroupFormatter
format
in class NumericGroupFormatter
value
- a buffer holding the number to be reformattedpublic java.lang.String getSeparator()
getSeparator
in class NumericGroupFormatter
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.