public class NumberFormatter
extends java.lang.Object
Constructor and Description |
---|
NumberFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.CharSequence |
format(java.util.List numbers,
int groupSize,
java.lang.String groupSeparator,
java.lang.String letterValue,
java.lang.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(java.lang.String format)
Tokenize the format pattern.
|
public void prepare(java.lang.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 java.lang.CharSequence format(java.util.List numbers, int groupSize, java.lang.String groupSeparator, java.lang.String letterValue, java.lang.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-2018 Saxonica Limited. All rights reserved.