Commit Graph

7565 Commits

Author SHA1 Message Date
Shane Carr
0a0d99ebc8 ICU-13662 Improving NumberFormatter field position method names and behavior.
X-SVN-Rev: 41313
2018-05-03 01:34:19 +00:00
Shane Carr
215417117e ICU-13437 Adding error codes to NumberFormatter terminal methods.
X-SVN-Rev: 41296
2018-04-30 21:07:35 +00:00
Markus Scherer
a4e66ded6d ICU-13630 switch from IdnaTest.txt to IdnaTestV2.txt new in Unicode 11 see Unicode PRI 375
X-SVN-Rev: 41294
2018-04-30 03:17:11 +00:00
Shane Carr
28e9f69378 ICU-11897 Adding tests for localized pattern separator symbol.
X-SVN-Rev: 41292
2018-04-28 07:27:02 +00:00
Shane Carr
d90be53c5b ICU-12175 Adding tests for compact currency support in ICU4C CompactDecimalFormat.
X-SVN-Rev: 41290
2018-04-28 06:15:41 +00:00
Shane Carr
ae665d87ef ICU-12052 Adding test case for null-pointer bug in unum_parseDoubleCurrency.
X-SVN-Rev: 41289
2018-04-28 05:50:52 +00:00
Shane Carr
63cade69a6 ICU-11230 Updating "9 9" test in numberformattestspecification.txt
X-SVN-Rev: 41288
2018-04-28 05:23:38 +00:00
Shane Carr
3ff3c3f8bb ICU-13424 Fixing locale-sensitive tests in cnumtst.c
X-SVN-Rev: 41287
2018-04-28 03:53:57 +00:00
Shane Carr
51ad01151d ICU-10584 Adding test for compact decimal rounding behavior in ICU4C
X-SVN-Rev: 41284
2018-04-28 01:38:18 +00:00
Shane Carr
e77603e3c3 ICU-13725 Fixing various number test failures in MSVC.
X-SVN-Rev: 41281
2018-04-26 01:33:59 +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
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
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
f412770e9d ICU-13634 A few more DecimalFormat optimizations.
X-SVN-Rev: 41257
2018-04-21 06:00:56 +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
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
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
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
ce846b6b34 ICU-13678 Renaming Multiplier to Scale.
X-SVN-Rev: 41231
2018-04-14 09:45:39 +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
79f4944ecd ICU-13634 Refactoring new percentage parsing code.
X-SVN-Rev: 41227
2018-04-14 05:54:53 +00:00
Shane Carr
354afa4e79 ICU-13697 Adding data-loading logic for parseLenients sets in CLDR. Ties the sets in with number and currency parsing in ICU4C and ICU4J.
X-SVN-Rev: 41223
2018-04-12 10:59:37 +00:00
Shane Carr
af0f8e62e4 ICU-13634 In accordance with ICU-TC meeting, changing percent parsing behavior to be closer to that of ICU 60.
X-SVN-Rev: 41222
2018-04-12 06:49:24 +00:00
Shane Carr
6c1714870f ICU-13634 Updating test expectations for strict currency position in strict mode. Other minor changes. All but one test is now passing in numfmtst.cpp.
X-SVN-Rev: 41220
2018-04-12 05:15:19 +00:00
Shane Carr
5f57f04466 ICU-13634 Updating test expectations for the default currency long name.
X-SVN-Rev: 41218
2018-04-12 04:04:23 +00:00
Shane Carr
2c6bf0d77e ICU-13634 Refactoring affix-getting code to avoid the need to save the micro-props. Other assorted minor changes.
X-SVN-Rev: 41216
2018-04-11 11:10:52 +00:00
Shane Carr
cd92fa2c88 ICU-13634 Changing DecimalQuantity#toNumberString() to be DecimalQuantity#toScientificString() with slightly friendlier output syntax for better compatibility. More currency tweaks.
X-SVN-Rev: 41215
2018-04-11 05:52:58 +00:00
Shane Carr
a901b5c04a ICU-13634 Fixing more assorted currency parsing issues.
X-SVN-Rev: 41214
2018-04-11 02:18:13 +00:00
Andy Heninger
2f06ce3799 ICU-13692 add test for slow RBBI word boundaries in very long words.
X-SVN-Rev: 41213
2018-04-09 21:42:14 +00:00
Shane Carr
b9925e084e ICU-13634 Fixing various issues in order to make currencies round-trip in strict mode.
X-SVN-Rev: 41212
2018-04-07 11:10:08 +00:00
Shane Carr
06485f3b6b ICU-13634 Fixing CurrencyPluralInfo support in formatting, allowing for currency long names to be formatted.
X-SVN-Rev: 41211
2018-04-07 08:49:11 +00:00
Andy Heninger
0b8b2750e3 ICU-13194 RBBI safe rule synthesis, merge to trunk.
X-SVN-Rev: 41210
2018-04-07 00:03:36 +00:00
Markus Scherer
813b76c636 ICU-13630 Unicode 11 beta (data from apr03); merged from branches/markus/uni11
X-SVN-Rev: 41206
2018-04-06 18:42:58 +00:00
Andy Heninger
b58e06a604 ICU-13630 WSegSpace, use word property value in rules definitions.
X-SVN-Rev: 41205
2018-04-06 17:31:18 +00:00
Shane Carr
73f93a457a ICU-13634 Fixing DecimalQuantity call sites, first written in r41063, r41064, and r41098. RNBF test is passing again.
X-SVN-Rev: 41204
2018-04-06 09:35:16 +00:00
Shane Carr
b5fb39f302 ICU-13672 Adding the toDouble test to Java with comments.
X-SVN-Rev: 41201
2018-04-05 23:44:03 +00:00
Shane Carr
fe0725cd2a ICU-13678 Changing Multiplier to use decNumber instead of double, in order to fix some unit tests. Refactored call sites to use a common DecNum wrapper class with constructors for string, double, and BCD.
X-SVN-Rev: 41198
2018-04-05 21:54:04 +00:00
Andy Heninger
88457a6820 ICU-13630 ICU4J RBBI updates for Unicode 11.
X-SVN-Rev: 41196
2018-04-05 18:32:07 +00:00
Andy Heninger
4e097dc49f ICU-13630 Update RBBI for Unicode 11 data.
X-SVN-Rev: 41194
2018-04-04 23:37:43 +00:00
Shane Carr
a2a7982216 ICU-13678 Adding multiplier to skeleton string syntax.
X-SVN-Rev: 41193
2018-04-04 01:26:18 +00:00
Markus Scherer
03303a6cb6 ICU-13630 Unicode 11 beta data apr02 (security apr03), fix ICU4C tests except RBBI
X-SVN-Rev: 41191
2018-04-03 23:09:49 +00:00
Shane Carr
8ea876aadb ICU-13678 Cleaning up multiplier implementation and adding public API.
X-SVN-Rev: 41188
2018-04-03 04:38:16 +00:00
Shane Carr
921355c6f0 ICU-13634 Refactoring the two separate currency matchers into a single unified CombinedCurrencyMatcher. Allows for easy implementation of currency spacing (included in this changeset) and possibly other currency-related parsing features in the future.
X-SVN-Rev: 41181
2018-03-31 05:18:51 +00:00
Shane Carr
7f9de6f1db ICU-13634 Fixing resolution of negative and percent signs in parsing; adding custom sign support to ScientificMatcher; and other minor fixes.
X-SVN-Rev: 41180
2018-03-31 03:10:44 +00:00
Shane Carr
db9c74b3f4 ICU-13634 More assorted number formatting/parsing fixes.
X-SVN-Rev: 41179
2018-03-30 10:37:24 +00:00
Shane Carr
8d8f846755 ICU-13634 Fixing significant digit display on zero when minInt is zero.
X-SVN-Rev: 41178
2018-03-30 08:21:06 +00:00
Shane Carr
02669ad1bc ICU-13634 Fixes for NumberFormatTest/TestExponential.
X-SVN-Rev: 41177
2018-03-30 07:22:24 +00:00
Shane Carr
af4435133a ICU-13634 Merging trunk to branch
X-SVN-Rev: 41176
2018-03-30 07:17:11 +00:00
Shane Carr
888f884f3c ICU-13672 Enabling double_conversion StringToDoubleConverter and using it in DecimalQuantity's toDouble() function.
X-SVN-Rev: 41175
2018-03-30 07:12:25 +00:00
Shane Carr
e5bda1eb0e ICU-13634 Various fixes to fix remaining compatibility issues in data-driven test. Includes fix for a memory sanitizer issue.
X-SVN-Rev: 41174
2018-03-30 04:28:53 +00:00
Andy Heninger
5264c153c1 ICU-13194 RBBI monkey test, add description of run parameters.
X-SVN-Rev: 41165
2018-03-28 04:55:24 +00:00
Shane Carr
2ede84ce47 ICU-13597 Fixing safety of toUnicodeString() readonly aliases by moving that behavior to a new method, toTempUnicodeString().
X-SVN-Rev: 41164
2018-03-28 03:42:12 +00:00
Shane Carr
1b4670fd29 ICU-13634 Merging trunk to branch
X-SVN-Rev: 41162
2018-03-28 01:08:47 +00:00
Shane Carr
7d4b54dfc3 ICU-13597 Small API tweaks.
X-SVN-Rev: 41160
2018-03-27 06:07:17 +00:00
Shane Carr
395463d7a7 ICU-13597 Adding support for field positions to the NumberFormatter C API.
X-SVN-Rev: 41159
2018-03-27 05:36:04 +00:00
Andy Heninger
e5ab76b130 ICU-13194 RBBI safe tables, added another test.
X-SVN-Rev: 41157
2018-03-27 05:03:10 +00:00
Shane Carr
3a55650b8c ICU-13597 Adding initial C API for NumberFormatter. Not yet fully featured.
X-SVN-Rev: 41156
2018-03-27 01:58:26 +00:00
Andy Heninger
b1b0be93ea ICU-13194 RBBI safe tables, all tests passing!
X-SVN-Rev: 41155
2018-03-26 23:01:16 +00:00
Shane Carr
3574a63853 ICU-8610 API test is passing with the skeletons in C++. :)
X-SVN-Rev: 41154
2018-03-24 08:06:34 +00:00
Shane Carr
fabc913f47 ICU-8610 Adding skeletons to NumberFormatterApiTest. The test currently runs with a handful of failures that need investigation.
X-SVN-Rev: 41153
2018-03-24 07:36:18 +00:00
Shane Carr
a8f2471248 ICU-8610 Adding tests for number skeletons in C++. Adding error code handling to the setToDecNumber setter on DecimalQuantity. Refactoring char-to-uchar conversion in skeleton implementation code.
X-SVN-Rev: 41152
2018-03-24 05:46:28 +00:00
Andy Heninger
dc3a13b459 ICU-13660 add atomic_inc & dec tests.
X-SVN-Rev: 41148
2018-03-23 22:51:39 +00:00
Shane Carr
23d76d8863 ICU-13634 Adding integer overflow logic to ICU4C number pipeline in places where it is in ICU4J.
X-SVN-Rev: 41136
2018-03-23 00:56:16 +00:00
Andy Heninger
62dd66a13d ICU-13194 RBBI safe rules, work in progress.
X-SVN-Rev: 41135
2018-03-22 17:31:00 +00:00
Shane Carr
e3180662e2 ICU-13634 Parsing wrapper is working; data-driven file is updated and passing. The C++ and Java implementations have almost identical behavior according to the data-driven test file, with the only differences seeming to involve overflow and extremely large numbers.
X-SVN-Rev: 41134
2018-03-21 09:48:55 +00:00
Shane Carr
0b6e991bb0 ICU-13634 C and J, removing the obsolete "optimize" parameter for NumberParserImpl.
X-SVN-Rev: 41132
2018-03-21 06:33:37 +00:00
Shane Carr
01916cad11 ICU-13634 Changes NumberParseMatcher getLeadCodePoints() to smokeTest() in C++ and Java. The new method is more versatile and eliminates the requirement to maintain two code paths for "lead chars" and "no lead chars".
X-SVN-Rev: 41131
2018-03-21 06:30:29 +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
c940df09e7 ICU-13644 Adds move operators and related boilerplate to NumberFormatter classes. Includes a handful of other changes made to these files on my branch for ICU-13634 .
X-SVN-Rev: 41121
2018-03-17 07:24:02 +00:00
Shane Carr
2edb4ec82a ICU-13634 Formatting section of data-driven test file is passing.
X-SVN-Rev: 41120
2018-03-17 07:23:08 +00:00
Shane Carr
4fad01c342 ICU-13634 Adding pipeline for custom currency symbols.
X-SVN-Rev: 41119
2018-03-17 01:31:52 +00:00
Shane Carr
f5d2257d34 ICU-13634 Implementing localized pattern converter and other pieces.
X-SVN-Rev: 41104
2018-03-14 10:41:27 +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
Jeff Genovy
2a2741ff12 ICU-13636 The VS2017 optimizer has issues with this function. Disable optimizations for now as a work-around.
X-SVN-Rev: 41095
2018-03-13 01:10:11 +00:00
Markus Scherer
af6a771267 ICU-13630 implement, test, use emoji property Extended_Pictographic
X-SVN-Rev: 41094
2018-03-12 05:53:02 +00:00
Markus Scherer
1752b5c8c9 ICU-13630 Unicode 11 beta data mar06, API constants for new property values
X-SVN-Rev: 41092
2018-03-09 23:53:02 +00:00
Andy Heninger
0d32dd8f05 ICU-13632 regex out-of-bounds memory reference fix.
X-SVN-Rev: 41088
2018-03-09 18:39:14 +00:00
Andy Heninger
193aa17f08 ICU-13631 Regex Address Sanitizer fix.
X-SVN-Rev: 41086
2018-03-08 18:32:15 +00:00
Norbert Runge
b5e8865ff2 ICU-13581 Make tests work, not crash, when run without ICU data
X-SVN-Rev: 41073
2018-03-06 23:13:49 +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
a33db79f8d ICU-13574 Merging trunk to branch
X-SVN-Rev: 41061
2018-03-03 07:22:22 +00:00
Jeff Genovy
bb915931d0 ICU-13586 No actual code changes. This change cleans up redundancies in the VS project files, and pulls in common or shared settings from a shared 'props' file. This means that you can now change one single file to target either VS2015 or VS2017, instead of needing to change many files. It also allows the VS project files to share common defines as well, meaning that if you need to target something other than Windows 7, you can make one change in one file, instead of needing to make hundreds. Also included in this change are improvements to the VS Solution files in order to properly denote the dependencies of the projects, which might be needed in the future for possible parallel project builds.
X-SVN-Rev: 41049
2018-03-02 03:20:22 +00:00
Andy Heninger
28958a1f14 ICU-13581 Fix AIX porting problem w range for loop.
X-SVN-Rev: 41043
2018-03-01 23:11:18 +00:00
Markus Scherer
4dd5b0f70a ICU-13581 minor dependencies adjustments, add double-conversion files
X-SVN-Rev: 41041
2018-03-01 20:51:00 +00:00
Shane Carr
ef95ed1eab ICU-13443 Changing number error test to use UErrorCode equality instead of UBool equality.
X-SVN-Rev: 41026
2018-03-01 01:02:44 +00:00
Andy Heninger
c589ea8b5d ICU-13447 RBBI: getRuleStatus() behavior, incorporate review comments, clarifying comments and API description.
X-SVN-Rev: 41024
2018-03-01 00:38:41 +00:00
Peter Edberg
3ca0f3beeb ICU-12740 getFieldDisplayName C++ tests
X-SVN-Rev: 41012
2018-02-28 07:26:03 +00:00
Shane Carr
1254850bf9 ICU-13574 Merging trunk to branch
X-SVN-Rev: 41004
2018-02-28 05:44:52 +00:00
Andy Heninger
87291e747a ICU-13447 Add test for break iterator getRuleStatus() at end of iteration.
X-SVN-Rev: 40998
2018-02-27 22:53:26 +00:00
Andy Heninger
887071e232 ICU-13399 Fix thread race in the Unified Cache.
X-SVN-Rev: 40994
2018-02-27 19:27:42 +00:00
Shane Carr
9759fc597f ICU-13574 Merging trunk to branch
X-SVN-Rev: 40993
2018-02-27 07:32:38 +00:00
Markus Scherer
66eb21ec58 ICU-13567 make Arabic number formatting tests work with both native & ASCII digits
X-SVN-Rev: 40988
2018-02-26 23:32:05 +00:00
Peter Edberg
c033aaaf41 ICU-13603 Integrate data from CLDR release-33-alpha for ICU 61rc
X-SVN-Rev: 40980
2018-02-25 01:19:24 +00:00
Markus Scherer
fdbe2f371b ICU-13547 limit nesting depth of UnicodeSet pattern
X-SVN-Rev: 40979
2018-02-23 21:39:23 +00:00
Yoshito Umaoka
44b2617d44 ICU-13548 Fixed a calendar calculation problem with setting week-of-year and year.
X-SVN-Rev: 40966
2018-02-21 21:09:33 +00:00
Yoshito Umaoka
15b2113603 ICU-13566 Support negative daylight savings in SimpleTimeZone.
X-SVN-Rev: 40954
2018-02-20 22:38:21 +00:00
Andy Heninger
f6fbd54e92 ICU-13549 CjkBreakEngine::divideUpDictionaryRange, problems with supplemental character handling.
X-SVN-Rev: 40949
2018-02-18 22:44:18 +00:00
Markus Scherer
555c415e18 ICU-13529 minor test code cleanup
X-SVN-Rev: 40944
2018-02-17 00:19:25 +00:00
Markus Scherer
cf61e9823a ICU-13331 fix Java AlphabeticIndex.addIndexExemplars() for missing index exemplars (test for empty, not just null)
X-SVN-Rev: 40941
2018-02-16 19:48:49 +00:00
George Rhoten
d06d12896c ICU-13529 Make some changes based on review feedback.
X-SVN-Rev: 40939
2018-02-16 18:07:32 +00:00
Jeff Genovy
07d9b3b567 ICU-13171 Enable multi-processor compilation (/MP) for faster builds.
X-SVN-Rev: 40937
2018-02-16 07:21:34 +00:00
Jeff Genovy
9f62b0dada ICU-13171 Update the VS project files to use VS 2017, plus various fixes to get Samples compiling.
Also add explicit defines for WINVER and _WIN32_WINNT for Windows 7 targeting in non-UWP projects.

