public class RegularGroupFormatter extends NumericGroupFormatter
adjustedPicture
Constructor and Description |
---|
RegularGroupFormatter(int grpSize,
java.lang.String grpSep,
UnicodeString adjustedPicture)
Create a RegularGroupFormatter
|
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 RegularGroupFormatter(int grpSize, java.lang.String grpSep, UnicodeString adjustedPicture)
grpSize
- the grouping size. If zero, no grouping separators are insertedgrpSep
- the grouping separator (normally but not necessarily a single character)adjustedPicture
- The picture, adjusted to conform to the rules of the xsl:number function,
which means the picture supplied to format-integer minus any modifiers, and minus grouping separators
and optional-digit signspublic 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.