Shane Carr
9eca171a39
ICU-20954 Fix currency spacing in suffix.
2020-02-06 09:56:32 -08:00
Elango Cheran
1a9fb8ec33
ICU-13836 C++ port of adding exponent for better plurals for compact decimal format
2020-02-05 09:08:48 -08:00
Shane Carr
fe98d870b2
ICU-20418 Adding concise number skeletons in ICU4C
2020-01-14 11:52:27 +01:00
Shane Carr
00946cef43
ICU-20709 Moving rounder call before number properties.
...
- Changes EXCEPT_ZERO notation to hide sign on numbers that round to zero.
- Adds additional tests for this behavior.
2019-11-05 14:43:34 -08:00
Shane Carr
4785f55622
ICU-20562 Adding toDecimalNumber method to C++ FormattedNumber.
2019-08-14 16:59:09 -07:00
Shane Carr
513b0c20b0
ICU-13743 Adding number permutation test.
...
Adds a test suite in C++ and Java to test many permutations of options in NumberFormatter.
2019-08-12 23:34:51 -07:00
Shane Carr
1ef18dc761
ICU-20708 Fixing edge cases with negative infinity and NaN.
2019-07-23 15:03:49 -07:00
Shane Carr
6daab85db4
ICU-20429 Renaming [Number->Formatted]StringBuilder and refactoring.
...
- StringSegment, ICU4C:
* Moved to top icu namespace
* Compilation unit renamed to string_segment.
- NumberStringBuilder, C and J:
* Moved to main icu namespace
* Compilation unit renamed to formatted_string_builder
* Renamed class to FormattedStringBuilder
- Moves nextPosition logic of NumberStringBuilder to helper class
2019-04-05 20:08:07 -05:00
Shane F. Carr
13889bece1
ICU-20511 Merge maint/maint-64 to master
2019-03-22 11:16:43 -07:00
Shane Carr
2e846616c4
ICU-20499 Fixing code path for plural form in MutablePatternModifier.
2019-03-14 02:02:52 -07:00
Shane Carr
cda7ca7e83
ICU-20469 Adding user guide for number skeletons.
...
Also fixes a minor bug in the syntax and adds tests.
2019-03-08 16:32:47 -08:00
Shane Carr
b36dbedf34
ICU-20417 Adding parity between NoUnit and MeasureUnit Percent for short forms.
...
- Use Percent pattern for MeasureUnit Percent instead of the short or narrow form pattern from CLDR.
2019-02-21 02:28:51 -06:00
Shane Carr
8a56b89b03
ICU-20360 Testing and fixing stack overflow in numparse.
2019-02-07 23:03:41 -08:00
Shane Carr
db94f46377
ICU-13800 Adding clone() on [Un]LocalizedNumber[Range]Formatter.
...
- Returns a LocalPointer that can be converted to std::unique_ptr.
2019-01-25 15:29:21 -08:00
Shane Carr
768b577e6a
ICU-20138 Adding FormattedValue APIs in C, C++, and Java.
...
- Wires up FormattedNumber[Range] in applicable languages.
- Adds new header files and tests, with minor cleanup to old tests.
- Adds code to guarantee terminating NUL in FormattedNumber[Range].
- Cleanup of API docs for inherited methods in FormattedNumber[Range].
2019-01-10 17:02:49 -06:00
Shane Carr
74bbf9e381
ICU-13267 Implementing MEASURE_UNIT field.
...
Adds plumbing to trim whitespace near the FormattedNumber API boundary.
That plumbing requires a change to dependencies.txt.
2018-11-15 21:37:32 -07:00
Shane Carr
11a559f319
ICU-13267 Refactoring field position testing logic into helper function.
...
Makes future field position logic easier to test.
2018-11-08 17:13:29 -07:00
Shane Carr
8018eb84e7
ICU-13701 Adding custom logic for nickel rounding, C and J.
...
Avoids expensive arithmetic when performing nickel rounding for currencies such as CAD, CHF, and DKK.
2018-10-29 16:28:42 -07:00
Jeff Genovy
5a34bfb151
ICU-20209 Fix build failures on Windows with std::atomic not in enclosing namespace std
...
Also: Change to use the ICU namespace macro instead, and skip doxygen as well.
2018-10-29 15:07:05 -07:00
Shane Carr
cab92db338
ICU-20050 Fixing memory leaks in move and copy assignment in Number*Formatter.
2018-09-27 14:27:40 -07:00
Shane Carr
4fa633e9ae
ICU-11276 Fixing pluralRanges data loading and adding more tests.
2018-09-27 14:27:40 -07:00
Shane Carr
dfd13867b2
ICU-11276 Adding test cases and more API coverage.
2018-09-27 14:27:40 -07:00
Shane Carr
7155e1fbcf
ICU-11276 Adding number range spacing heuristic and fixing data loading.
2018-09-27 14:27:40 -07:00
Shane Carr
9109a388f4
ICU-11276 Adding C++ base implementation of NumberRangeFormatter, including unit test.
2018-09-27 14:27:39 -07:00
Shane Carr
2e2805df9a
ICU-13697 Renaming numparse_unisets.h to static_unicode_sets.h and refactoring to guarantee safety in no-data builds.
...
X-SVN-Rev: 41389
2018-05-16 22:46:40 +00:00
Shane Carr
b347a140ec
ICU-13742 Implementing number skeletons in MessageFormat.
...
X-SVN-Rev: 41377
2018-05-15 00:05:04 +00:00
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
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
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
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
ce846b6b34
ICU-13678 Renaming Multiplier to Scale.
...
X-SVN-Rev: 41231
2018-04-14 09:45:39 +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
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
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
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
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
f5d2257d34
ICU-13634 Implementing localized pattern converter and other pieces.
...
X-SVN-Rev: 41104
2018-03-14 10:41:27 +00:00
Shane Carr
9759fc597f
ICU-13574 Merging trunk to branch
...
X-SVN-Rev: 40993
2018-02-27 07:32:38 +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
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
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
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
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
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