public class NumberFormatter extends Object implements Serializable
Constructor and Description |
---|
NumberFormatter() |
Modifier and Type | Method and Description |
---|---|
CharSequence |
format(List numbers,
int groupSize,
String groupSeparator,
String letterValue,
String ordinal,
Numberer numberer)
Format a list of numbers.
|
static boolean |
isLetterOrDigit(int c)
Determine whether a (possibly non-BMP) character is a letter or digit.
|
void |
prepare(String format)
Tokenize the format pattern.
|
public void prepare(String format)
format
- the format specification. Contains one of the following values:public static boolean isLetterOrDigit(int c)
c
- the codepoint of the character to be testedpublic CharSequence format(List numbers, int groupSize, String groupSeparator, String letterValue, String ordinal, Numberer numberer)
numbers
- the numbers to be formatted (a sequence of integer values; it may also contain
preformatted strings as part of the error recovery fallback)Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.