OLD | NEW |
1 // © 2016 and later: Unicode, Inc. and others. | 1 // © 2016 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html | 2 // License & terms of use: http://www.unicode.org/copyright.html |
3 /******************************************************************** | 3 /******************************************************************** |
4 * COPYRIGHT: | 4 * COPYRIGHT: |
5 * Copyright (c) 1997-2016, International Business Machines Corporation and | 5 * Copyright (c) 1997-2016, International Business Machines Corporation and |
6 * others. All Rights Reserved. | 6 * others. All Rights Reserved. |
7 ********************************************************************/ | 7 ********************************************************************/ |
8 /* Modification History: | 8 /* Modification History: |
9 * Date Name Description | 9 * Date Name Description |
10 * 07/15/99 helena Ported to HPUX 10/11 CC. | 10 * 07/15/99 helena Ported to HPUX 10/11 CC. |
(...skipping 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4213 {"hr_HR", "1", "USD", "1,00\\u00a0USD", "1,00\\u00a0USD", "1,00 ameri\\u
010Dkih dolara"}, | 4213 {"hr_HR", "1", "USD", "1,00\\u00a0USD", "1,00\\u00a0USD", "1,00 ameri\\u
010Dkih dolara"}, |
4214 {"id_ID", "1", "USD", "US$\\u00A01,00", "USD\\u00A01,00", "1,00 Dolar Am
erika Serikat"}, | 4214 {"id_ID", "1", "USD", "US$\\u00A01,00", "USD\\u00A01,00", "1,00 Dolar Am
erika Serikat"}, |
4215 {"it_IT", "1", "USD", "1,00\\u00a0USD", "1,00\\u00a0USD", "1,00 dollari
statunitensi"}, | 4215 {"it_IT", "1", "USD", "1,00\\u00a0USD", "1,00\\u00a0USD", "1,00 dollari
statunitensi"}, |
4216 {"ko_KR", "1", "USD", "US$\\u00A01.00", "USD\\u00A01.00", "1.00 \\ubbf8\
\uad6d \\ub2ec\\ub7ec"}, | 4216 {"ko_KR", "1", "USD", "US$\\u00A01.00", "USD\\u00A01.00", "1.00 \\ubbf8\
\uad6d \\ub2ec\\ub7ec"}, |
4217 {"ja_JP", "1", "USD", "$1.00", "USD\\u00A01.00", "1.00\\u00A0\\u7c73\\u3
0c9\\u30eb"}, | 4217 {"ja_JP", "1", "USD", "$1.00", "USD\\u00A01.00", "1.00\\u00A0\\u7c73\\u3
0c9\\u30eb"}, |
4218 {"zh_CN", "1", "CNY", "\\uFFE51.00", "CNY\\u00A001.00", "1.00\\u00A0\\u4
EBA\\u6C11\\u5E01"}, | 4218 {"zh_CN", "1", "CNY", "\\uFFE51.00", "CNY\\u00A001.00", "1.00\\u00A0\\u4
EBA\\u6C11\\u5E01"}, |
4219 {"zh_TW", "1", "CNY", "CN\\u00A51.00", "CNY\\u00A01.00", "1.00 \\u4eba\\
u6c11\\u5e63"}, | 4219 {"zh_TW", "1", "CNY", "CN\\u00A51.00", "CNY\\u00A01.00", "1.00 \\u4eba\\
u6c11\\u5e63"}, |
4220 {"zh_Hant", "1", "CNY", "CN\\u00A51.00", "CNY\\u00A01.00", "1.00 \\u4eba
\\u6c11\\u5e63"}, | 4220 {"zh_Hant", "1", "CNY", "CN\\u00A51.00", "CNY\\u00A01.00", "1.00 \\u4eba
\\u6c11\\u5e63"}, |
4221 {"zh_Hant", "1", "JPY", "\\u00A51.00", "JPY\\u00A01.00", "1 \\u65E5\\u57
13"}, | 4221 {"zh_Hant", "1", "JPY", "\\u00A51.00", "JPY\\u00A01.00", "1 \\u65E5\\u57
13"}, |
4222 {"ja_JP", "1", "JPY", "\\uFFE51.00", "JPY\\u00A01.00", "1\\u00A0\\u5186"
}, | 4222 {"ja_JP", "1", "JPY", "\\uFFE51.00", "JPY\\u00A01.00", "1\\u00A0\\u5186"
}, |
4223 {"ja_JP", "1", "JPY", "\\u00A51.00", "JPY\\u00A01.00", "1\\u00A0\\u5186"
}, | 4223 // ICU 62 requires #parseCurrency() to recognize variants when parsing |
| 4224 // {"ja_JP", "1", "JPY", "\\u00A51.00", "JPY\\u00A01.00", "1\\u00A0\\u51
86"}, |
4224 {"ru_RU", "1", "RUB", "1,00\\u00A0\\u00A0\\u20BD", "1,00\\u00A0\\u00A0RU
B", "1,00 \\u0440\\u043E\\u0441\\u0441\\u0438\\u0439\\u0441\\u043A\\u043E\\u0433
\\u043E \\u0440\\u0443\\u0431\\u043B\\u044F"} | 4225 {"ru_RU", "1", "RUB", "1,00\\u00A0\\u00A0\\u20BD", "1,00\\u00A0\\u00A0RU
B", "1,00 \\u0440\\u043E\\u0441\\u0441\\u0438\\u0439\\u0441\\u043A\\u043E\\u0433
\\u043E \\u0440\\u0443\\u0431\\u043B\\u044F"} |
4225 }; | 4226 }; |
4226 static const UNumberFormatStyle currencyStyles[] = { | 4227 static const UNumberFormatStyle currencyStyles[] = { |
4227 UNUM_CURRENCY, | 4228 UNUM_CURRENCY, |
4228 UNUM_CURRENCY_ISO, | 4229 UNUM_CURRENCY_ISO, |
4229 UNUM_CURRENCY_PLURAL | 4230 UNUM_CURRENCY_PLURAL |
4230 }; | 4231 }; |
4231 static const char* currencyStyleNames[] = { | 4232 static const char* currencyStyleNames[] = { |
4232 "UNUM_CURRENCY", | 4233 "UNUM_CURRENCY", |
4233 "UNUM_CURRENCY_ISO", | 4234 "UNUM_CURRENCY_ISO", |
(...skipping 5323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9557 void NumberFormatTest::Test11020_RoundingInScientificNotation() { | 9558 void NumberFormatTest::Test11020_RoundingInScientificNotation() { |
9558 UErrorCode status = U_ZERO_ERROR; | 9559 UErrorCode status = U_ZERO_ERROR; |
9559 DecimalFormatSymbols sym(Locale::getFrance(), status); | 9560 DecimalFormatSymbols sym(Locale::getFrance(), status); |
9560 DecimalFormat fmt(u"0.05E0", sym, status); | 9561 DecimalFormat fmt(u"0.05E0", sym, status); |
9561 assertSuccess("", status); | 9562 assertSuccess("", status); |
9562 UnicodeString result; | 9563 UnicodeString result; |
9563 fmt.format(12301.2, result); | 9564 fmt.format(12301.2, result); |
9564 assertEquals("Rounding increment should be applied after magnitude scaling",
u"1,25E4", result); | 9565 assertEquals("Rounding increment should be applied after magnitude scaling",
u"1,25E4", result); |
9565 } | 9566 } |
9566 #endif /* #if !UCONFIG_NO_FORMATTING */ | 9567 #endif /* #if !UCONFIG_NO_FORMATTING */ |
OLD | NEW |