Commit graph

32923 commits

Author SHA1 Message Date
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
Rahul Pandey
6d67afcf01 ICU-22874 Fix building with -Werror on macOS clang 2024-09-06 15:26:36 +05:30
Rahul Pandey
91ed39fb9d ICU-22847 Migrate ADO pipelines to GHA
See #3112
    - Update Docs
    - Make exhaustive tests run manually, based on cron for main and post merge for maint
2024-09-06 11:52:01 +05:30
Chris Chapman
46712bff3d ICU-22877 revised "Region code" (formerly "Country code") section 2024-09-05 15:23:33 -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
Shane F. Carr
5faea996b0 ICU-22723 Update double-conversion 2024-09-03 14:00:55 -07:00
Mihai Nita
edbf02094f ICU-22606 Correct urls in the scm entry; fix JCite styles in javadoc
1. The flatten plugin appended the relative module paths to the URLs in <scm>.
The same kind of problem solved earlier with ${proj.url}, and fixed the same way.
I was unable to find any way to tell the plugin to not do that append, even after
reading some of the plugin code.

2. The stylesheet containing the JCite styles was not copied in the generated javadoc.
The first part of our custom stylesheet is 100% the same as the oficial one.
So the only part that was visually affected was the code produced by JCite.
The code still used <pre> and <code>, so it was monospaced and well indented / wrapped,
but no syntax colors.
2024-08-31 15:37:10 -07:00
Frank Tang
63f29c621c ICU-22854 Add consistency test against Region API 2024-08-30 22:37:29 -07:00
Mihai Nita
eda184e6af ICU-22606 Make the ICU4J release easier & more predictable 2024-08-29 12:55:59 -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
Markus Scherer
7c66c5cc4a ICU-22723 start ICU 76 download page 2024-08-25 16:00:31 -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
18ff73e239 ICU-22723 Integrate CLDR 46 cleaning 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
Mihai Nita
01d755749c ICU-22853 Support formatting types in java.time 2024-08-21 10:38:58 -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
Steven R. Loomis
305098bdf8 ICU-22722 Update README.md
See #3111 and ICU-22722
2024-08-19 13:41:03 -05:00
taiyang-li
0253c828d9 ICU-22832 Fix msan complain about use-of-uninitialized-value 2024-08-19 08:43:38 -07:00
Mihai Nita
40189ffe57 ICU-21205 Fix Eclipse failing to import the icu4j maven project 2024-08-16 13:38:56 -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
dependabot[bot]
f4a04631cd ICU-22722 Bump the github-actions group across 1 directory with 4 updates
See #3075
2024-08-15 17:52:40 -04: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
DraganBesevic
24966d7a21 ICU-22723 Integrate CLDR 46 release alpha0, part 1, binary 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
Mihai Nita
b5b3e16afa ICU-22845 Better iterations for the ICU4J UnicodeSet 2024-08-09 08:56:25 -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
Mihai Nita
366bb463b1 ICU-22722 Update the ICU Vice-Chair for Maven publishing 2024-08-07 07:36:23 -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