| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | chineseNumber(long n, Utils.
Interesting features of chinese numbers: - Each digit is followed by a unit symbol (10's, 100's, 1000's). |
| public static final Locale |
| Utils | back to summary |
|---|---|
| public Utils() | |
| chineseNumber | back to summary |
|---|---|
| public static String chineseNumber(long n, Utils. Interesting features of chinese numbers: - Each digit is followed by a unit symbol (10's, 100's, 1000's). - Units repeat in levels of 10,000, there are symbols for each level too (except 1's). - The digit 2 has a special form before the 10 symbol and at the end of the number. - If the first digit in the number is 1 and its unit is 10, the 1 is omitted. - Sequences of 0 digits and their units are replaced by a single 0 and no unit. - If there are two such sequences of 0 digits in a level (1000's and 10's), the 1000's 0 is also omitted. - The 1000's 0 is also omitted in alternating levels, such that it is omitted in the rightmost level with a 10's 0, or if none, in the rightmost level. - Level symbols are omitted if all of their units are omitted | |
| localeFromString | back to summary |
|---|---|
| public static final Locale localeFromString(String s) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Utils. | |
| pack-priv final char[] | |
| pack-priv final boolean | |
| public static final Utils. | |
| pack-priv final char[] | |
| pack-priv final char | |
| public static final Utils. | |
| public static final Utils. | |
| pack-priv final char[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| DEBUG | back to summary |
|---|---|
| public static final Utils. | |
| digits | back to summary |
|---|---|
| pack-priv final char[] digits | |
| ko | back to summary |
|---|---|
| pack-priv final boolean ko | |
| KOREAN | back to summary |
|---|---|
| public static final Utils. | |
| levels | back to summary |
|---|---|
| pack-priv final char[] levels | |
| liang | back to summary |
|---|---|
| pack-priv final char liang | |
| SIMPLIFIED | back to summary |
|---|---|
| public static final Utils. | |
| TRADITIONAL | back to summary |
|---|---|
| public static final Utils. | |
| units | back to summary |
|---|---|
| pack-priv final char[] units | |
| ChineseDigits | back to summary |
|---|---|
| pack-priv ChineseDigits(String digits, String units, String levels, char liang, boolean ko) | |