Commit Graph

29711 Commits

Author SHA1 Message Date
Shane Carr
aa88b7a590 ICU-13597 Reverting formatting changes to unicode/numberformatter.h introduced by r41156
X-SVN-Rev: 41161
2018-03-28 00:39:28 +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
Shane Carr
46c4709a94 ICU-13597 Bug fix: fraction digits were being marked as the INTEGER field in ICU4C.
X-SVN-Rev: 41158
2018-03-27 05:34:22 +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
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
Shane Carr
4c07b01a46 ICU-13661 Adding "scope" option to IcuTestErrorCode.
X-SVN-Rev: 41151
2018-03-24 05:41:10 +00:00
Shane Carr
7da9e75441 ICU-8610 C++ number skeleton code is building. Testing is next.
X-SVN-Rev: 41144
2018-03-23 10:07:38 +00:00
Shane Carr
52c665a2bd ICU-8610 More general progress in C++; generation code is largely implemented. Probably not building yet.
X-SVN-Rev: 41143
2018-03-23 07:51:52 +00:00
Shane Carr
d8f2d8ce6e ICU-8610 Dirty commit of C++ work so far. Probably does not build.
X-SVN-Rev: 41142
2018-03-23 06:46:19 +00:00
Shane Carr
c725920cff ICU-8610 Refactoring and renaming entities in Java implementation. Adding lots of comments. Should be ready to start C++ port.
X-SVN-Rev: 41141
2018-03-23 04:40:01 +00:00
Shane Carr
fa6c8972ea ICU-8610 Removing last bit of old hash map data structure from number skeleton code.
X-SVN-Rev: 41140
2018-03-23 03:44:18 +00:00
Shane Carr
1c034cea33 ICU-8610 Refactoring stem switch statement to use helper methods.
X-SVN-Rev: 41139
2018-03-23 01:54:25 +00:00
Shane Carr
929b26360d ICU-8610 Changing parsing state variable from "CharSequence content" to "StringSegment segment" for easier portability. In C++, the segment will be marked const in the arguments.
X-SVN-Rev: 41138
2018-03-23 01:14:56 +00:00
Shane Carr
b4ad6242b3 ICU-8610 Changing to CharsTrie implementation for stem lookup for better portability to C++.
X-SVN-Rev: 41137
2018-03-23 00:58:31 +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
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
369f3484d8 ICU-13644 Minor refactoring changes in ICU4J.
X-SVN-Rev: 41129
2018-03-21 01:37:18 +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
9828c56014 ICU-13634 Fixing remaining build warnings. In principle, formatting should work fully. Not yet tested.
X-SVN-Rev: 41109
2018-03-16 09:20:43 +00:00
Shane Carr
00a23a07f7 ICU-13634 The property mapper appears to be basically functional; data passes from the old API through the mapper into the new API and then back out through the old API again.
X-SVN-Rev: 41108
2018-03-15 10:08:26 +00:00
Shane Carr
1a95c170d2 ICU-13634 Number property mapper is building. Currently there is a linker error.
X-SVN-Rev: 41107
2018-03-15 07:46:56 +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
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
3ba34b82fb ICU-13634 Adding class for slow exhaustive number tests and adding a test for ICU-13616
X-SVN-Rev: 41102
2018-03-14 06:10:22 +00:00
Shane Carr
b30a6f0df1 ICU-13634 Filling in more methods in decimfmt.cpp
X-SVN-Rev: 41100
2018-03-13 10:11:36 +00:00
Shane Carr
8a50c335fa ICU-13634 Adding new field structure to DecimalFormat and wiring up constructors.
X-SVN-Rev: 41099
2018-03-13 09:25:41 +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
3487cc4331 ICU-13634 Adding docstring to CompactData.java
X-SVN-Rev: 41085
2018-03-08 07:15:29 +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
3681a6803b ICU-13574 Replacing decimfmt.cpp and compactdecimalformat.cpp with new, empty files. Removing most private and internal functions from decimfmt.h, and updating call sites to use newer API.
X-SVN-Rev: 41063
2018-03-03 08:26:58 +00:00
Shane Carr
ef04891b49 ICU-13574 Adding U_OVERRIDE to decimfmt.h and other assorted changes in that file.
X-SVN-Rev: 41062
2018-03-03 07:42:26 +00:00
Shane Carr
a33db79f8d ICU-13574 Merging trunk to branch
X-SVN-Rev: 41061
2018-03-03 07:22:22 +00:00
Shane Carr
6b8d9a56ed ICU-13620 Adding comment.
X-SVN-Rev: 41057
2018-03-03 05:35:31 +00:00
Shane Carr
d3aecc8bf4 ICU-13620 Fix typo.
X-SVN-Rev: 41056
2018-03-03 05:28:05 +00:00
Shane Carr
afa9ac8b77 ICU-13620 Making MeasureUnit.getAvailable(type) return a Collection-based instead of Set-based data structure for better performance.
X-SVN-Rev: 41055
2018-03-03 05:25:58 +00:00
Shane Carr
c2fa8cacad ICU-8610 Adding more tests; normalized skeleton implementation; minor tweaks.
X-SVN-Rev: 41054
2018-03-03 02:54:24 +00:00
Jeff Genovy
118f3ba5f5 ICU-13581 Update readme for Windows build instructions for VS2015.
X-SVN-Rev: 41053
2018-03-03 02:03:38 +00:00
Jeff Genovy
f35a17992f ICU-13586 Fix build break for Windows.
X-SVN-Rev: 41051
2018-03-02 19:28:51 +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
Markus Scherer
280ecc044c ICU-13581 pool bundles update, take 2 for Java
X-SVN-Rev: 41046
2018-03-02 01:07:57 +00:00
Markus Scherer
cd91ef4293 ICU-13581 pool bundles update
X-SVN-Rev: 41045
2018-03-02 00:41:32 +00:00
Markus Scherer
d55ba6554d ICU-13606 fix Java 6 build breakage
X-SVN-Rev: 41044
2018-03-02 00:37:43 +00:00