Package com.ibm.icu.dev.demo.number
Class CurrencyDemo
java.lang.Object
com.ibm.icu.dev.demo.number.CurrencyDemo
Demonstration code to illustrate how to obtain ICU 2.6-like currency
behavior using pre-ICU 2.6 ICU4J.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static NumberFormat
getCurrencyFormat
(Currency currency, Locale displayLocale, boolean ICU26) static void
(package private) static void
testFormatHack
(boolean quiet) Walk through all locales and compare the output of the ICU26 currency format with the "hacked" currency format.
-
Field Details
-
hackData
-
-
Constructor Details
-
CurrencyDemo
public CurrencyDemo()
-
-
Method Details
-
main
-
getCurrencyFormat
-
testFormatHack
static void testFormatHack(boolean quiet) Walk through all locales and compare the output of the ICU26 currency format with the "hacked" currency format.- Parameters:
quiet
- if true, only display discrepancies. Otherwise, display all results.
-