Commit graph

8106 commits

Author SHA1 Message Date
Frank Tang
b926f52688 ICU-21550 Add zzzz to subdivision if len==2
See #1662
2021-04-07 13:47:42 -05:00
Markus Scherer
152867f7ab ICU-21459 properly guard BytesTrie.Result.getValue()
and clone/copy objects so that objects shared among instances are not modified
and use an atomic int for the C++ refcount
2021-04-06 17:10:46 -07:00
Shane F. Carr
7fd2844d10 ICU-21540 Fix FormattedList test and behavior regression 2021-04-06 16:55:30 -05:00
Jeff Genovy
c5406692bb ICU-21546 Fix warnings from running the samples with MSVC. 2021-04-05 13:59:43 -07:00
Markus Scherer
46720c4120 ICU-21559 more guards for self-assignment 2021-03-30 12:19:11 -07:00
Frank Tang
cec7de7a39 ICU-21537 Fix invalid free by long locale name
Do not free baseName if it is pointing to fullNameBuffer.

Better Fix
2021-03-17 10:34:27 -07:00
gnrunge
3d7ba6560e ICU-21520 Fixes typo in name of test data file; removes a regex that
evaluates to the empty string and the result files are missing the
perf test name as a result. E.g. '_Mar_16_155820.html' instead of
'unisetperf_Mar_16_155820.html'.
Not obvious why the regex was even created since it doesn't seem
necessary because the name of the caller doesn't require additional
parsing. The rpaticular code is from 2002, maybe changes in Perl
account for the issue(?)
2021-03-16 20:01:16 -07:00
gnrunge
22dace7f5f ICU-21323 Automates the uconfig variation BRS tasks. The test
subsequently sets each of the UCONFIG_NO_XXX flags to '1' (exceptions apply)
and runs the ICU4C unit tests and the header test. Afterwards all
UCONFIG_NO_XXX flags are set to '1' and unit tests and header test
are executed.

To allow concurrent execution and reduce total run time, the script provides
the option to execute only the unit tests or only the header test.

ICU-21323 Split the uconfig.h variation test into two to reduce
execution time. One test now tests the variations with unit tests, the
other tests with header test.
Execution time now ranges between 45 and 58 minutes.

ICU-21323 Works in review comments.

ICU-21323 Factors in more review comments.
2021-03-11 16:25:33 -08:00
Shane F. Carr
c26d99b3a6 ICU-21330 Use =0 and =1 plural forms in compact notation
See #1632
2021-03-11 17:34:35 -06:00
Peter Edberg
6c26ea21b2 ICU-21341 for getISO codes, add some CLDR-valid regions, remove some CLDR-invalid langs 2021-03-11 14:31:07 -08:00
Rich Gillam
e43c4e5f1b ICU-21335 Disallowed looking up resources by index in table-based resources. 2021-03-10 16:51:51 -08:00
Frank Tang
63b9a8aea8 ICU-21041 Fix fuzzer memory read error.
See #1622
2021-03-10 15:26:52 -08:00
Peter Edberg
6cdfe2dc1f ICU-21480 brs 69rc, add tests to verify that rbnf spellout is the same for no,nb 2021-03-10 13:51:32 -08:00
Hugo van der Merwe
54b896962b ICU-21123 Calculate built-in units' gender when CLDR lacks the data
See #1620
2021-03-10 20:09:51 +01:00
Elango Cheran
c263b5b370 ICU-21519 Add PluralOperand 'c' as alias to 'e', parse FixedDecimal strings 2021-03-09 16:55:33 -08:00
Markus Scherer
767598009d ICU-21368 unit-test & fix BytesTrie jump delta encoding 2021-03-08 17:18:14 -08:00
Frank Tang
ce640dc850 ICU-21127 Error when rbbi got unpaired surrogate char
See #1520
2021-03-05 15:45:37 -08:00
younies
b1a685a676 ICU-21349 calling .usage("") should unset the existing usage
See #1614
2021-03-06 00:37:06 +01:00
Hugo van der Merwe
119dfa4f24 ICU-21123 Support FormattedNumber::getGender() for "short" and "narrow" formatting too
See #1617
2021-03-05 00:32:30 +01:00
Shane F. Carr
b79c299f90 ICU-20886 Implement trailingZeroDisplay
See #1583
2021-03-04 08:19:59 -07:00
Frank Tang
d7fd8848b7 ICU-21222 Fix Era in Interval format
See #1373
2021-03-03 17:25:19 -08:00
Hugo van der Merwe
56fb139fc0 ICU-20941 Port Arbitrary Units support from ICU4C to ICU4J
See #1597
2021-03-02 20:34:19 +01:00
yumaoka
53aa0505c5 ICU-21372 getOffsetFromLocal for C and C++
See #1610
2021-03-02 10:21:28 -08:00
Shane F. Carr
e8dfea9bb6 ICU-21493 Add more rounding modes in ICU4C
See #1575
2021-02-27 11:25:08 -07:00
Shane F. Carr
d7db6c1f86 ICU-20019 Implement withSignificantDigits option
See #1598
2021-02-27 02:01:21 -07:00
Shane F. Carr
e85938bd2c ICU-21203 ICU-21198 ICU-21479 Improve docs discoverability for NumberFormatter
See #1559
2021-02-25 14:16:25 -07:00
gnrunge
2415a6c5f6 ICU-21503 Adds status checks to prevent segmentation fault when test runs
with stubdata only.

