Commit graph

32639 commits

Author SHA1 Message Date
Fredrik Roubert
2a1853c9a9 ICU-22621 Clang-Tidy: modernize-use-emplace
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/use-emplace.html
2024-03-13 16:31:47 +01:00
Fredrik Roubert
3000bfb67e ICU-22621 Clang-Tidy: modernize-make-unique
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/make-unique.html
2024-03-13 16:31:47 +01:00
Fredrik Roubert
1a4fc9b009 ICU-22621 Clang-Tidy: modernize-concat-nested-namespaces
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/concat-nested-namespaces.html
2024-03-13 16:31:47 +01:00
Rich Gillam
00072801a5 ICU-22687 Fix genren.pl not to skip C++ functions on Mac 2024-03-12 16:56:26 -07:00
Rich Gillam
1cedbbd90d ICU-22534 Fixed a couple issues from the API-promotions PR that Frank found in code review. 2024-03-12 16:47:57 -07:00
Frank Tang
d43d216feb ICU-22633 Test and fix int32_t overflow for Calendar set
Add test to set with INT32_MAX and INT32_MIN then call getTime()
and fix all the undefined errors.
2024-03-12 16:46:53 -07:00
Elango Cheran
18c7d48b3e ICU-22533 Add docs on Continuous Integration
See #2876
2024-03-12 09:14:24 -07:00
Shuhei Iitsuka
37ecee3a0c ICU-22666 Update ML model to improve Japanese phrase breaking quality 2024-03-11 12:00:03 -07:00
Peter Edberg
ceee4f0b46 ICU-22655 Implement "special" conversion for speed-beaufort, part 2 icu4c 2024-03-09 19:52:42 -08:00
Rich Gillam
4c664b2180 ICU-22534 Changed ExternalBreakEngine so that it's surrounded by U_HIDE_INTERNAL_API instead of U_HIDE_DRAFT_API. 2024-03-08 17:49:33 -08:00
Frank Tang
784056dfdb ICU-22633 Fix overflow in Chinese calendar
Fix issue found by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67256
2024-03-07 16:03:00 -08:00
Craig
ebaf3e9f75 ICU-22534 BRS#19 Update ICU4C API Change Report (frontloading) 2024-03-07 14:37:06 -08:00
Fredrik Roubert
3a88e99a27 ICU-22520 Add a StringByteSink<CharString> template specialization.
This makes it possible to call public functions that take a string class
as a template parameter and return an object of that class (implemented
through the StringByteSink helper class) also with the CharString class,
even though this class doesn't actually provide the public API required
by StringByteSink.

