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
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
George Rhoten
dc75668c05
ICU-9457 Fix some compiler warnings
...
X-SVN-Rev: 32095
2012-08-03 19:09:42 +00:00
Steven R. Loomis
b15c2bbf3b
ICU-9416 fix number formatting for max int digits in fastpath
...
X-SVN-Rev: 32026
2012-07-06 22:47:27 +00:00
Yoshito Umaoka
fefba73e1d
ICU-9258 Updated format/DecimalFormatTest/DataDrivenTests to format StringPiece in addition to DigitList. Fixed an error status problem (not returning U_FORMAT_INEXACT_ERROR) found by the StringPiece test.
...
X-SVN-Rev: 31961
2012-06-18 14:14:22 +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
22eb317bb2
ICU-8697 C review fixes #2 : less convoluted code
...
X-SVN-Rev: 31510
2012-02-24 22:54: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
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
Yoshito Umaoka
535e2f80d5
ICU-9109 Fixed missing digit issue with DecimalFormat in lenient mode.
...
X-SVN-Rev: 31391
2012-02-14 07:05:58 +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
6bb13512c1
ICU-9021 Thread safety fixes to DigitList::getDouble().
...
X-SVN-Rev: 31159
2011-12-20 01:48:45 +00:00
Markus Scherer
867084e6bb
ICU-8801 comment out unused method parameter, avoid warning
...
X-SVN-Rev: 31102
2011-12-12 23:29:51 +00:00
Steven R. Loomis
22bfb7668a
ICU-8801 fix for performance regression of parse (mostly malloc/free)
...
X-SVN-Rev: 30628
2011-09-07 14:30:32 +00:00
Michael Ow
8ccd432155
ICU-8718 Fix some memory leak issues in numbering systems
...
X-SVN-Rev: 30592
2011-08-30 03:22:38 +00:00
John Emmons
bda69e7101
ICU-8611 Make ICU look at patterns by numbering system
...
X-SVN-Rev: 30574
2011-08-24 18:06:46 +00:00
Markus Scherer
e31ce99b84
ICU-8575 option for not including utf headers by default; replace uses of deprecated utf_old.h macros
...
X-SVN-Rev: 30430
2011-07-27 05:53:56 +00:00
Peter Edberg
f5ccf251ef
ICU-8583 Only parse arbitrary currency for calls that can return the found currency (e.g. parseCurrency)
...
X-SVN-Rev: 30313
2011-07-12 03:22:59 +00:00
Markus Scherer
2201fb816c
ICU-7877 optionally explicit UnicodeString constructors, and make them explicit inside ICU
...
X-SVN-Rev: 30293
2011-07-07 18:46:19 +00:00
Steven R. Loomis
b209c07620
ICU-8687 warnings fix (clang)
...
X-SVN-Rev: 30285
2011-07-06 20:05:38 +00:00
Markus Scherer
9f7d74001c
ICU-8605 document & test ICU4C dependencies, remove cycles, reduce some deps; merged from branches/markus/depstest -r 30155:30193
...
X-SVN-Rev: 30194
2011-06-03 05:23:57 +00:00
Peter Edberg
332037ef5b
ICU-6109 & #4942,#3579: Merge changes for lenient number & date parsing from branches/eric/lenient_number_parsing (manually!)
...
X-SVN-Rev: 30018
2011-05-04 12:23:42 +00:00
Andy Heninger
0852cc4e73
ICU-7572 Decimal Format UNUM_ROUND_UNNECESSARY implmenentation.
...
X-SVN-Rev: 29959
2011-05-02 19:15:03 +00:00
Markus Scherer
70ad6b4a74
ICU-7386 merge NumberFormat::EStyles into UNumberFormatStyles & improve NumberFormat::makeInstance() memory management
...
X-SVN-Rev: 29920
2011-04-29 00:00:47 +00:00
Markus Scherer
9774441e40
ICU-8491 remove uprv_isRuleWhiteSpace(c)
...
X-SVN-Rev: 29900
2011-04-26 06:39:29 +00:00
John Emmons
40f80afaaa
ICU-8424 Merge current CLDR trunk to 4.8M1 as CLDR 1.9.9
...
X-SVN-Rev: 29637
2011-03-12 14:57:18 +00:00
Eric Mader
206c946267
ICU-8407 Use a case-insensitive compare when matching the exponent symbol.
...
X-SVN-Rev: 29551
2011-03-07 20:02:28 +00:00
Dragan Besevic
21685ff673
ICU-8364 Check the return code when creating hashtable and return null in the case of failure
...
X-SVN-Rev: 29502
2011-03-01 20:55:43 +00:00
Michael Ow
da1272de57
ICU-7447 Fix some GCC and VA compiler warnings.
...
X-SVN-Rev: 28778
2010-10-08 20:14:26 +00:00
John Emmons
1974269a6f
ICU-7724 Merge support for non-contiguous numbering systems
...
X-SVN-Rev: 28466
2010-08-13 21:23:00 +00:00
Steven R. Loomis
592b73e980
ICU-7502 fix ASCIIsms - merge from branch /branches/srl/ascii7502
...
X-SVN-Rev: 28382
2010-07-28 16:08:12 +00:00
Jason Spieth
6f718f78eb
ICU-7654 Merge branch into trunk.
...
X-SVN-Rev: 28282
2010-07-06 16:35:34 +00:00
John Emmons
bd2a89a232
ICU-7599 Add support for alternate symbols per numbering system
...
X-SVN-Rev: 28134
2010-06-04 18:29:02 +00:00
Michael Grady
fa477f8a22
ICU-7667 In DecimalFormat::_format, deal with cases where two forms of rounding are specified - number of digits _and_ a rounding increment
...
X-SVN-Rev: 28132
2010-06-04 05:42:19 +00:00
Markus Scherer
fd376b34c0
ICU-7496 add internal char * string class for C++ implementation code
...
X-SVN-Rev: 28082
2010-05-20 21:16:44 +00:00
Andy Heninger
4e56218eb1
ICU-5193 Big decimal number formatting.
...
X-SVN-Rev: 27696
2010-02-26 02:29:00 +00:00
Markus Scherer
81234fecdb
ICU-7273 add loading of custom data, with caching, test data and test code
...
X-SVN-Rev: 27578
2010-02-16 23:43:22 +00:00
Doug Felt
bd8eb26d17
ICU-7391 changed ref to pointer in APIs taking FieldPositionIterator, cleaned whitespace
...
X-SVN-Rev: 27433
2010-01-28 19:39:24 +00:00