public class IrregularGroupFormatter extends NumericGroupFormatter
adjustedPicture
Constructor and Description |
---|
IrregularGroupFormatter(IntSet groupingPositions,
List<Integer> sep,
UnicodeString adjustedPicture)
Create a formatter for numbers where the grouping separators occur at irregular positions
|
Modifier and Type | Method and Description |
---|---|
String |
format(FastStringBuffer value)
Reformat a number to add grouping separators
|
String |
getSeparator()
Get the grouping separator to be used.
|
getAdjustedPicture
public IrregularGroupFormatter(IntSet groupingPositions, List<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 String format(FastStringBuffer value)
NumericGroupFormatter
format
in class NumericGroupFormatter
value
- a buffer holding the number to be reformattedpublic String getSeparator()
getSeparator
in class NumericGroupFormatter
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.