This makes it possible to use such more modern APIs also internally.
2024-03-07 17:35:48 +01:00
Rahul Pandey
a0cdb9cda5 ICU-22597 Add MSVC build bot to build ICU4C without exceptions
See #2829
2024-03-07 16:14:16 +01:00
Craig
89cf56333f ICU-22534 BRS#27 fix CI-Exhaustive-Main breakage for locale qaa 2024-03-07 13:47:49 +01:00
Frank Tang
e0a711c0a4 ICU-22633 Fix Hebrew overflow issue 2024-03-06 14:52:19 -08:00
Fredrik Roubert
c0c46988c5 ICU-22612 Update configure files from configure.ac using autoreconf. 2024-03-06 10:56:53 +01:00
Vincent Torri
3a6b1ef80e ICU-22612 usage of C++11 implies the existence of stdint.h, so remove useless checks
See #2860
2024-03-06 10:56:53 +01:00
Fredrik Roubert
53568e8dfc ICU-22520 Refactor CharString & CharStringByteSink into helper.
The repeated sequence of allocating a CharString and CharStringByteSink,
before calling some function that writes into this, can be moved into a
single shared helper function which then is used to give all ulocimp.h
functions that write to ByteSink an overload that instead returns a
CharString, to make call sites look like perfectly normal C++ code.
2024-03-05 23:44:50 +01:00
Craig
7bc202ae87 ICU-22534 BRS#27 scrub closed issues (frontload) 2024-03-05 11:15:28 -08:00
Fredrik Roubert
02a1bfc59f ICU-22520 Refactor CheckedArrayByteSink & u_terminateChars into helper.
The repeated sequence of allocating a CheckedArrayByteSink, calling some
function that writes into this, then checking for overflow and returning
through u_terminateChars() can all be moved into a single shared helper
function.
2024-03-05 20:09:54 +01:00
Rich Gillam
c610d7f986 ICU-22534 Promote (almost) all @draft ICU 73 APIs to @stable ICU 73 2024-03-04 18:05:29 -08:00
Fredrik Roubert
232362bf17 ICU-22520 Use operator* instead of calling std::optional::value().
There's a subtle difference between these two ways of accessing the
value of an optional and that is that the value() method can throw an
exception if there isn't any value, but operator* won't do that (it's
just undefined behavior if there isn't any value).

ICU4C code never tries to access any optional value without first
checking that it exists, but the ability of the value() method to throw
an exception in case there wasn't any such check first is the reason why
std::exception symbols previously could show up in debug builds.

This reverts the changes that were made to dependencies.txt by
commit dc70b5a056.
2024-03-04 23:40:15 +01:00
Frank Tang
73744ea41f ICU-22633 Fix overflow cause by large AM PM value
Fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66771
2024-03-04 13:48:24 -08:00
Frank Tang
37526240e1 ICU-22274 Mark known issue for 3 timezones for EnvTest
tz2024a change "Asia/Qostanay" "Asia/Almaty" but test machines has
not yet update their zoneinfo to 2024a so we mark them as known issues

extern long timezone; in <time.h> (set man tzset on Linux shell)
returns wrong value when TZ=America/Scoresbysund
2024-03-04 11:06:39 -08:00
Shane F. Carr
71b9b88200 ICU-22319 Fix number range semanticallyEquivalent
See #2385
2024-03-04 08:23:00 -08:00
Frank Tang
aa3e49fa9a ICU-22274 Add zdump info while env test fail 2024-02-29 14:36:14 -08:00
Fredrik Roubert
929cd9bb4f ICU-22520 Standardize return on error for all locale functions.
· No function should do anything if an error has already occurred.
· On error, a value of 0, nullptr, {}, etc., should be returned.
· Values shouldn't have overloaded meanings (eg. index or found).
· Values that are never used should not be returned at all.
2024-02-29 20:42:03 +01:00
David Carlier
35353f2d7f ICU-22671 format_date should use c++ nullptr instead of 0 for udat_open/DateFormat::create
- [x] Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-22671
- [x] Required: The PR title must be prefixed with a JIRA Issue number. <!-- For example: "ICU-1234 Fix xyz" -->
- [x] Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
- [x] Required: Each commit message must be prefixed with a JIRA Issue number. <!-- For example: "ICU-1234 Fix xyz" -->
- [ ] Issue accepted (done by Technical Committee after discussion)
- [ ] Tests included, if applicable
- [ ] API docs and/or User Guide docs changed or added, if applicable
2024-02-29 20:02:20 +01:00
Fredrik Roubert
137b4c9e47 ICU-22556 Update configure files from configure.ac using autoreconf. 2024-02-29 19:43:43 +01:00
Jordan Williams
75ff7952b9 ICU-22556 Prefer cc and c++ compilers
When building icu4c, it defaults to clang instead of gcc when the default compiler, cc / c++, is a symlink to gcc / g++.
This not the expected behavior when building C and C++ code.
It appears that this behavior was put in place originally for supporting C++11, which hopefully is no longer such a concern.
This PR adjusts the configure.ac for icu4c to prefer the cc and c++ compilers first.
2024-02-29 19:43:43 +01:00
Craig
96fb7ae73a ICU-22534 ICU4J 75 frontload API change report 2024-02-29 08:49:43 -08:00
Frank Tang
0563859d8c ICU-22679 Optimize calendar code for edge cases
See #2853
2024-02-28 17:08:24 -08:00
Peter Edberg
7d636aecf7 ICU-22655 Implement "special" conversion for speed-beaufort, part 1 icu4j 2024-02-28 12:57:33 -08:00
Craig
09ccfb9956 ICU-22534 ICU4J 75 frontload: API status update 2024-02-28 11:38:41 -08:00
Frank Tang
ceca6c4120 ICU-22274 display tz db version on the test machine. 2024-02-28 11:07:32 -08:00
Elango Cheran
0d7cedc0dd ICU-22532 Trigger CI workflows when workflow definitions change 2024-02-28 12:50:43 -05:00
DraganBesevic
a1925abf4f ICU-22534 CLDR 45 alpha2 integration to ICU 2024-02-28 08:28:08 -08:00
Craig
d271d3f269 ICU-21952 fix draft version of withoutLocale to ICU 75 2024-02-27 17:03:46 -08:00
Markus Scherer
d1fa15bc1f ICU-22571 add Aran script code variant 2024-02-27 14:23:59 -08:00
Elango Cheran
c2b328267e ICU-22532 Increase timeout for exhaustive ICU4J tests 2024-02-27 10:58:18 -08:00
Elango Cheran
3df505b511 ICU-22532 Increase Github Actions CI parallelism from 2 to 4 2024-02-27 10:58:09 -08:00
Frank Tang
ec800e7407 ICU-22633 Return error if era is out of range 2024-02-27 10:56:28 -08:00
Fredrik Roubert
314f03eeaf ICU-22532 Don't dereference nullptr (-Wtautological-undefined-compare). 2024-02-27 14:11:38 +01:00
Mihai Nita
201af462fc ICU-22675 Migrate from deprecated boxed primitive constructors to their replacements 2024-02-26 16:39:05 -08:00
Rūdolfs Mazurs
394341edba ICU-22646 Update collation test for Latvian locale
This test is also relevant to issues ICU-12765 ICU-13508 ICU-20532
2024-02-26 14:09:40 -08:00
Steven R. Loomis
ea1c6da07f ICU-22677 update LICENSE and README.md and pom.xml
- https://github.com/unicode-org/.github/issues/15
- use Unicode-3.0 in pom instead of raw license link
- https://github.com/unicode-org/.github/issues/15
2024-02-26 14:34:59 -06:00
Steven R. Loomis
6d15faab48 ICU-22677 update CONTRIBUTING.md
- https://github.com/unicode-org/.github/issues/12
2024-02-26 11:44:35 -06:00
Rahul Pandey
3c82e6857c ICU-22676 Undefine move32 since it is interpreted system call with MSVC ARM64 2024-02-26 08:55:31 -08:00
Shane F. Carr
fd5d6c97b1 ICU-22532 Improve commit checker instructions
See #2622
2024-02-23 16:38:14 -06:00