X-SVN-Rev: 40935
2018-02-16 03:16:03 +00:00
Shane Carr
23872cb601 ICU-11318 Integrating double-conversion into icu4c. Changing both old and new number formatting implementations to call it.
X-SVN-Rev: 40929
2018-02-16 01:25:43 +00:00
Markus Scherer
8ccca58d0c ICU-12911 remove UBiDiProps except inside its .cpp file, and uprv_haveProperties()
X-SVN-Rev: 40923
2018-02-15 19:01:29 +00:00
Peter Edberg
7cf0adb29a ICU-12740 getFieldDisplayName C/C++ initial implementation & C tests; TODO: C++ tests and Java imp
X-SVN-Rev: 40922
2018-02-15 08:38:20 +00:00
Andy Heninger
c25708b4c3 ICU-13569 refresh dev branch from trunk.
X-SVN-Rev: 40917
2018-02-14 23:55:39 +00:00
Shane Carr
c9a3d6244d ICU-13574 Merging trunk to branch
X-SVN-Rev: 40908
2018-02-13 18:36:45 +00:00
Shane Carr
fb26c75df0 ICU-13585 Adding std::move operators to CharString and MaybeStackArray.
X-SVN-Rev: 40904
2018-02-13 02:28:00 +00:00
Shane Carr
1ed7deaa8c ICU-13574 AffixMatcher is working. All simple parsing tests are passing.
X-SVN-Rev: 40903
2018-02-13 02:23:52 +00:00
Andy Heninger
acae049ee1 ICU-13569 rbbi table, remove duplicated states, working for C++.
X-SVN-Rev: 40902
2018-02-13 01:08:29 +00:00
Shane Carr
7b1857d0f3 ICU-13574 Trying to get std::move operator to work on AffixMatcherWarehouse. No luck yet.
X-SVN-Rev: 40895
2018-02-10 15:49:02 +00:00
Shane Carr
afbb37febd ICU-13574 Checkpoint commit. AffixMatcher is mostly implemented.
X-SVN-Rev: 40894
2018-02-10 14:29:26 +00:00
Shane Carr
a335b723c7 ICU-13574 Fixing CurrencyAnyMatcher. Up-to-date with tests.
X-SVN-Rev: 40893
2018-02-10 11:32:18 +00:00
Shane Carr
59587ad9db ICU-13574 Improving object lifecycle of AffixPatternMatcher and helper classes. Should be safe now.
X-SVN-Rev: 40892
2018-02-10 10:57:30 +00:00
Shane Carr
e7a42e17f6 ICU-13574 Adding initial AffixPatternMatcher to ICU4C. Not completely safe yet. Still needs work.
X-SVN-Rev: 40891
2018-02-10 10:01:46 +00:00
Shane Carr
513f123a8c ICU-13574 Adding composition matchers (SeriesMatcher and AnyMatcher) to ICU4C in preparation for affix matchers. Also re-working memory management in getLeadCodePoints().
X-SVN-Rev: 40890
2018-02-10 06:36:07 +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
Andy Heninger
1036ed52e3 ICU-13569 rbbi, refresh from trunk, plus table state compaction, work in progress.
X-SVN-Rev: 40888
2018-02-10 01:31:35 +00:00
Shane Carr
ae263452f6 ICU-13400 Change name of Grouping strategy from WESTERN to THOUSANDS.
X-SVN-Rev: 40887
2018-02-09 22:55:36 +00:00
Markus Scherer
19b494f953 ICU-13515 UTF-8 macro: reduce length of string if it ends with an incomplete sequence
X-SVN-Rev: 40883
2018-02-09 21:01:56 +00:00
Peter Edberg
64aa4beb28 ICU-13538 in ICU4C Islamic cal, use int64_t math for one operation to avoid overflow; add tests in C and J
X-SVN-Rev: 40882
2018-02-09 19:31:12 +00:00
Andy Heninger
0e3d103630 ICU-13569 rbbi char class merging now working, tests passing.
X-SVN-Rev: 40881
2018-02-09 18:53:28 +00:00
Shane Carr
e91ff603de ICU-13574 Adding scientific matcher to ICU4C.
X-SVN-Rev: 40880
2018-02-09 06:57:37 +00:00
Shane Carr
b8bab89cb5 ICU-13574 Implementing final two SymbolMatchers in ICU4C (infinity and padding).
X-SVN-Rev: 40878
2018-02-09 06:30:40 +00:00
Shane Carr
fb3ff21caf ICU-13574 Switching memory strategy to allocate objects as fields in the main class instead of on the heap.
X-SVN-Rev: 40877
2018-02-09 05:47:49 +00:00
Shane Carr
12764fa082 ICU-13574 Adding more matchers derived from SymbolMatcher.
X-SVN-Rev: 40876
2018-02-09 02:35:02 +00:00
Shane Carr
e8e0cdf41d ICU-13568 Fixing memory leak in test.
X-SVN-Rev: 40875
2018-02-09 00:57:30 +00:00
Andy Heninger
4959b9b3a3 ICU-13569 rbbi table compression, work in progress.
X-SVN-Rev: 40873
2018-02-08 21:17:18 +00:00
Shane Carr
8393405113 ICU-13574 Basic parsing tests are passing on the pieces of code written so far, DecimalMatcher and MinusSignMatcher.
X-SVN-Rev: 40872
2018-02-08 09:59:35 +00:00
Shane Carr
2ee42b9288 ICU-13574 Checkpoint commit. Basic NumberParseMatcher implementations in DecimalMatcher and SymbolMatcher. Cleanup in ICU4J.
X-SVN-Rev: 40869
2018-02-08 08:49:50 +00:00
Shane Carr
9337205a54 ICU-13574 Merging trunk to branch
X-SVN-Rev: 40867
2018-02-08 06:07:18 +00:00
Shane Carr
ad348faca9 ICU-13443 Change digit width types to int16_t and change maximum setting to 999. Adds test for this behavior in ICU4C. Also adds the new error code for ICU-13577 .
X-SVN-Rev: 40866
2018-02-08 06:06:08 +00:00
Shane Carr
d5baa61bd2 ICU-13574 Merging trunk to branch
X-SVN-Rev: 40863
2018-02-08 04:05:15 +00:00
Shane Carr
4eff55cc31 ICU-13574 Adding additional logic and tests for ICU4C codePointZero.
X-SVN-Rev: 40862
2018-02-08 04:04:50 +00:00
Shane Carr
535d82cfc0 ICU-13574 Merging trunk to branch
X-SVN-Rev: 40859
2018-02-08 03:18:29 +00:00
Shane Carr
f4a623e94b ICU-13574 Adding getConstDigitSymbol to ICU4C, right now as @internal. Follow-up for promoting to @draft in ICU-13580
X-SVN-Rev: 40858
2018-02-08 03:18:00 +00:00
Shane Carr
e6c23b5d36 ICU-13574 Merging trunk to branch
X-SVN-Rev: 40857
2018-02-08 01:52:56 +00:00
Shane Carr
b18e037531 ICU-13574 Adding codePointZero logic to ICU4C, added to ICU4J in r40091.
X-SVN-Rev: 40856
2018-02-08 01:51:09 +00:00
Andy Heninger
3d4a3fbaa8 ICU-13569 rbbi state table opt, work in progress.
X-SVN-Rev: 40855
2018-02-08 01:42:04 +00:00
Shane Carr
61191ffda3 ICU-13568 Adding assertSuccess in test function.
X-SVN-Rev: 40852
2018-02-07 23:28:56 +00:00
Shane Carr
023af04592 ICU-13568 Fixing uninitialized memory in test code.
X-SVN-Rev: 40851
2018-02-07 22:56:38 +00:00
Steven R. Loomis
4b36c0ad9c ICU-13568 Fix crasher introduced in r40839 (bad test code)
Root cause (why the construction failed) unknown.

