Commit Graph

261 Commits

Author SHA1 Message Date
Shane Carr
00a23a07f7 ICU-13634 The property mapper appears to be basically functional; data passes from the old API through the mapper into the new API and then back out through the old API again.
X-SVN-Rev: 41108
2018-03-15 10:08:26 +00:00
Shane Carr
73fddf50d0 ICU-13634 Filling in decimfmt.cpp with implementation ported from Java.
X-SVN-Rev: 41103
2018-03-14 09:15:27 +00:00
Shane Carr
b30a6f0df1 ICU-13634 Filling in more methods in decimfmt.cpp
X-SVN-Rev: 41100
2018-03-13 10:11:36 +00:00
Shane Carr
8a50c335fa ICU-13634 Adding new field structure to DecimalFormat and wiring up constructors.
X-SVN-Rev: 41099
2018-03-13 09:25:41 +00:00
Shane Carr
453788ddfd ICU-13634 Temporarily deleting all old number formatting implementation code. Pieces will be restored as needed. ICU4C builds, including tests, but won't run. Changes in plurfmt.cpp and plurrule.cpp are not tested. numberformat2test.cpp is unlinked but not deleted.
X-SVN-Rev: 41098
2018-03-13 08:12:05 +00:00
Shane Carr
94427dc200 ICU-13574 Replacing DigitList with DecimalQuantity through most of the code base.
X-SVN-Rev: 41064
2018-03-03 10:53:01 +00:00
Shane Carr
3681a6803b ICU-13574 Replacing decimfmt.cpp and compactdecimalformat.cpp with new, empty files. Removing most private and internal functions from decimfmt.h, and updating call sites to use newer API.
X-SVN-Rev: 41063
2018-03-03 08:26:58 +00:00
Shane Carr
852897ba2c ICU-13574 Adding currency names matcher to ICU4C.
X-SVN-Rev: 40889
2018-02-10 02:59:49 +00:00
Shane Carr
e6987fbfd8 ICU-13391 Change ICU4C parsing to count digits instead of UTF-16 code units for grouping sizes.
X-SVN-Rev: 40573
2017-10-05 21:41:46 +00:00
William Zhao
4bb34584ad ICU-13275 Merge into some W3 warning fixes into trunk
X-SVN-Rev: 40446
2017-09-22 18:00:51 +00:00
Markus Scherer
4c2fad3e36 ICU-12410 class Edits, class CaseMap with new low-level functions that work with Edits, simpler case properties code, some cleanup
X-SVN-Rev: 39684
2017-02-17 21:03:35 +00:00
Andy Heninger
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Markus Scherer
3b23b78b95 ICU-12410 include what you use
X-SVN-Rev: 39553
2017-01-12 18:35:18 +00:00
Steven R. Loomis
19d7d00bd8 ICU-12701 IBM i fixes (merge to trunk)
X-SVN-Rev: 39289
2016-09-20 04:30:06 +00:00
Peter Edberg
e02cfd9eac ICU-12407 Prevent parse crash in DECIMAL-style formatter with applied currency pattern
X-SVN-Rev: 39236
2016-09-15 03:55:22 +00:00
Fredrik Roubert
3959b30d02 ICU-12140 Pass StringPiece by value, externally.
R=markus.icu@gmail.com

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

X-SVN-Rev: 39064
2016-08-17 19:07:15 +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
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
2860cd48c4 ICU-11740 DecimalFormat refactor.
X-SVN-Rev: 37821
2015-08-25 23:31:01 +00:00
Travis Keep
67134a6313 ICU-11713 Yoshito's review comments.
X-SVN-Rev: 37475
2015-05-29 17:14:02 +00:00
Travis Keep
2cbff1ac8b ICU-11713 Ensure that what getGroupingSize() returns doesn't change just because grouping is enabled.
X-SVN-Rev: 37472
2015-05-28 22:45:45 +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
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
03fd84ff03 ICU-11104 MSVC compiler warnings, apply patch from Chromium.
X-SVN-Rev: 36995
2015-01-30 02:18:02 +00:00
Andy Heninger
ff85125d2f ICU-11439 Improve portability of DecimalFormat::getFixedDecimal().
X-SVN-Rev: 36893
2014-12-18 22:46:45 +00:00
Steven R. Loomis
7e6c572256 ICU-10774 fix a knownissue: Collator::getAvailableLocales calculation.
Also, replace uhash_nextElement's parameter "-1" with UHASH_FIRST for clarity.
Also, improve service registration debugging code

X-SVN-Rev: 36836
2014-12-09 23:54:56 +00:00
Markus Scherer
9edbbecb24 ICU-11339 add & use LocalPointer(p, errorCode) and adoptInsteadAndCheckErrorCode(p, errorCode)
X-SVN-Rev: 36757
2014-11-20 00:27:17 +00:00
Scott Russell
867e55f0cb ICU-10970 Support required decimal point
X-SVN-Rev: 36300
2014-08-30 21:53:10 +00:00
Travis Keep
71d9e44e03 ICU-10864 DecimalFormat::getGroupingSize() to return 0 when grouping isn't being used.
X-SVN-Rev: 36027
2014-07-15 16:40:20 +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
Travis Keep
fe24e76026 ICU-10758 Enable fastpath for DecimalFormat when grouping is turned on as long as no grouping separators need to be inserted.
X-SVN-Rev: 35560
2014-04-01 20:41:15 +00:00
Peter Edberg
1def0575b8 ICU-5186 to address review comments, reformat & delete commented-out line
X-SVN-Rev: 35425
2014-03-12 02:44:16 +00:00
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