Commit Graph

330 Commits

Author SHA1 Message Date
Andy Heninger
549c7646bf ICU-12061 FieldPosition::DONT_CARE API status and doc update. Fix incorrect usage of FieldPosition(0).
X-SVN-Rev: 39017
2016-07-23 04:42:29 +00:00
Peter Edberg
b45dac8cfc ICU-12455 Integrate early CLDR 30 data for ICU4C 58m1
X-SVN-Rev: 38905
2016-06-30 23:41:56 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126 ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Craig Cornelius
75dbee791e ICU-11735 Add test to verify that ICU4C behaves correctly.
X-SVN-Rev: 38394
2016-02-26 23:59:20 +00:00
John Emmons
03215c6ccb ICU-12185 Fix intltest testcase for TestCurrencyUsage
X-SVN-Rev: 38393
2016-02-26 23:39:44 +00:00
Fredrik Roubert
f34de568c4 ICU-12012 Replace irregular sizeof expressions with UPRV_LENGTHOF().
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/286430043 .

X-SVN-Rev: 38378
2016-02-26 11:21:55 +00:00
Fredrik Roubert
ebc0f5b22a ICU-12012 Replace all sizeof p / sizeof T with UPRV_LENGTHOF().
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/288320043 .

X-SVN-Rev: 38347
2016-02-24 21:48:56 +00:00
Fredrik Roubert
7f4b8d106b ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/285520043 .