X-SVN-Rev: 40850
2018-02-07 22:49:43 +00:00
Andy Heninger
be54542b86 ICU-12677 clean up extra trailing spaces.
X-SVN-Rev: 40844
2018-02-06 21:28:05 +00:00
Shane Carr
bb862e217e ICU-13574 Merging utility classes from old branch to new branch
X-SVN-Rev: 40842
2018-02-06 07:54:52 +00:00
Shane Carr
237acf183a ICU-13574 Porting the parsing utility classes StringSegment and UnicodeSetStaticCache to C++.
X-SVN-Rev: 40841
2018-02-06 07:52:58 +00:00
Shane Carr
5315ad603e ICU-13568 ICU-13400 ICU-13389 ICU-13075 Merging fixes from branch to trunk.
X-SVN-Rev: 40839
2018-02-06 03:15:37 +00:00
Shane Carr
e5cc630590 ICU-13568 ICU-13400 ICU-13389 ICU-13075 NumberFormatter assorted fixes: Adding custom pattern support for currencies. Upgrading grouping API. Adding narrow currency symbol support to ICU4C and API. Fixing behavior when pattern does not have a number placeholder.
X-SVN-Rev: 40838
2018-02-06 03:08:17 +00:00
Andy Heninger
aaebaf90a3 ICU-12677 RBBI, fix incorrect stripping of comments from saved rules.
X-SVN-Rev: 40837
2018-02-03 19:10:50 +00:00
Shane Carr
3dce9dcab9 ICU-13551 Adding EXCEPT_ZERO enum value to SignDisplay.
X-SVN-Rev: 40824
2018-01-30 02:49:07 +00:00
Markus Scherer
0dc85d2408 ICU-13560 make some toUnicode converter check toULength not toUnicodeStatus for continuing after partial sequences; ucnv.cpp framework code only resets toULength after an error
X-SVN-Rev: 40793
2018-01-23 21:32:36 +00:00
Shane Carr
0344ea5118 ICU-13525 Fixing NumberFormatter behavior when unit pattern does not contain an argument.
X-SVN-Rev: 40770
2018-01-10 02:44:23 +00:00
Shane Carr
85d3cf4f2f ICU-13516 Defining behavior when an invalid code point is passed to foldCase.
X-SVN-Rev: 40748
2017-12-22 23:44:35 +00:00
Shane Carr
4d10bf03f5 ICU-13520 Adds compound unit support to NumberFormatter.
X-SVN-Rev: 40747
2017-12-22 00:02:01 +00:00
Markus Scherer
90b7a6e4e8 ICU-13510 test & fix UTF-8->UTF-8 conversion overflow for supplementary characters
X-SVN-Rev: 40715
2017-12-08 21:47:21 +00:00
Markus Scherer
c1a8c3a771 ICU-13510 test & fix UTF-8->UTF-8 conversion overflow
X-SVN-Rev: 40714
2017-12-08 20:46:04 +00:00
Markus Scherer
cf4cb10c3d ICU-13462 fix Script_Extensions for 5 characters: data generator needs to revert them from block scx to sc (merged from maint-60 r40667)
X-SVN-Rev: 40699
2017-12-05 20:53:14 +00:00
Andy Heninger
9a542da329 ICU-13388 remove unused code in break iterator tests.
X-SVN-Rev: 40697
2017-12-05 18:45:53 +00:00
Peter Edberg
6d58ccae2a ICU-13474 Integrate cldr/tags/release-32-0-1.beta1 into ICU, update tests
X-SVN-Rev: 40685
2017-12-02 00:02:56 +00:00
Shane Carr
c67d9d0a4a ICU-13496 Adds missing NumberFormatter test to ICU4C
X-SVN-Rev: 40682
2017-12-01 07:57:05 +00:00
Yoshito Umaoka
edf744f31e ICU-13458 Update logKnownIssue set by #12620 to ignore more test failures.
X-SVN-Rev: 40660
2017-10-31 07:04:33 +00:00
Peter Edberg
71dd84d4ff ICU-12504 in ICU4C Persian cal, use int64_t math for one operation to avoid overflow; add tests in C and J
X-SVN-Rev: 40654
2017-10-29 03:38:05 +00:00
Yoshito Umaoka
4b67416113 ICU-13446 Fixed Chakma date format fractional seconds parsing problem. Removed logKnownIssue from TestTimeZoneFormat.
X-SVN-Rev: 40647
2017-10-26 22:13:13 +00:00
Jeff Genovy
16598e5468 ICU-13436 Fix various typos and spelling mistakes.
X-SVN-Rev: 40645
2017-10-26 21:33:43 +00:00
Steven R. Loomis
42a7565808 ICU-13415 disable std::move testing on AIX/z for now.
X-SVN-Rev: 40641
2017-10-25 22:11:18 +00:00
Markus Scherer
f86f114660 ICU-13428 char* result array was too small for UTF-8 version of 112-UChar Dzongkha (dz) date/time format string
X-SVN-Rev: 40640
2017-10-25 21:25:01 +00:00
Yoshito Umaoka
46dd205917 ICU-13141 tzdata2017c updates. Some patches in Makefile to support the latest Makefile in tzcode2017c. Added logKnownIssue in some test cases. See the ticket for the details.
X-SVN-Rev: 40634
2017-10-25 15:43:29 +00:00
Shane Carr
1ba7875371 ICU-13415 Setting error code in terminal NumberFormatter methods when applicable. Renaming unproposed error codes for consistency with existing error codes in utypes.h.
X-SVN-Rev: 40632
2017-10-25 01:26:48 +00:00
Steven R. Loomis
5e63d2297e ICU-13415 porting: std::isinf/std::isnan back to uprv. also see ICU-13315
X-SVN-Rev: 40629
2017-10-24 22:39:03 +00:00
Yoshito Umaoka
6873ed8e2c ICU-13419 Imported the latest CLDR 32 locale data, updated some test cases.
X-SVN-Rev: 40616
2017-10-12 12:24:55 +00:00
Shane Carr
aca96338b6 ICU-13177 Adding RTTI tests for MeasureUnit class hierarchy.
X-SVN-Rev: 40600
2017-10-07 02:46:49 +00:00
Norbert Runge
b96966a131 ICU-13358 No-data test fixes (cf. BRS task).
X-SVN-Rev: 40599
2017-10-06 23:11:11 +00:00
Norbert Runge
d835c3aac4 ICU-13384 fixes issues found in public header checks and unconfig.h variation check.
X-SVN-Rev: 40592
2017-10-06 16:52:14 +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
Markus Scherer
0b8c83334a ICU-13358 adjust dependencies graph for recently added code
X-SVN-Rev: 40588
2017-10-06 04:55:41 +00:00
Shane Carr
dbf0bfe4a7 ICU-13177 Improving consistency of Unicode string literals in number formatting code.
X-SVN-Rev: 40583
2017-10-06 01:37:59 +00:00
Peter Edberg
dbc623d0d8 ICU-13359 Integrate updated CLDR 32 @13761 for 60rc. The previous issues #13366,#13368,#13374,#13390,#13391 are fixed.
X-SVN-Rev: 40582
2017-10-06 00:46:48 +00:00
Markus Scherer
835b426bec ICU-13390 include unicode/utf16.h when using U16_ macros
X-SVN-Rev: 40577
2017-10-05 23:07:36 +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
Norbert Runge
eaf4de59f4 ICU-13384 Adjusts unit test to work with UCONFIG_NO_BREAK_ITERATION flag set.
X-SVN-Rev: 40569
2017-10-05 16:53:51 +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
Steven R. Loomis
4b9ca817eb ICU-13387 autoconf fixes for disabled tools and tests and draft api
X-SVN-Rev: 40556
2017-10-04 22:41:40 +00:00
Norbert Runge
b6c8bac9bb ICU-13384 Fixes ICU4C header check failures, blacklists files that are C++ only, adds a directory to test script.
X-SVN-Rev: 40549
2017-10-04 19:54:30 +00:00
Yoshito Umaoka
2a76f7596a ICU-13390 Fixed TestTimeZoneRoundTrip test code issue with Chakma digits.
X-SVN-Rev: 40545
2017-10-04 15:34:10 +00:00
Peter Edberg
9d44026761 ICU-13366 spin off the remaining tz offset roundtrip and number roundtrip issues to #13390, 13391; update logKnownIssue
X-SVN-Rev: 40537
2017-10-03 23:20:18 +00:00
Peter Edberg
0065725adc ICU-13366 part 12, fix C SimpleDateFormat::subParse handling of 2-digit years for supplemental chars
X-SVN-Rev: 40536
2017-10-03 20:36:42 +00:00
Andy Heninger
7a72a8f032 ICU-13380 Fixes for memory leaks & other problems found by Address Sanitizer.
X-SVN-Rev: 40529
2017-10-03 04:11:26 +00:00