public class EnglishAlphabetNumbering extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
ALPHABET_LENGTH |
protected static char[] |
ALPHABET_LOWERCASE |
protected static char[] |
ALPHABET_UPPERCASE |
Constructor and Description |
---|
EnglishAlphabetNumbering() |
Modifier and Type | Method and Description |
---|---|
static String |
toLatinAlphabetNumber(int number, boolean upperCase)
Converts the given number to its English alphabet string representation.
|
static String |
toLatinAlphabetNumberLowerCase(int number)
Converts the given number to its English alphabet lowercase string representation.
|
static String |
toLatinAlphabetNumberUpperCase(int number)
Converts the given number to its English alphabet uppercase string representation.
|
protected static final char[] ALPHABET_LOWERCASE
protected static final char[] ALPHABET_UPPERCASE
protected static final int ALPHABET_LENGTH
public static String toLatinAlphabetNumberLowerCase(int number)
number
- the number greater than zero to be converted
public static String toLatinAlphabetNumberUpperCase(int number)
number
- the number greater than zero to be converted
public static String toLatinAlphabetNumber(int number, boolean upperCase)
upperCase
set to false, 1 will be converted to "a", 2 to "b", ..., 27 to "aa", and so on.
number
- the number greater than zero to be converted
upperCase
- whether to use uppercase or lowercase alphabet
Copyright © 1998–2021 iText Group NV. All rights reserved.