X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Michael Ow
fdd235d5e5 ICU-11917 Fix no data test errors in ICU4C 56
X-SVN-Rev: 37981
2015-09-22 04:02:11 +00:00
Markus Scherer
69543d559e ICU-11016 add support for minimum grouping digits (technology preview, not using CLDR data yet)
X-SVN-Rev: 37946
2015-09-11 19:18:00 +00:00
Travis Keep
bc33f20e3c ICU-11740 Add more tests to prove that this change resolves other tickets.
X-SVN-Rev: 37843
2015-08-28 18:38:37 +00:00
John Emmons
01e0c332a5 ICU-11846 CLDR 28 data integration
X-SVN-Rev: 37836
2015-08-27 20:23:27 +00:00
Travis Keep
e837bd4f7f ICU-11868 Add test that was failing with the legacy DecimalFormat code.
X-SVN-Rev: 37835
2015-08-27 18:03:18 +00:00
Travis Keep
2860cd48c4 ICU-11740 DecimalFormat refactor.
X-SVN-Rev: 37821
2015-08-25 23:31:01 +00:00
Travis Keep
128d05a024 ICU-11731 Fix number format data driven tests to show test failures in test summary.
X-SVN-Rev: 37559
2015-06-15 17:33:23 +00:00
John Emmons
75ed4ce808 ICU-11728 First cut CLDR 28 data integration
X-SVN-Rev: 37524
2015-06-10 18:38:06 +00:00
Travis Keep
9672f10d99 ICU-10458 Add more data driven tests for parsing currency.
X-SVN-Rev: 37507
2015-06-09 18:01:13 +00:00
Travis Keep
df332d3722 ICU-10458 Keep data driven tests in sync.
X-SVN-Rev: 37496
2015-06-03 17:10:45 +00:00
Travis Keep
762078d2f1 ICU-11692 Add DecimalFormat data driven tests.
X-SVN-Rev: 37471
2015-05-28 20:09:43 +00:00
Travis Keep
4a51a2f421 ICU-11652 Change default padding character from astricks 0x002A to space 0x0020
X-SVN-Rev: 37378
2015-04-22 21:54:15 +00:00
Michael Ow
9401ac86a0 ICU-11433 Fix some no data test failures
X-SVN-Rev: 37219
2015-03-11 21:09:25 +00:00
John Emmons
368eb4bb16 ICU-11555 Integrate CLDR 27 data
X-SVN-Rev: 37169
2015-03-06 22:58:33 +00:00
Michael Ow
da811f1dfe ICU-11433 Fix memory leak in numberformat test
X-SVN-Rev: 37038
2015-02-18 18:29:04 +00:00
Travis Keep
06223fc789 ICU-11524 Fix inconsistency between fastpath and slowpath for when maxIntDigit = 0.
X-SVN-Rev: 37026
2015-02-12 21:45:27 +00:00
Andy Heninger
c356adbd4e ICU-11439 Another stab at portability in NumberFormatTest::TestDoubleLimit11439().
X-SVN-Rev: 36895
2014-12-19 01:11:01 +00:00
Andy Heninger
a1d3e7d662 ICU-11439 Improve portability of DecimalFormat::getFixedDecimal().
X-SVN-Rev: 36894
2014-12-19 00:22:05 +00:00
Andy Heninger
ff85125d2f ICU-11439 Improve portability of DecimalFormat::getFixedDecimal().
X-SVN-Rev: 36893
2014-12-18 22:46:45 +00:00
John Emmons
ad5308aa12 ICU-11417 CLDR 27 data integration for ICU55M1
X-SVN-Rev: 36850
2014-12-11 16:10:49 +00:00
Peter Edberg
92a7528223 ICU-11173 CLDR tags/release-26-d03 into ICU4C trunk, remove logKnownIssue 11219, fix test for cldrbug:7868
X-SVN-Rev: 36377
2014-09-06 06:15:08 +00:00
Peter Edberg
1b8eb15e1a ICU-11173 CLDR tags/release-26-d01 into ICU4C trunk with related test & lib code updates
X-SVN-Rev: 36313
2014-09-02 23:18:20 +00:00
Steven R. Loomis
7594250cc5 ICU-7653 changed uprv_lengthof to UPRV_LENGTHOF, also added apidoc
X-SVN-Rev: 36275
2014-08-28 22:13:45 +00:00
Tom Zhang
ee1f29b584 ICU-7653 move LENGTHOF(array) to common, internal header
X-SVN-Rev: 36265
2014-08-28 14:55:34 +00:00
Michael Ow
b1de9c0f30 ICU-10842 Fix header test failures, fix no data test errors, and update file properties
X-SVN-Rev: 35982
2014-07-02 05:09:05 +00:00
Tom Zhang
985f42b752 ICU-10344 add new field & factory method for currency CASH/STANDARD Usage
X-SVN-Rev: 35873
2014-06-12 21:40:34 +00:00
Peter Edberg
24a8cc84f4 ICU-5186 Make DecimalFormat::operator== much more complete
X-SVN-Rev: 35312
2014-03-04 05:54:16 +00:00
Yoshito Umaoka
cfd57abf79 ICU-10601 Added UNUM_CURRENCY_ACCOUNTING to ICU4C NumberFormat.
X-SVN-Rev: 35198
2014-02-22 00:16:56 +00:00
Travis Keep
e3e20601c0 ICU-10547 Remove extra code from tests added there to help me debug.
X-SVN-Rev: 35197
2014-02-21 22:34:29 +00:00
Travis Keep
fcde5a4621 ICU-10547 Format -0.0 as a negative when using scientific notation.
X-SVN-Rev: 35196
2014-02-21 20:41:39 +00:00
Travis Keep
897a4241a5 ICU-10682 Fix memory leak in trunk.
X-SVN-Rev: 35087
2014-02-06 00:44:13 +00:00
Travis Keep
25c7ba8e57 ICU-10682 Fix clone, copy constructor, and assignment operator in RulesBasedNumberFormat.
X-SVN-Rev: 35085
2014-02-06 00:34:24 +00:00
Travis Keep
0a42d4959f ICU-10640 Add C++ MeasureFormat API.
X-SVN-Rev: 35069
2014-02-04 00:29:17 +00:00
Michael Ow
4e806c800e ICU-10483 Fix no data test errors in ICU4C 53m1
X-SVN-Rev: 34979
2014-01-22 21:20:24 +00:00
Andy Heninger
cabbcecf5c ICU-10624 Swat clang compile warnings.
X-SVN-Rev: 34861
2014-01-10 19:20:16 +00:00
Peter Edberg
908bae8ff8 ICU-10609 Fix test failures only found in clean build, missed in incremental build (hmm)
X-SVN-Rev: 34816
2013-12-23 06:07:15 +00:00
Travis Keep
e1a7ad244f ICU-10545 Added test to verify rounding scientific notation works.
X-SVN-Rev: 34660
2013-11-14 18:57:06 +00:00
Travis Keep
9fa0f4299d ICU-10468 Fix applyPattern so that it resets the padding character.
X-SVN-Rev: 34578
2013-10-17 18:44:44 +00:00
Travis Keep
18b6e9fc60 ICU-10419 Fix rounding in NumberFormat.
X-SVN-Rev: 34549
2013-10-10 21:49:53 +00:00
Steven R. Loomis
4650ca64e3 ICU-7912 commit from review comments (thx)
X-SVN-Rev: 34416
2013-09-20 05:00:30 +00:00
Michael Ow
4835d5705a ICU-10398 Ensure cintltst and intltest passes without data
X-SVN-Rev: 34398
2013-09-19 02:32:57 +00:00
Michael Ow
6bef61a350 ICU-10161 Delete number format after use
X-SVN-Rev: 34269
2013-09-11 17:49:34 +00:00
John Emmons
a869b0d483 ICU-10335 Merge completed CLDR24 branch into trunk.
X-SVN-Rev: 34238
2013-09-07 20:46:42 +00:00
Peter Edberg
bcfcd53be9 ICU-10161 trimMarksFromAffix must trim all marks; update "ar" number patterns to latest
X-SVN-Rev: 34203
2013-09-05 22:13:07 +00:00
Peter Edberg
8997c77684 ICU-10161 Now compareSimpleAffix ignores LRM/RLM/ALM in affix or text when comparing them;
and pre-integrate some CLDR 24 number symbol & pattern changes so tests will match the new data.