ICU-21503 Changes the no-data checks according to review feedback.
2021-02-25 12:43:54 -08:00
Peter Edberg
31182a99b4 ICU-21480 integrate CLDR release-39-alpha4 to ICU trunk 2021-02-25 10:19:57 -08:00
Shane F. Carr
1aa0dad8e0 ICU-21484 Add SignDisplay NEGATIVE 2021-02-25 03:10:27 +01:00
Hugo van der Merwe
6e91c7552e ICU-21480 Update French unit-times pattern in unit tests 2021-02-24 23:35:29 +01:00
Hugo van der Merwe
b2d97ebcb4 ICU-20941 NumberFormatter: format arbitrary compound units, with inflections
See #1588.
2021-02-24 09:27:39 +01:00
Younies Mahmoud
2138ac8a0e ICU-21349 Add extra UnitsRouter constructor that takes only CLDR unit…
See #1579
2021-02-24 03:43:50 +00:00
Younies Mahmoud
c825da1d29 ICU-21349 Add extra UnitsConverter constructor that takes only CLDR unit identifiers
See #1578
2021-02-24 02:06:43 +00:00
gnrunge
0a1352ee67 ICU-21502 Adds status checks to test to prevent segementation fault when
test runs with ICU stub data only.

ICU-21502 Review comments worked in.
2021-02-23 11:48:02 -08:00
Hugo van der Merwe
aa9f5bc279 ICU-21432 Fix TestInternalMeasureUnitImpl() segfaulting with bad data 2021-02-23 17:32:55 +01:00
Younies Mahmoud
00cedadc92 ICU-21349 Add extra ComplexUnitsConverter constructor that takes only CLDR units Identifier
See #1586
2021-02-19 07:54:39 +01:00
Shane F. Carr
b6687af59c ICU-20421 Add span fields to NumberRangeFormatter
See #1572
2021-02-18 09:56:48 -06:00
Andy Heninger
f062244cdb ICU-21492 Fix regex compile assertion failure.
A regex pattern containing nested look-behind blocks could trigger an assertion
failure during pattern compilation. The problem was caused by an off-by-one
error in the code that computes an upper bound on the match length, needed
because look-behind expressions are constrained to not have unbounded match
length.

Nested look-behind blocks come into play because, when computing the maximum
match length of an outer block, any inner look-behind blocks are skipped over -
they do not directly contribute to the length matched by the outer block. The
problem was in the code that skips over these nested look-behind blocks.
2021-02-17 18:49:55 -08:00
Hugo van der Merwe
1dbe70ac18 ICU-21123 Support unit inflections in ICU4C
See #1574
2021-02-17 23:36:40 +01:00
Markus Scherer
66460b9fad ICU-13702 add missing API functions
and fix a bug in Java UnicodeSet.retain(String) which added the string even if the set did not contain it before,
and some drive-by API doc fixes/clarifications
2021-02-17 10:12:10 -08:00
Peter Edberg
7159e334ff ICU-21480 integrate CLDR release 39 alpha1 to ICU trunk 2021-02-16 21:44:12 -08:00
Hugo van der Merwe
dcfa2a7874 ICU-21284 Deal with remaining unit normalization TODOs
See #1580
2021-02-16 20:52:12 +01:00
Peter Edberg
3333fd557c ICU-21480 integrate CLDR release 39 alpha0 to ICU trunk 2021-02-10 11:58:26 -08:00
younies
916b9fad75 ICU-21349 Add UnitsConverter.getConversionInfo(...)
See #1568
2021-02-10 14:10:44 +01:00
Shane F. Carr
993e58a2c9 ICU-20888 Hide or remove old list formatter methods 2021-02-09 22:38:11 -06:00
Hugo van der Merwe
84469100c5 ICU-21306 ldml2icu: add rules for Inflections-related CLDR data
See #1566
2021-02-10 01:08:50 +01:00
Victor Chang
048e46674a ICU-21455 Add new API ubrk_clone() and deprecate ubrk_safeClone() 2021-02-09 08:49:55 -08:00
Hugo van der Merwe
c0a490d49d ICU-21284 Correctly normalize Unit Identifiers
See #1527
2021-02-09 12:52:05 +01:00
Hugo van der Merwe
7feb300a87 ICU-21284 More MeasureFormatTest and NumberFormatterApiTest test cases
See #1530
2021-02-08 21:51:24 +01:00
Hugo van der Merwe
377dc22280 ICU-21349 Fix ICU4J reciprocal unit conversions
See #1565
2021-02-05 18:29:31 -08:00