Commit Graph

1939 Commits

Author SHA1 Message Date
Shane Carr
bfab81c260 ICU-13526 Refactoring MeasureFormat, CurrencyFormat, and TimeUnitFormat to more directly wrap NumberFormatter.
X-SVN-Rev: 40833
2018-02-03 03:40:09 +00:00
Shane Carr
82a8f8bc68 ICU-13513 A few more compatibility tweaks.
X-SVN-Rev: 40829
2018-01-30 06:08:15 +00:00
Shane Carr
73ac780512 ICU-13513 Conditionally disabling fraction grouping parsing.
X-SVN-Rev: 40827
2018-01-30 05:26:07 +00:00
Shane Carr
79014240bb ICU-13513 Refactoring MutablePatternModifier's LDML parsing logic into a more general place in the code. Adding proper support for sign-always-shown to strict parsing.
X-SVN-Rev: 40826
2018-01-30 03:50:12 +00:00
Shane Carr
10e7c07765 ICU-13513 Merging trunk to branch
X-SVN-Rev: 40825
2018-01-30 02:50:01 +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
Shane Carr
da65d09dd5 ICU-13513 A few more minor fixes before merge.
X-SVN-Rev: 40822
2018-01-30 01:21:56 +00:00
Shane Carr
8d366b982d ICU-13513 Merging trunk to branch
X-SVN-Rev: 40819
2018-01-30 00:59:52 +00:00
Shane Carr
519d2a5a86 ICU-13513 Removing ICU 59 parsing code.
X-SVN-Rev: 40814
2018-01-27 11:45:00 +00:00
Shane Carr
f698c8814b ICU-13513 Fixing various issues uncovered by a full project test. Ant Check is now running clean.
X-SVN-Rev: 40813
2018-01-27 11:21:33 +00:00
Shane Carr
baaf9fea40 ICU-13513 Tweaks to currency matchers, including unit test changes.
X-SVN-Rev: 40802
2018-01-24 10:21:22 +00:00
Shane Carr
49d920d098 ICU-13513 Re-working separator logic to be most highly compatible with previous ICU.
X-SVN-Rev: 40801
2018-01-24 08:59:27 +00:00
Shane Carr
a6a18243b1 ICU-13513 Assorted fixes to AffixPatternMatcher and other classes. Found and fixed exponential loop in non-greedy parser.
X-SVN-Rev: 40797
2018-01-24 02:32:03 +00:00
Shane Carr
77b084f6fa ICU-13513 Adding proper flexible parsing to AffixMatcher. Adding back the tests for this behavior. Tweaking the logic for strict grouping; it still does not entirely work.
X-SVN-Rev: 40791
2018-01-20 11:06:59 +00:00
Shane Carr
b28712d52f ICU-13513 Generalizing UnicodeSetStaticCache to cover more locales.
X-SVN-Rev: 40786
2018-01-19 05:03:44 +00:00
Shane Carr
d0a75c667b ICU-13513 Integrating some of Andy's feedback. Moving code unit vs. code point logic out of the matchers and into the main loop. Moving case folding logic from run-time in StringSegment to build-time. Refactoring to replace booleans with flags at build-time. Further optimizing lead-code-point creation time by adding more fallbacks to the static cache.
X-SVN-Rev: 40784
2018-01-18 10:50:36 +00:00
Shane Carr
a0ed703c5e ICU-13513 Minor formatting changes.
X-SVN-Rev: 40782
2018-01-18 01:02:20 +00:00
Shane Carr
476d2690e8 ICU-13526 Running auto-formatter on MeasureFormat.java and dependencies in advance of upcoming refactor.
X-SVN-Rev: 40772
2018-01-11 00:50:24 +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
a111b4ed90 ICU-13536 Moving the six test tree classes from public packages to "dev" packages.
X-SVN-Rev: 40765
2018-01-08 21:41:15 +00:00
Shane Carr
052408f943 ICU-13513 Finishing merge; fixing merge conflicts in DecimalQuantity_AbstractBCD.java.
X-SVN-Rev: 40752
2017-12-23 03:26:59 +00:00
Shane Carr
bdb19075f8 ICU-13513 Merging trunk to branch (includes the big reformatting commit).
X-SVN-Rev: 40751
2017-12-23 03:13:03 +00:00
Shane Carr
fcc198868e ICU-13524 Reformatting ICU4J number files with 4 spaces.
X-SVN-Rev: 40750
2017-12-23 01:20:31 +00:00
Shane Carr
56574d1042 ICU-13524 Reformatting ICU4J number files with 4 spaces.
X-SVN-Rev: 40749
2017-12-23 01:07:53 +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
Shane Carr
73569e99bd ICU-13443 Making MAX_INT_FRAC_SIG checking consistent between inclusive and exclusive ranges. (Changing all comparisons to be inclusive.)
X-SVN-Rev: 40746
2017-12-20 01:41:08 +00:00
Shane Carr
e98b2e4c4a ICU-13513 Wrapping new number parsing code into DecimalFormat and marking known issues in the test suite.
X-SVN-Rev: 40745
2017-12-20 01:26:50 +00:00
Andy Heninger
fbaef1f3b6 ICU-13512 Fix problem with break iterator cloning.
X-SVN-Rev: 40743
2017-12-18 01:32:19 +00:00
Shane Carr
4a8b840e8f ICU-13513 Improving parser creation time via better static initialization. Finishing locale-sensitive symbols. Other refactoring.
X-SVN-Rev: 40742
2017-12-16 10:04:40 +00:00
Shane Carr
a85f1ba61d ICU-13513 Adding plumbing for "lead chars" smoke test. ~24% performance improvement on parsing (866ns to 656ns).
X-SVN-Rev: 40741
2017-12-16 06:50:35 +00:00
Shane Carr
76cba637ea ICU-13513 The data-driven test is green :)
X-SVN-Rev: 40740
2017-12-16 04:13:43 +00:00
Shane Carr
d63528f437 ICU-13513 More work on affix matchers. Refactoring code for grouping and decimal separators.
X-SVN-Rev: 40739
2017-12-16 02:54:58 +00:00
Shane Carr
788fdfb086 ICU-13513 Re-thinking affix matchers a bit. Affix matchers are to contain only regular characters, not symbols, and let the symbol matchers take care of all the symbols.
X-SVN-Rev: 40738
2017-12-15 00:13:12 +00:00
Shane Carr
8a232528c1 ICU-13513 Continuing down the data-driven test file. Mainly currency improvements.
X-SVN-Rev: 40735
2017-12-14 10:24:35 +00:00
Shane Carr
68340c8464 ICU-13513 Down to line 916 in the data-driven test file.
X-SVN-Rev: 40734
2017-12-14 07:04:41 +00:00
Shane Carr
5c054df085 ICU-13495 Optimizing chooseMultiplierAndApply method implementation.
X-SVN-Rev: 40732
2017-12-14 00:47:43 +00:00
Shane Carr
a0de8d89c5 ICU-13513 Starting to tie in with existing code. Working through the data-driven test file first.
X-SVN-Rev: 40726
2017-12-13 10:04:56 +00:00
Shane Carr
47d7ebe968 ICU-13513 Initial modular framework for number parsing.
X-SVN-Rev: 40725
2017-12-13 05:03:28 +00:00
Andy Heninger
d4206fa2e5 ICU-13447 Document RBBI: getRuleStatus() behavior when going past the end of the input text.
X-SVN-Rev: 40700
2017-12-05 22:56:31 +00:00
Shane Carr
ceca3c430c ICU-13492 Fixing currency fraction length fallbacks in the DecimalFormat-to-NumberFormatter mapping function.
X-SVN-Rev: 40684
2017-12-01 23:03:52 +00:00
Peter Edberg
c61c9609a3 ICU-13478 Fix J SimpleDateFormat handling of pattern fields b,bb
X-SVN-Rev: 40680
2017-12-01 00:21:53 +00:00
Shane Carr
3a1ee31d76 ICU-13442 Fixing checks for whether or not grouping is enabled. A grouping size of zero means that grouping is disabled.
X-SVN-Rev: 40677
2017-11-29 23:44:28 +00:00
Shane Carr
9adfad0bdb ICU-13442 Set grouping sizes to 0 instead of -1 when disabling grouping.
X-SVN-Rev: 40673
2017-11-17 00:23:59 +00:00
Shane Carr
f48ecca6f7 ICU-13477 Tweak the DecimalFormat mapping function to correctly handle positive prefix and suffix overrides.
X-SVN-Rev: 40672
2017-11-16 23:25:16 +00:00
Shane Carr
7c59127769 ICU-13309 Changing number parsing to accept only horizontal whitespace, not vertical whitespace or control characters.
X-SVN-Rev: 40646
2017-10-26 21:53:50 +00:00
Yoshito Umaoka
f6e3124e74 ICU-13445 Pattern space handling in localized GMT format parser. Applied a fix to ICU4J equivalent to the ICU4C fix done by #13374. Also made a small fix in the previous ICU4C change to prevent buffer overrun with unexpected input.
X-SVN-Rev: 40642
2017-10-25 23:41:57 +00:00
Markus Scherer
01f2f5dd99 ICU-13418 fix lowercase typo on UCharacter.toTitleCase() methods
X-SVN-Rev: 40617
2017-10-12 16:47:03 +00:00
Andy Heninger
94d78190a5 ICU-9954 review fixes, changes to comments only.
X-SVN-Rev: 40610
2017-10-10 21:39:12 +00:00
Shane Carr
6f5bfa5769 ICU-13310 Improving backwards compatibility of scientific notation formatting.
X-SVN-Rev: 40575
2017-10-05 22:33:45 +00:00
Shane Carr
f0e9b357c2 ICU-13368 Fixing serialization test failure caused by r40561.
X-SVN-Rev: 40574
2017-10-05 22:32:41 +00:00