Steve Lawrence
3edd9c828a
ICU-22303 Support parsing infinity/NaN when decimal pattern match is required
...
If a DecimalFormat pattern contains a decimal point and
setDecimalPatternMatchRequired is true, then DecimalFormat parse() fails
to parse infinity/NaN representations. This is because infinity/NaN
parsing does not set the HAS_DECIMAL_SEPARATOR_FLAG and so the
RequireDecimalSeparatorValidator fails.
This modifies the RequireDecimalSeparatorValidator so that it does not
fail if the INFINITY or NAN flags are set, making it so decimal
separators are not required if the infinity/NaN representations are
parsed.
2025-03-19 16:19:41 -07:00
Frank Tang
e025466e3a
ICU-22983 Fix DecimalQuantity::shiftLeft ubsan issue
...
ICU-22983 Add java tests and comments
2024-11-27 17:33:34 -08:00
Fredrik Roubert
0178a07a26
ICU-22793 Clang-Tidy: google-readability-casting
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-07-04 22:32:12 +02:00
Markus Scherer
b6dcc95d3c
ICU-21833 remove redundant void parameter lists
...
See #2351
2023-03-02 09:31:57 -08:00
Fredrik Roubert
2de88f9d9c
ICU-21833 Replace UChar with char16_t in all C++ code.
2023-02-06 19:27:44 +01:00
Fredrik Roubert
030fa1a479
ICU-21148 Consistently use standard lowercase true/false everywhere.
...
This is the normal standard way in C, C++ as well as Java and there's no
longer any reason for ICU to be different. The various internal macros
providing custom boolean constants can all be deleted and code as well
as documentation can be updated to use lowercase true/false everywhere.
2022-09-07 20:56:33 +02:00
Rich Gillam
58a51495dd
ICU-22088 Various fixes to make dealing with NUMBERING_SYSTEM formatters easier.
2022-07-28 16:18:01 -07:00
Shane F. Carr
f39cf84d62
ICU-21556 Support currency as decimal separator in patterns
...
See #1711
2021-09-22 12:34:05 -05:00
Shane F. Carr
fd5c76edbd
ICU-20425 Strip trailing zeros from Java rounding increment
...
See #1726
2021-09-21 22:28:06 -05:00
Peter Varga
80d42a13fc
ICU-21734 Add missing overrides in tests
2021-09-07 13:56:33 -07:00
Corey Taylor
0912b85193
ICU-10997 Port test case for 10997 currency formatting to icu4c
2020-11-05 23:17:33 -06:00
Shane F. Carr
59cdbe1f53
ICU-21232 Improve performance of DecimalFormat#parse on long numbers
2020-08-27 14:33:05 -05:00
John Wilcock
6fe86f3934
ICU-21173 Add support for more currency variants. ICU4C equivalent of…
...
See #1184
2020-07-03 04:51:15 +02:00
John Wilcock
9219c6ae03
ICU-13733 Added test for mismatching currency format for strict-mode parsing
...
See #1169
2020-06-30 02:22:57 +02:00
Shane F. Carr
3ff6627ce6
ICU-21134 Copy additional data when toNumberFormatter is used
...
See #1156
2020-05-28 22:33:58 -05:00
Shane Carr
1e24bcd721
ICU-20956 Fix monetary symbol getters in DecimalFormat
...
See #987
2020-03-23 20:12:14 -05:00
Shane Carr
e572de5516
ICU-20961 Return correct currency plural pattern from DecimalFormat
2020-03-04 19:43:57 -08:00
Elango Cheran
2b32778611
ICU-13734 Adding tests for DecimalFormat strict mode handling of flexible whitespace
2019-10-09 17:52:40 -07:00
Elango Cheran
3b99d07581
ICU-13735 Adding tests for DecimalFormat grouping getters
2019-09-27 11:05:32 -07:00
Azamshul Azizy
5174ad5511
ICU-20631 Fix desired currency not set for some NumberFormat currency styles
2019-06-10 11:09:21 -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
ffd8baf16d
ICU-20484 Narrow currency symbol should fall back to short symbol, C and J.
...
- Includes fixes to tests.
2019-03-08 17:06:16 -08:00
Shane Carr
68168a6067
ICU-13731 Adding test for default currency symbol.
2019-02-18 21:29:51 -08:00
Shane Carr
01a24ff78f
ICU-11725 Promoting tech-previews in DecimalFormat to @draft.
...
- Changes Java DecimalFormat boolean get* methods to is*.
- Makes the new draft methods non-virtual.
- Removes obsolete template class in header file.
- Adds proper U_HIDE tags in unum.h and decimfmt.h
2019-02-14 13:50:03 -08:00
Shane Carr
1f7d8ababe
ICU-20358 Clean up grouping resolution in DecimalFormat#toPattern().
2019-01-18 17:40:49 -08:00
Shane F. Carr
ac359112a1
ICU-20348 Fixing DecimalFormat set affix currency behavior.
...
- Includes minor changes to tests.
2019-01-17 11:32:38 -08:00
Shane Carr
1e4a8d3c29
ICU-20186 Adding test for semicolon behavior and spacing in DecimalFormat.
2018-11-26 18:49:32 -06:00
Shane
e5bca0c9f7
ICU-20073 Do not parse stray percent sign in strict mode. ( #145 )
2018-09-27 14:27:41 -07:00
Shane
a8a6ffdb92
ICU-20037 Fixing ScientificMatcher integer overflow. ( #138 )
...
Also restricts parsing to read only one exponent per string.
2018-09-27 14:27:41 -07:00
Shane Carr
4bc6ad328b
ICU-13850 Fixing behavior of ICU4C DecimalFormat#setCurrency() to accept an empty string.
...
X-SVN-Rev: 41549
2018-06-23 02:09:42 +00:00
Shane Carr
3f7a4aa202
ICU-13840 Fixing memory overflow issue in number_decimalquantity.cpp and adding tests.
...
X-SVN-Rev: 41541
2018-06-19 21:52:52 +00:00
Shane Carr
dd7667d330
ICU-13804 Making number parsing code more robust when given empty symbol strings.
...
X-SVN-Rev: 41497
2018-06-01 00:31:54 +00:00
Shane Carr
58b7fe2e32
ICU-13777 Adding tests to make sure currency long names round-trip through parsing.
...
X-SVN-Rev: 41446
2018-05-24 04:16:35 +00:00
Shane Carr
2af33b7796
ICU-13763 Makes FieldPositionIterator offset by input string length in DecimalFormat, restoring ICU 61 behavior.
...
X-SVN-Rev: 41442
2018-05-23 21:08:53 +00:00
Shane Carr
c2412adb1e
ICU-11626 Fixes ICU4C CurrencyPluralInfo unit tests. Also fixes a memory leak in CurrencyPluralInfo implementation.
...
X-SVN-Rev: 41431
2018-05-22 20:47:19 +00:00
Norbert Runge
2627d76fbe
ICU-11640 Add test for triple currency digit prefix.
...
X-SVN-Rev: 41412
2018-05-18 20:17:33 +00:00
Shane Carr
649ce80f42
ICU-13740 Moving ICU4C data-driven number test to its own file, like in Java. De-clutters numfmtst.cpp. No behavior changes.
...
X-SVN-Rev: 41397
2018-05-17 03:04:41 +00:00
Shane Carr
cb34c90168
ICU-13737 Backpedaling on strict mode scientific parsing behavior change (do NOT require an exponent when parsing).
...
X-SVN-Rev: 41378
2018-05-15 21:14:09 +00:00
Andy Heninger
b2c77dc391
ICU-11020 Test11020(), port from Java. Rounding in Scientific Format.
...
X-SVN-Rev: 41372
2018-05-13 01:26:42 +00:00
Andy Heninger
a6da272f2d
ICU-11913 Port Test11913() from Java. Big Decimal formatting w more than 309 digits.
...
X-SVN-Rev: 41371
2018-05-13 01:07:24 +00:00
Andy Heninger
a1c0ac5b14
ICU-11647 Port Test11647() from Java - pattern w four currency symbols.
...
X-SVN-Rev: 41370
2018-05-12 22:37:33 +00:00
Craig Cornelius
01c86126de
ICU-13148 Add test for parsing grouping separators
...
X-SVN-Rev: 41353
2018-05-08 01:21:56 +00:00
Andy Heninger
5fe126b793
ICU-12753 Add PatternDecimalPoint() test.
...
X-SVN-Rev: 41350
2018-05-08 00:14:27 +00:00
Markus Scherer
9be84eb03c
ICU-11626 port NumberFormatTest.TestCurrencyPluralInfoAndCustomPluralRules to C++
...
X-SVN-Rev: 41349
2018-05-07 23:54:36 +00:00
Andy Heninger
e53fdc14a6
ICU-11025 Add Test11025_CurrencyPadding()
...
X-SVN-Rev: 41348
2018-05-07 23:45:11 +00:00
Craig Cornelius
16472502b5
ICU-11649 Add test for Decimal Format of Currencies
...
X-SVN-Rev: 41347
2018-05-07 23:40:14 +00:00
Craig Cornelius
aeaeb8397b
ICU-11648 Re-add test for DecimalFormat::toPattern
...
X-SVN-Rev: 41346
2018-05-07 23:29:05 +00:00
Craig Cornelius
614a3441db
ICU-11648 Reverting commit r11336
...
X-SVN-Rev: 41345
2018-05-07 23:20:37 +00:00
Andy Heninger
1e375dbbcc
ICU-13056 NumberFormatTest Test GroupingSize
...
X-SVN-Rev: 41343
2018-05-07 23:05:50 +00:00
Markus Scherer
3f5950349a
ICU-12961 port NumberFormatTest.TestLocalizedPatternSymbolCoverage to C++
...
X-SVN-Rev: 41341
2018-05-07 23:03:56 +00:00