X-SVN-Rev: 34186
2013-09-04 10:46:03 +00:00
Yoshito Umaoka
b0eaf25682 ICU-9526 Fixed a parsing problem with custom monetary gouping separator. Fixed some bad coding style. Added a test case for testing custom symbols.
X-SVN-Rev: 34069
2013-08-20 20:51:31 +00:00
Travis Keep
41b7ee189d ICU-10258 Parse different variations of '+' and '-' when isLenient is set in C++.
X-SVN-Rev: 33989
2013-07-25 17:58:37 +00:00
Travis Keep
38eb17d4d0 ICU-10222 Fix failing tests in NumberFormatTest.
X-SVN-Rev: 33916
2013-07-11 20:49:11 +00:00
Peter Edberg
09ac4ef907 ICU-10222 (C) Integrate CLDR data snapshot for ICU 52.0.1; add calendar types
X-SVN-Rev: 33890
2013-07-08 06:51:38 +00:00
Steven R. Loomis
d5d6cc5ff8 ICU-7912 fix breakage
X-SVN-Rev: 33853
2013-06-26 15:27:41 +00:00
Steven R. Loomis
ae061ff78f ICU-7912 C wrapper for Formattable - UFormattable
X-SVN-Rev: 33849
2013-06-26 06:31:09 +00:00
Travis Keep
f28544ab1b ICU-10069 Attempt to fix broken build.
X-SVN-Rev: 33843
2013-06-24 18:05:38 +00:00
Travis Keep
1f6c4dab6b ICU-10069 Attempt to fix broken build.
X-SVN-Rev: 33842
2013-06-24 17:19:09 +00:00
Travis Keep
2830139ec2 ICU-10069 Attempt fo fix broken build.
X-SVN-Rev: 33841
2013-06-21 00:33:41 +00:00
Steven R. Loomis
2116c12c20 ICU-10069 improve error messages"
X-SVN-Rev: 33839
2013-06-20 22:20:51 +00:00
Steven R. Loomis
2c6bc98b14 ICU-10069 improve error messages, add commented-out case that passes on solaris and fails on others
X-SVN-Rev: 33838
2013-06-20 22:09:42 +00:00
Andy Heninger
5ea9cb88a5 ICU-9936 Decimal Format, auto-enable SignificantDigitsUsed when setting significant digits.
X-SVN-Rev: 33833
2013-06-17 18:49:28 +00:00
Travis Keep
6676337f3e ICU-10069 Take into account compatible currency symbols, e.g half-width and full width yen symbol when parsing currencies in C++. Currency equivalence relation is hard-coded for now.
X-SVN-Rev: 33825
2013-06-13 18:38:53 +00:00
Travis Keep
21ed20e983 ICU-10045 Fix again so that zero shows as 0 not 0.0
X-SVN-Rev: 33751
2013-05-24 22:45:48 +00:00
Travis Keep
77f8f1e2c2 ICU-10045 Change UNICODE_STRING_SIMPLE to a UnicodeString constructor in an attempt to fix broken builds.
X-SVN-Rev: 33489
2013-04-03 21:18:45 +00:00
Travis Keep
41bb29f532 ICU-10045 Fix number of significant digits with 0.
X-SVN-Rev: 33487
2013-04-03 20:11:01 +00:00
Travis Keep
6125cf2eff ICU-10045 Formatting with significant digits to work correctly with 0 in C++
X-SVN-Rev: 33485
2013-04-02 22:01:33 +00:00
Andy Heninger
ae4350661b ICU-10048 Fix some compiler warnings in ICU4C.
X-SVN-Rev: 33444
2013-03-21 01:42:01 +00:00
Peter Edberg
08fb2eacd2 ICU-9925 CLDR 23 pre-integration part 3, batch 2 (C)
X-SVN-Rev: 33202
2013-02-13 13:26:23 +00:00
Steven R. Loomis
736010a456 ICU-9655 move enumset test
X-SVN-Rev: 32934
2012-12-07 00:26:50 +00:00
Steven R. Loomis
4297072ccd ICU-9714 now builds clean on IBM i- fix some test cases for ASCIIsms, fix formattable buffer size
X-SVN-Rev: 32905
2012-11-29 01:09:50 +00:00
Michael Ow
e0d218d5b6 ICU-9613 Remove myEnum:: prefix
X-SVN-Rev: 32626
2012-10-12 22:47:38 +00:00
Michael Ow
799a603abc ICU-9613 Merge from branch to trunk
X-SVN-Rev: 32622
2012-10-12 19:52:43 +00:00
John Emmons
276a244c9b ICU-9251 First cut merge of CLDR 22 data
X-SVN-Rev: 32275
2012-08-28 21:56:06 +00:00
Michael Ow
eb5efa3a02 ICU-9463 Skip test on Cygwin using GCC because of rounding issue
X-SVN-Rev: 32122
2012-08-08 17:57:17 +00:00
Jennifer Chye
bec84a2a15 ICU-9288 Merge new converter changes into trunk with regenerated data.
X-SVN-Rev: 32080
2012-08-01 20:40:39 +00:00
Michael Ow
d62e581e2c ICU-9397 Update some tests in intltest and cintltst to pass without data in 50.0.1
X-SVN-Rev: 31982
2012-06-22 16:48:30 +00:00
Steven R. Loomis
c6a7e38015 ICU-9258 fix test code
X-SVN-Rev: 31889
2012-05-30 19:02:58 +00:00
Steven R. Loomis
dc44c2bdd9 ICU-9258 fix int64 format of U_INT64_MIN; // -9223372036854775808L
X-SVN-Rev: 31888
2012-05-30 18:21:49 +00:00
Steven R. Loomis
43b918a0c8 ICU-9258 merge from branches, performance improvements
X-SVN-Rev: 31881
2012-05-30 00:41:57 +00:00
Peter Edberg
faced7a2f0 ICU-8697 C review fixes: correct UnicodeString constructor, use LocalPointer, use ParsePosition.getIndex() to test errs
X-SVN-Rev: 31509
2012-02-24 20:27:21 +00:00
Michael Ow
20e8036d10 ICU-8716 Update intltest and cintltst to pass without data in 49
X-SVN-Rev: 31449
2012-02-20 19:13:36 +00:00
Peter Edberg
05b2ae1381 ICU-8697 C, change parseCurrency methods to return CurrencyAmount*, make draft ICU 49
X-SVN-Rev: 31440
2012-02-19 06:45:47 +00:00
Michael Ow
ceb1f19712 ICU-8718 Initialize UFieldPosition struct to avoid valgrind errors
X-SVN-Rev: 31413
2012-02-17 18:29:03 +00:00
Michael Ow
6098f00b1f ICU-8718 Fix memory leak in Test9087
X-SVN-Rev: 31411
2012-02-17 17:12:43 +00:00
John Emmons
b8281ee69e ICU-9087 Add special case for +-infinity in DigitList::set()
X-SVN-Rev: 31403
2012-02-17 04:00:49 +00:00
John Emmons
7b449d6fe9 ICU-8849 Updates to NumberingSystem class to support otherNumberingSystems from CLDR
X-SVN-Rev: 31400
2012-02-15 22:01:43 +00:00
Michael Ow
52af04fed7 ICU-7464 Apply fix to incorrect number rounding when rounding increment is in the string pattern of the decimal formatter in ICU4C
X-SVN-Rev: 31378
2012-02-13 19:23:47 +00:00
Andy Heninger
305adeb146 ICU-8034 Add Number Format field constant definitions.
X-SVN-Rev: 31356
2012-02-10 00:38:34 +00:00
John Emmons
ef5c72934d ICU-9071 Merge data from CLDR release-21-d02
X-SVN-Rev: 31337
2012-02-07 20:54:16 +00:00
John Emmons
867185c5c7 ICU-8846 Merge CLDRv21M1 data into ICU
X-SVN-Rev: 30755
2011-09-29 21:52:25 +00:00
Abhinav Gupta
936abbe238 ICU-8819 DecimalFormatSymbols::initialize now throws a DEFAULT WARNING instead of FALLBACK. Updated NumberFormatTest::TestSymbolsWithBadLocale to reflect this change.
X-SVN-Rev: 30662
2011-09-15 17:37:00 +00:00
Abhinav Gupta
707069804b ICU-8812 fixed typo from previous commit.
X-SVN-Rev: 30651
2011-09-13 21:12:01 +00:00
Abhinav Gupta
64da48200b ICU-8812 added test case for fallback warning to TestSymbolsWithBadLocale.
X-SVN-Rev: 30650
2011-09-13 20:58:08 +00:00
Abhinav Gupta
728d95f8c9 ICU-8812 fixed init_entry overflow and TestSymbolsWithBadLocale test case
X-SVN-Rev: 30649
2011-09-13 19:14:32 +00:00