Commit Graph

18 Commits

Author SHA1 Message Date
Jeff Genovy
00596d3027 ICU-13847 ICU-20381 Improve handling of errors (Out-of-Memory) in DecimalFormat class.
- Use move assignment for fields->formatter (LocalizedNumberFormatter) instead of creating new heap object every time.
- Add test cases for DecimalFormat object in invalid state.
- Protect against self-assignment in assignment operator.
- Fix segmentation fault when attempting to compare valid and invalid DecimalFormat objects.
- Changes based on review feedback from Shane.
- Fix minor typos in the public header file.
2019-02-05 14:00:40 -08:00
Shane
3420d5a55b
ICU-20001 Adding alignas to static-allocated memory.
Should fix possible crashes on ARM platforms. (#63)
2018-09-27 14:27:38 -07:00
Shane Carr
71baac1713 ICU-12572 Fixing some undefined behavior warnings in number code.
X-SVN-Rev: 41358
2018-05-08 07:59:41 +00:00
Shane Carr
607a60bc3b ICU-13393 Removing the UPRV_INCOMPLETE_CPP11_SUPPORT flag since the number formatting code is no longer isolated from the rest of ICU.
X-SVN-Rev: 41266
2018-04-23 23:02:26 +00:00
Shane Carr
f412770e9d ICU-13634 A few more DecimalFormat optimizations.
X-SVN-Rev: 41257
2018-04-21 06:00:56 +00:00
Shane Carr
ad116997ae ICU-13634 Optimizing and adding a basic fastpath for small ints. Greatly increases the performance of DateFormat.
X-SVN-Rev: 41251
2018-04-19 09:29:39 +00:00
Shane Carr
1aa5185a36 ICU-13700 Renaming new getter/setter to magnitudeScale.
X-SVN-Rev: 41246
2018-04-18 23:55:55 +00:00
Shane Carr
3c9b343282 ICU-13634 Adding "formatFailIfMoreThanMaxDigits" property to C++ NumberFormatter. Changing getSecondaryGroupingSize() for backwards compatibility. Other assorted test changes.
X-SVN-Rev: 41239
2018-04-18 03:59:39 +00:00
Shane Carr
12b34e7c9e ICU-13634 A variety of mostly minor changes to fix assorted unit test failures in ICU4C plus a few in ICU4J.
X-SVN-Rev: 41236
2018-04-17 08:05:20 +00:00
Shane Carr
02c492db8a ICU-13700 Adding DecimalFormat "scale" getter/setter and implementation in the new number formatting pipeline.
X-SVN-Rev: 41232
2018-04-14 09:49:12 +00:00
Shane Carr
cbae6dfbaa ICU-13634 Adding groupingUsed as an explicit property in the property bag; see also ICU-13442 .
X-SVN-Rev: 41229
2018-04-14 07:15:19 +00:00
Shane Carr
8b4c367468 ICU-13644 Property mapper for parsing is building. Refactoring CurrencySymbols a bit.
X-SVN-Rev: 41130
2018-03-21 05:17:28 +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
1ec3a8c6bb ICU-13411 Making "using namespace" statements consistent across number formatting cpp files.
X-SVN-Rev: 40630
2017-10-25 00:25:04 +00:00
Shane Carr
25fed96c72 ICU-13093 Disabling number formatting code on AIX and z/OS due to C++11 compatibility issues.
X-SVN-Rev: 40560
2017-10-05 00:47:38 +00:00
Norbert Runge
b536a39a74 ICU-13384 Adds #include unicode/utypes.h
X-SVN-Rev: 40557
2017-10-04 22:51:06 +00:00
Shane Carr
2d49e73b8a ICU-13177 Cleanup before merge to trunk.
X-SVN-Rev: 40471
2017-09-27 05:31:57 +00:00
Shane Carr
a01fc429cb ICU-13177 Initial commit of ICU4C NumberFormatter
X-SVN-Rev: 40465
2017-09-27 00:25:20 +00:00