Commit Graph

227 Commits

Author SHA1 Message Date
Steven R. Loomis
f38544a2a6 ICU-10756 regression tests added for case where setGroupingUsed didn't call handleChanged() and thus the fastpath status would be incorrect. Fixed by overriding three functions in DecimalFormat but delegating to NumberFormat. The other two functions don't affect fastpath, but are overridden for future changes where they might.
X-SVN-Rev: 35351
2014-03-06 00:12:57 +00:00
Steven R. Loomis
3226c52b08 ICU-10756 fix operator= ( restores performance for the createInstance() / applyPattern("#") case )
X-SVN-Rev: 35348
2014-03-05 23:11:07 +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
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
f2738c9787 ICU-10468 andy's review comments.
X-SVN-Rev: 34914
2014-01-16 21:32:53 +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
Steven R. Loomis
99fc90c94d ICU-10439 add comment about why volatile is here
X-SVN-Rev: 34476
2013-09-25 02:08:52 +00:00
Steven R. Loomis
006d7063b7 ICU-10439 add volatile as per StackOverflow:2219829 to work around what seems to be an optimizer bug in GCC -m32 (at least GCC 4.4.7 and 4.8.1) - revisit in ICU-10420 and ilk.
X-SVN-Rev: 34471
2013-09-25 00:31:46 +00:00
Andy Heninger
25bab8fa6f ICU-10361 DecimalFormat, remove number size restrictions that were limiting the ability to format big decimals.
X-SVN-Rev: 34366
2013-09-17 21:56:23 +00:00
Steven R. Loomis
6144e1bad2 ICU-10273 work around Windows test failure by disabling optimization of getFixedDecimal.
X-SVN-Rev: 34362
2013-09-17 20:42:14 +00:00
Andy Heninger
b6529f6c53 ICU-10273 fix Windows test failure in FixedDecimal.
X-SVN-Rev: 34308
2013-09-13 17:08:58 +00:00
Steven R. Loomis
0c1b6a8ffd ICU-10397 move singleton init out of static functions (perf)
X-SVN-Rev: 34304
2013-09-13 16:21:56 +00:00
Steven R. Loomis
bbc0a17a8e ICU-10379 fixes for IBM i - ambiguous types
X-SVN-Rev: 34285
2013-09-12 06:29:39 +00:00
Steven R. Loomis
e059ab24ef ICU-10273 fix compilation failure on some platforms, also reorder zero-initializers to avoid warning
X-SVN-Rev: 34282
2013-09-12 04:04:56 +00:00
Andy Heninger
8abaebe06e ICU-10273 DecimalFormat::getFixedDecimal(), improved handling of rounding, overflow.
X-SVN-Rev: 34280
2013-09-12 01:00:04 +00:00
Markus Scherer
fb38bbbee8 ICU-10273 support plurals with decimals in MessageFormat and PluralFormat (ported from Java r34087 & r34276)
X-SVN-Rev: 34277
2013-09-11 23:32:37 +00:00
Steven R. Loomis
31cdcb89e0 ICU-10379 fixes for IBM i - mostly clarifying ambiguous casts.
X-SVN-Rev: 34274
2013-09-11 19:38:07 +00:00
Andy Heninger
90522bf7b1 ICU-10273 add DecimalFormat::getFixedDecimal(Formattable &)
X-SVN-Rev: 34267
2013-09-11 01:17:28 +00:00
Andy Heninger
4d9fad13ef ICU-10273 Plural Rules Fixed Decimal, improve handling of NaN and Infinity
X-SVN-Rev: 34225
2013-09-06 20:02:42 +00:00
Andy Heninger
7b3b75a525 ICU-10273 Plural Rules, add DecimalFormat::getFixedDecimal(). Work in progress.
X-SVN-Rev: 34204
2013-09-05 23:28:28 +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
Andy Heninger
003c35c1d9 ICU-10273 Plural Rules, add DecimalFormat::getFixedDecimal(). Work in progress.
X-SVN-Rev: 34176
2013-09-04 01:07:35 +00:00
Steven R. Loomis
bc0dcf4cb0 ICU-9619 add const to getters
X-SVN-Rev: 34173
2013-09-04 00:01:26 +00:00
Andy Heninger
759b77c2b0 ICU-9980 DecimalFormat::parseCurrency() - init output currencty parameter.
X-SVN-Rev: 34156
2013-08-30 22:16:21 +00:00
Andy Heninger
4dc67e0203 ICU-10273 New plural rule syntax. Changes merged from development branch. With this checkin, Plural rule data is back in synch between ICU4C, ICU4J and CLDR trunk.
X-SVN-Rev: 34103
2013-08-28 20:51:44 +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
60501becc4 ICU-10258 Free minus sign and plus sign set in a clean up function.
X-SVN-Rev: 34045
2013-08-15 21:02:16 +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
Andy Heninger
61a59e26a1 ICU-10253 Currency plurals, pay attention to min fraction digits in format.
X-SVN-Rev: 33966
2013-07-23 20:02:13 +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
Andy Heninger
978f71fe78 ICU-10051 Mutexes: introduce UInitOnce; remove UMTX_CHECK; replace all uses of UMTX_CHECK.
X-SVN-Rev: 33787
2013-05-31 23:50:15 +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
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
3b379f4c28 ICU-7468 Use C++ "using" in Format class hierarchy, so inheritance of format() and parse() functions works normally, without unwanted function hiding.
X-SVN-Rev: 33457
2013-03-21 22:09:06 +00:00
Andy Heninger
6a16eb759a ICU-9981 Initialize memory that was causing erratic results.
X-SVN-Rev: 33329
2013-02-25 23:56:37 +00:00
Michael Ow
f3d398a293 ICU-9944 Fix function name collision
X-SVN-Rev: 33295
2013-02-21 22:37:26 +00:00
John Emmons
96f4a704b2 ICU-9889 Implement scaling for decimalFormat
X-SVN-Rev: 33138
2013-02-07 19:48:29 +00:00
Steven R. Loomis
9994b1fe03 ICU-9677 fix affixes-ignored-for-parse - check in handleChanged() instead of relying on input function
X-SVN-Rev: 32918
2012-12-04 21:33:15 +00:00
Steven R. Loomis
bc81e5f281 ICU-9780 calculate fastpath for parsing side separately, also allow grouping sep in nonlenient intonly mode
X-SVN-Rev: 32917
2012-12-04 20:33:19 +00:00
Michael Ow
53a148983c ICU-9679 Fix some gcc compiler warnings
X-SVN-Rev: 32912
2012-11-30 22:19:58 +00:00
Travis Keep
161183009a ICU-9543 C++ CompactDecimalFormat moved to trunk.
X-SVN-Rev: 32819
2012-11-14 18:49:38 +00:00
Steven R. Loomis
f2306f2577 ICU-9711 OS/400 fixes
X-SVN-Rev: 32742
2012-11-02 19:41:57 +00:00
Markus Scherer
b64d860945 ICU-9549 re-simplify logic in _copy_ptr()
X-SVN-Rev: 32627
2012-10-12 23:18:49 +00:00
Michael Ow
b73ea8b387 ICU-9613 Fix wrong enum name
X-SVN-Rev: 32625
2012-10-12 21:53:41 +00:00
Michael Ow
799a603abc ICU-9613 Merge from branch to trunk
X-SVN-Rev: 32622
2012-10-12 19:52:43 +00:00
Travis Keep
9adb3fd642 ICU-9549 Fix memory problems in DecimalFormat assignment operator.
X-SVN-Rev: 32439
2012-09-27 18:50:24 +00:00
Steven R. Loomis
9077d5dc25 ICU-9449 Merge in decimal format performance improvements from branch.
Improvements to 'howExpensiveIs' benchmark test.
Use internal digitlist in Formattable (save mallocs).
Enable fastpath by default.
Enable internal API "parse all input", returning an error if all input was not consumed.

X-SVN-Rev: 32397
2012-09-17 19:03:01 +00:00