Top Inners Constructors Methods
com.ibm.icu.impl.duration.impl

public Class Utils

extends Object
Class Inheritance
Imports
java.util.Locale

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
chineseNumber(long n, Utils.ChineseDigits zh)

Interesting features of chinese numbers: - Each digit is followed by a unit symbol (10's, 100's, 1000's).

public static final Locale
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilsback to summary
public Utils()

Method Detail

chineseNumberback to summary
public static String chineseNumber(long n, Utils.ChineseDigits zh)

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

localeFromStringback to summary
public static final Locale localeFromString(String s)
com.ibm.icu.impl.duration.impl back to summary

public Class Utils.ChineseDigits

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Utils.ChineseDigits
pack-priv final char[]
pack-priv final boolean
public static final Utils.ChineseDigits
pack-priv final char[]
pack-priv final char
public static final Utils.ChineseDigits
public static final Utils.ChineseDigits
pack-priv final char[]

Constructor Summary

AccessConstructor and Description
pack-priv
ChineseDigits(String digits, String units, String levels, char liang, boolean ko)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
public static final Utils.ChineseDigits DEBUG
digitsback to summary
pack-priv final char[] digits
koback to summary
pack-priv final boolean ko
KOREANback to summary
public static final Utils.ChineseDigits KOREAN
levelsback to summary
pack-priv final char[] levels
liangback to summary
pack-priv final char liang
SIMPLIFIEDback to summary
public static final Utils.ChineseDigits SIMPLIFIED
TRADITIONALback to summary
public static final Utils.ChineseDigits TRADITIONAL
unitsback to summary
pack-priv final char[] units

Constructor Detail

ChineseDigitsback to summary
pack-priv ChineseDigits(String digits, String units, String levels, char liang, boolean ko)