Commit graph

23454 commits

Author SHA1 Message Date
Rich Gillam
fda2223952 ICU-22723 Regenerated urename.h. 2024-09-11 14:42:46 -07:00
Rich Gillam
d0fb2d54b3 ICU-22723 Promoted all @draft ICU 74 APIs to @stable ICU 74 2024-09-11 14:06:45 -07:00
Frank Tang
36555b7800 ICU-22716 Temp turn off message_formatter_fuzzer
The running of message_formatter_fuzzer cause out of memory problem.
We will address that in later PR.
2024-09-11 12:12:36 -07:00
Frank Tang
9270216cb7 ICU-22863 Remove extra line in Islamic calendar
Fix a regression caused by d43d216feb
2024-09-10 22:53:06 -07:00
Frank Tang
4f246ab17f ICU-22716 Test VTimeZone in fuzzer 2024-09-10 22:51:12 -07:00
Frank Tang
1c3bf0bf82 ICU-22716 Extend Collator fuzzing 2024-09-10 22:51:00 -07:00
Frank Tang
3a74fcf052 ICU-22716 Test more number format 2024-09-10 22:50:47 -07:00
Frank Tang
266a2b8de2 ICU-22716 Add MessageFormat fuzzer
ICU-22716 improve
2024-09-10 22:50:33 -07:00
Markus Scherer
37b41495d7 ICU-22876 C++ UnicodeSet/USet easy item iteration
See #3120
2024-09-10 17:38:03 -07:00
LamTrinh.Dev
f6b274a197 ICU-22721 Enhance #if for locdispnames.cpp
Enhance #if for locdispnames.cpp

ICU-22721 Enhance #if for locdispnames.cpp, remove auto-generate file in local git.

ICU-22721 Enhance #if for locdispnames.cpp.

ICU-22721 Enhance #if for locdispnames.cpp, revert old-xmls.tar.bz2 file from main branch.

ICU-22721 Enhance #if for locdispnames.cpp

Enhance #if for locdispnames.cpp

ICU-22721 Enhance #if for locdispnames.cpp, remove auto-generate file in local git.

ICU-22721 Enhance #if for locdispnames.cpp.

ICU-22721 Enhance #if for locdispnames.cpp, revert old-xmls.tar.bz2 file from main branch.
2024-09-10 14:32:14 -07:00
Fredrik Roubert
7cad791fb6 ICU-22843 Simplify UTF-16 string literals. 2024-09-10 18:58:01 +02:00
Fredrik Roubert
3abf474f26 ICU-22843 Check libc++ version for std::basic_string_view<uint16_t>.
As was pointed out in PR #3106, the standard doesn't mandate the
existence of std::char_traits<uint16_t> and libc++ did actually
deprecate it in release 18 and delete it in release 19.

As ICU4C uses this for backward compatibility for old code that still
depends on setting -DUCHAR_TYPE=uint16_t it'd be nice to keep using it
as long as possible but once it's gone from the standard library there
isn't really much useful that ICU4C could do about that so conditionally
compiling the code when the standard library version is old enough
should suffice for keeping backward compatibility for yet some time.

https://github.com/llvm/llvm-project/commit/cce062d
2024-09-10 18:18:15 +02:00
yumaoka
74d5e6d258 ICU-22723 Update currency numeric code mapping data. 2024-09-09 09:25:02 -04:00
yumaoka
394bebdb46 ICU-22596 IBM-1388 converter data update 2024-09-09 09:23:41 -04:00
Fredrik Roubert
6c9d39a08c ICU-22843 Enable constructing UnicodeString from literal in fixed time.
When passing a string literal to any of the legacy constructors that
take just a plain pointer to a UTF-16 string it becomes necessary to
iterate through the string to find its length, even though this length
was known to the compiler (which just has no way of passing it on to the
constructor).

But when calling the new templated string view constructor instead it
becomes possible for the compiler to use the known length of a string
literal to directly create a string view of the correct size and pass
this on to the constructor.

