Commit Graph

21597 Commits

Author SHA1 Message Date
Shane Carr
acbdeaf98e ICU-13725 Fixing field reference in compactdecimalformat.cpp, broken by previous commit.
X-SVN-Rev: 41280
2018-04-26 00:17:30 +00:00
Shane Carr
18bfb67a60 ICU-13725 Moving all DecimalFormat fields to an implementation class, eliminating many MSVC warnings.
X-SVN-Rev: 41279
2018-04-25 23:57:10 +00:00
Shane Carr
18ffd64c69 ICU-13725 Additional MSVC compatibility fixes.
X-SVN-Rev: 41278
2018-04-25 21:51:16 +00:00
Andy Heninger
9ba0aa2345 ICU-13634 Fix Macintosh build breakage.
X-SVN-Rev: 41277
2018-04-25 21:04:19 +00:00
Andy Heninger
72ae3d7d54 ICU-13634 Fix Macintosh build error - missing include.
X-SVN-Rev: 41276
2018-04-25 04:09:09 +00:00
Andy Heninger
5e2a40b4ce ICU-13634 Fix Macintosh build error - missing include.
X-SVN-Rev: 41275
2018-04-25 03:50:39 +00:00
Andy Heninger
09249d176b ICU-13634 Fix Macintosh build error - missing include.
X-SVN-Rev: 41274
2018-04-25 03:38:04 +00:00
Shane Carr
dfc04884f6 ICU-13725 Fixing ambiguous assertEquals call on Linux.
X-SVN-Rev: 41273
2018-04-25 01:27:38 +00:00
Shane Carr
a256316990 ICU-13725 Additional MSVC compatibility fixes.
X-SVN-Rev: 41272
2018-04-25 00:39:22 +00:00
Shane Carr
a7bcbfc07c ICU-13725 Assorted minor changes to number formatting code for MSVC compatibility
X-SVN-Rev: 41271
2018-04-24 22:24:11 +00:00
Shane Carr
629238d3a1 ICU-13634 Fixing assorted build errors.
X-SVN-Rev: 41268
2018-04-24 01:25:05 +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
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
8fab60c93b ICU-13634 Syncing MSVC build files with Makefiles.
X-SVN-Rev: 41265
2018-04-23 22:48:52 +00:00
Shane Carr
b2be6b57a9 ICU-13597 Adding comments about thread safety to UNumberFormatter.h
X-SVN-Rev: 41264
2018-04-23 22:42:51 +00:00
Shane Carr
16aedd5e1a ICU-13670 Changing CFLAGS to C11 and fixing check for unicode string literals.
X-SVN-Rev: 41263
2018-04-23 21:16:52 +00:00
Shane Carr
328730604b ICU-13634 Fixing grouping size fallback in fast path.
X-SVN-Rev: 41262
2018-04-23 21:16:24 +00:00
Shane Carr
f7dddad5c0 ICU-13634 Removing superfluous abstraction "CharSequence" and "UnicodeStringCharSequence" from ICU4C number code.
X-SVN-Rev: 41260
2018-04-21 09:08:53 +00:00
Shane Carr
be466ddec0 ICU-13634 Porting some minor ICU4C performance enhancements to Java.
X-SVN-Rev: 41259
2018-04-21 08:55:58 +00:00
Shane Carr
e59eb48314 ICU-13634 Refactoring getPrefixSuffix methods. In ICU4C, the pattern modifier is now accessed directly. In ICU4J, they use the same detour through the pipeline code path as before with a TODO to improve to be closer to ICU4C. In addition, in both ICU4C and ICU4J, getPrefixSuffix now uses the compiled formatter when available.
X-SVN-Rev: 41258
2018-04-21 08:01:19 +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
2cd9b1196d ICU-13634 Merging trunk to branch
X-SVN-Rev: 41256
2018-04-21 02:30:42 +00:00
Shane Carr
5aa92f0bf6 ICU-13521 Re-generating constants in measunit.cpp once more from the latest data on trunk.
X-SVN-Rev: 41255
2018-04-21 02:30:13 +00:00
Shane Carr
912f97dace ICU-13634 Merging trunk to branch
X-SVN-Rev: 41254
2018-04-21 02:18:33 +00:00
Shane Carr
1897f0cd56 ICU-13521 Re-generating constants in measunit.cpp from the code generation tool.
X-SVN-Rev: 41253
2018-04-21 02:09:53 +00:00
Shane Carr
f0aadfe714 ICU-13634 Fixing lazy-compute call site and other minor changes.
X-SVN-Rev: 41252
2018-04-20 01:32:53 +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
d682d1dbb1 ICU-13700 Fixing typo in APIdoc.
X-SVN-Rev: 41250
2018-04-19 02:41:33 +00:00
Shane Carr
f164bc1498 ICU-13634 Adding TODO comment in CurrencyUnit constructor.
X-SVN-Rev: 41249
2018-04-19 01:16:47 +00:00
Shane Carr
f11ca0d363 ICU-13634 Fixing address sanitizer issue involving backwards-compatible UChar* behavior in CurrencyUnit constructor. The string passed to the constructor need not be NUL-terminated.
X-SVN-Rev: 41248
2018-04-19 01:13:17 +00:00
Shane Carr
2e41837217 ICU-13700 APIDoc tweaks for getMultiplierScale/setMultiplierScale.
X-SVN-Rev: 41247
2018-04-19 00:14:17 +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
55080e2804 ICU-13634 Fixing some clang sanitizer issues, including one potentially serious one deep inside DecimalQuantity.
X-SVN-Rev: 41245
2018-04-18 10:52:36 +00:00
Shane Carr
efa58f5d80 ICU-13597 Revising UNumberFormatter according to feedback: (1) adds LocalPointer; (2) makes buffer export behavior consistent; (3) removes const from unumf_closeResult; and (4) improves API docs.
X-SVN-Rev: 41244
2018-04-18 09:42:05 +00:00
Shane Carr
ad2ea9d38f ICU-13634 Minor cintltst tweaks; all of cintltst is passing.
X-SVN-Rev: 41243
2018-04-18 09:07:41 +00:00
Shane Carr
f97d1f09ab ICU-13634 Fixing cintltst sementation fault: reset UInitOnce mechanisms in number code after u_cleanup.
X-SVN-Rev: 41242
2018-04-18 09:03:42 +00:00
Shane Carr
6a2bc42216 ICU-13634 Strict mode on scientific formatter requires exponents; changing scanf in iotest to use lenient mode instead.
X-SVN-Rev: 41241
2018-04-18 09:02:12 +00:00
Shane Carr
49876dffda ICU-13634 Assorted minor fixes. cnumtst is passing.
X-SVN-Rev: 41240
2018-04-18 06:03:29 +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
b4573e4661 ICU-13634 Minor test expectation updates and status variable fixes. intltest format should be mostly working now.
X-SVN-Rev: 41238
2018-04-17 10:58:41 +00:00
Shane Carr
597e3287fc ICU-13135 Fixing and optimizing PluralFormat call site into NumberFormat in order to execute the formatting pipeline only once.
X-SVN-Rev: 41237
2018-04-17 10:18:42 +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
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
f84f0b726e ICU-13634 Cleanup of dcfmapts.cpp and minor code behavior changes.
X-SVN-Rev: 41233
2018-04-14 10:38:59 +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
ce846b6b34 ICU-13678 Renaming Multiplier to Scale.
X-SVN-Rev: 41231
2018-04-14 09:45:39 +00:00
Shane Carr
e0df2775ea ICU-13634 Centralizing data loading for pattern strings.
X-SVN-Rev: 41230
2018-04-14 08:10:45 +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
cd3b2c7d41 ICU-13634 Updating Java test expectations with new behavior for fallback currency display. Other minor ICU4J test updates. All ICU4J tests are passing.
X-SVN-Rev: 41228
2018-04-14 06:17:39 +00:00
Shane Carr
79f4944ecd ICU-13634 Refactoring new percentage parsing code.
X-SVN-Rev: 41227
2018-04-14 05:54:53 +00:00