Elango Cheran
1a9fb8ec33
ICU-13836 C++ port of adding exponent for better plurals for compact decimal format
2020-02-05 09:08:48 -08:00
Jeff Genovy
8edc6ba107
ICU-20042 Improve OOM handling in PluralRules class. ( #20 )
...
- PluralRules class doesn't handle out-of-memory (OOM) errors in some code paths.
- The clone and assignment operator (operator=) methods of construction don't take an error code parameter, meaning that if an OOM error occurs during the constructor, it will not reported back to the caller, and the caller has no way to know that the object is in a half-constructed state.
- Using an internal status variable for these above cases.
- Changes to the various PluralRules helper classes to check for OOM as well.
- Using nullptr instead NULL.
- Using LocalPointer instead of raw new/delete in some cases.
- Need to set mRules to nullptr, otherwise we can end up with double deletes in the failure case. (Thanks to Andy for the review).
- Using default member initializers for class members to avoid dangling pointers. Also allows for using default constructors too.
2018-09-27 14:27:37 -07:00
Shane Carr
a52fcd20f2
ICU-13597 Replying to UNumberFormatter code recatew comments.
...
X-SVN-Rev: 41321
2018-05-04 06:58:44 +00:00
Shane Carr
faa2897561
ICU-13634 Changes from pre-merge code light-review.
...
X-SVN-Rev: 41267
2018-04-24 01:19:44 +00:00
Shane Carr
d6c6fa0404
ICU-13634 DecimalQuantity work: Fixing integer overflow behavior in toLong and toFractionLong methods. Adding test for maxInt/maxFrac behavior in toScientificString and related methods. Updating a few test expectations in IntlTestDecimalFormatAPI::TestFixedDecimal, which is now passing.
...
X-SVN-Rev: 41235
2018-04-17 01:36:18 +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
48a633f41f
ICU-13574 Defining more fundamental parsing types.
...
X-SVN-Rev: 40843
2018-02-06 09:43:37 +00:00
Shane Carr
de3c990b0b
ICU-13415 Refactoring shadowed virtual method in IFixedDecimal.
...
X-SVN-Rev: 40626
2017-10-23 07:12:39 +00:00
Shane Carr
6a43ed9826
ICU-13177 Moving FixedDecimal and IFixedDecimal destructors to cpp file.
...
X-SVN-Rev: 40591
2017-10-06 09:02:10 +00:00
Shane Carr
ca4891dd07
ICU-13177 Replacing override with U_OVERRIDE in i18n/plurrule_impl.h
...
X-SVN-Rev: 40543
2017-10-04 13:34:56 +00:00
Andy Heninger
d2e59330cd
ICU-13177 NumberFormatter, Visual Studio fixes, work in progress.
...
X-SVN-Rev: 40475
2017-09-27 06:44:13 +00:00
Shane Carr
1f1a485c3c
ICU-13177 Adding IFixedDecimal interface to C++.
...
X-SVN-Rev: 40391
2017-09-13 07:49:26 +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
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
f2186b6d33
ICU-12141 make each internal header file compile by itself; add includes where necessary; add simple test script
...
X-SVN-Rev: 38341
2016-02-24 00:49:51 +00:00
Markus Scherer
4c96f9a866
ICU-12031 port enum StandardPlural to C++
...
X-SVN-Rev: 38130
2015-12-14 21:57:41 +00:00
Travis Keep
2860cd48c4
ICU-11740 DecimalFormat refactor.
...
X-SVN-Rev: 37821
2015-08-25 23:31:01 +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
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
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
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
Andy Heninger
425ae2d65f
ICU-10253 Add missing export to class NumberInfo, fixes build failure on MacOSX
...
X-SVN-Rev: 33965
2013-07-23 18:35:34 +00:00
Andy Heninger
f4e36c9c98
ICU-10253 Plural Rule, support for new syntax for fractional rules. Merge from development branch.
...
X-SVN-Rev: 33958
2013-07-22 23:57:17 +00:00
Markus Scherer
d743bb693e
ICU-8319 merge MessageFormat 2011q1 work into trunk, from icu/branches/markus/msg48 -r 29400:29882
...
X-SVN-Rev: 29886
2011-04-25 20:47:32 +00:00
Doug Felt
47108a4e65
ICU-8432 add icu4c implementation and tests
...
X-SVN-Rev: 29666
2011-03-17 21:36:03 +00:00
Claire Ho
9e010c8ebe
ICU-6374 Support decimal fractions in PluralRules:select()
...
X-SVN-Rev: 24299
2008-06-26 17:51:59 +00:00
Claire Ho
cd79d31f28
ICU-5794 1. Missing assignment op in PluralFormat. 2. Incorrect init in getKeywords. 3. Always returns TRUE in isKeyword() if the input is OTHER.
...
X-SVN-Rev: 23796
2008-04-17 01:33:23 +00:00
George Rhoten
7490278152
ICU-6118 Export less internal API.
...
X-SVN-Rev: 23155
2008-01-02 23:53:26 +00:00
George Rhoten
8081ce1d2b
ICU-5794 Various fixes for the following items.
...
1) Pass the locale on for the PluralFormat constructor
2) Perform normal ICU error code handling so that parse errors aren't discarded.
3) Remove more C++ static initialization.
4) Remove spaces from test names so that they can be called from the command line.
5) Fix various compiler warnings.
X-SVN-Rev: 23141
2007-12-29 05:51:50 +00:00
Claire Ho
f6900ac943
ICU-5794 Fixed static initialization problem.
...
X-SVN-Rev: 23111
2007-12-19 05:25:09 +00:00
Claire Ho
c11cd154da
ICU-5794 merge from feature branch.
...
X-SVN-Rev: 23095
2007-12-17 01:39:55 +00:00