By replacing the legacy constructors with the new constructor this is
made the default behaviour.
2024-09-09 13:50:58 +02:00
Markus Scherer
f062f52c12 ICU-22294 UTS46 transitional=deprecated, change DEFAULT 2024-09-06 14:38:11 -07:00
Markus Scherer
415a7accc5 ICU-22707 adjust UTS46 for Unicode 16
See #3130
2024-09-06 10:00:11 -07:00
Frank Tang
4ef58328d0 ICU-22716 Reduce the data size to test calendar fuzzer
Calendar fuzzer test too many operations and cause timeout
which does not suerface the real issue. Limit the test data size to 100
instead of 1000 instead.
2024-09-05 11:17:07 -07:00
Fredrik Roubert
964bdc54f7 ICU-22881 Switch to using macOS instead of MacOSX in runConfigureICU.
The old names are kept as aliases, but not listed in the help messsage.
2024-09-05 19:37:32 +02:00
Frank Tang
63f29c621c ICU-22854 Add consistency test against Region API 2024-08-30 22:37:29 -07:00
Markus Scherer
6645cc4935 ICU-22843 UnicodeString::operator!=(string view) 2024-08-29 08:45:03 -07:00
Craig Cornelius
1414e80f6c ICU-22722 Add RelativeDateTimeFormatter to main API page via docmain.h
See #3119
2024-08-27 14:53:04 -07:00
Sergey Fedorov
a4ace3ace7 ICU-22807 Fix for missing __STDC_FORMAT_MACROS before inttypes.h
Co-authored-by: Markus Scherer <markus.icu@gmail.com>
2024-08-27 10:52:14 -07:00
Rich Gillam
967babdc5f ICU-22669 Fix circular dependency in DateTimePatternGenerator::addICUPatterns(). 2024-08-27 10:37:19 -07:00
Steven R. Loomis
9bb4536ad7 ICU-22374 guard gCollationBinKey behind if !UCONFIG_NO_COLLATION
See #2442
2024-08-24 17:39:30 -05:00
Frank Tang
5e22f0076e ICU-22854 Implement subdivision validation 2024-08-22 11:02:36 -07:00
DraganBesevic
aabadf7289 ICU-22723 Integrate CLDR 46 release alpha2, part 5, exclude failing unit tests for exhaust tests; spaces <-> tabs 2024-08-22 08:22:56 -07:00
DraganBesevic
ebceedde21 ICU-22723 Integrate CLDR 46 release alpha0, part 3, source files 2024-08-22 08:22:56 -07:00
DraganBesevic
c2312370c2 ICU-22723 Integrate CLDR 46 release alpha2, part 2, data and test files 2024-08-22 08:22:56 -07:00
DraganBesevic
c4daf676f3 ICU-22723 Integrate CLDR 46 release alpha2, part 1, binary files 2024-08-22 08:22:56 -07:00
Markus Scherer
51e21af692 ICU-22707 Unicode 16 aug16 2024-08-19 17:15:00 -07:00
Anton Voloshin
e4cba341b6 ICU-22850 ucol_openRules: fix ucol_open reference in the description
It should obviously be ucol_open here. This typo was introduced in the
0335b3b9c3
2024-08-19 13:03:21 -07:00
taiyang-li
0253c828d9 ICU-22832 Fix msan complain about use-of-uninitialized-value 2024-08-19 08:43:38 -07:00
Fredrik Roubert
ed117b9957 ICU-22864 Move main() out of the ICU namespace. 2024-08-16 20:14:50 +02:00
Esther Wang
1c312f7caa ICU-22861 std::max deduced conflicting types in unifiedcache.cpp 2024-08-16 10:33:38 +02:00
DraganBesevic
045350e7c1 ICU-22723 Integrate CLDR 46 release alpha0, part 4, fixes for exausting tests 2024-08-14 17:09:35 -07:00
DraganBesevic
d04154833c ICU-22723 Integrate CLDR 46 release alpha0, part 3, source files 2024-08-14 17:09:35 -07:00
DraganBesevic
b865f26876 ICU-22723 Integrate CLDR 46 release alpha0, part 2, data files 2024-08-14 17:09:35 -07:00
Fredrik Roubert
37b2bc6999 ICU-22721 Use correct initializer list syntax.
This will make the code ever so slightly simpler but more importantly
make it possible to compile also when using -D_GLIBCXX_DEBUG.
2024-08-13 21:33:53 -07:00
Fredrik Roubert
bae2aa65d8 ICU-22696 Avoid unnecessary copies of already NUL terminated strings. 2024-08-13 21:15:26 +02:00
Markus Scherer
72206495de ICU-22843 UnicodeString <-> std::u16string_view / wstring_view via templates 2024-08-13 09:10:01 -07:00
Fredrik Roubert
7ffbe77e12 ICU-22696 Update ulocimp_setKeywordValue() to use std::string_view. 2024-08-13 14:03:18 +02:00
Frank Tang
0bd2b4d10c ICU-22849 Fix memLeak in RBBIRuleBuilder by using LocalMemory 2024-08-09 16:19:06 -07:00
StefanStojanovic
66ba09973a ICU-22787 Fix ClangCL compilation on Windows 2024-08-09 10:54:21 +05:30
Tim Chevalier
57ed0a2a53 ICU-22794 MF2: Move .json files for tests into top-level testdata/ directory
Modify ICU4C and ICU4J test readers to handle all tests

Add `ignoreJava` and `ignoreCpp` properties to tests where needed

Includes parser bug fixes:

ICU4J: require a complex-body after declarations

ICU4J: Correctly parse the complex body after an unsupported statement

ICU4J: Handle date params in tests and remove default params for tests

ICU4J: Handle decimal params in tests

ICU4J: Require whitespace before variable/literal in reserved annotation

ICU4J: Require whitespace between options

ICU4J: Require a variable-expression in an .input declaration

ICU4J: don't require space between last key and pattern in variant

ICU4J: don't require space between selectors

ICU4J: allow whitespace after '=' in option

ICU4J: parse escape sequences in quoted literals according to grammar

ICU4J: allow whitespace within markup after attributes list
2024-08-08 09:14:44 -07:00
Fredrik Roubert
8a6d59ec80 ICU-22696 Update ulocimp_to*{Key,Type}() to use std::string_view. 2024-08-07 14:14:23 +02:00
Frank Tang
1eb0ed2fad ICU-22818 Fix memory leak during error in messageformat2_data_model.cpp
See #3077
2024-08-06 15:39:20 -07:00
Frank Tang
a22dc93e3a ICU-22825 Fix memLeak during error in tznames_impl.cpp
Rewrite the TextTrieMap::put() which should delete the value
during error instead of deleting key.
Rewrite to simplified the error handling.
2024-08-06 09:58:15 -07:00
Frank Tang
6de4472db0 ICU-22820 Fix memLeak during error in genrb
Fix also ICU-22821 ICU-22822
2024-08-06 18:00:27 +02:00
Frank Tang
09ae31427e ICU-22830 Fix memLeak in numrange_fluent.cpp
Maybe related to the leak in ICU-22800
2024-08-05 19:30:54 -07:00