]> granicus.if.org Git - icu/log
icu
2 years agoICU-22265 Update PersonNameFormatter and its associated classes so that the behavior...
Rich Gillam [Sat, 4 Mar 2023 04:19:14 +0000 (20:19 -0800)]
ICU-22265 Update PersonNameFormatter and its associated classes so that the behavior matches that of the
PersonNameFormatter in CLDR.  Added a new test that tests the ICU PersonNameFormatter against a comprehensive
set of test results from the CLDR PersonNameFormatter.

2 years agoICU-22220 BRS73 Updating the Unicode data files and software license
Yoshito Umaoka [Tue, 7 Mar 2023 00:48:26 +0000 (19:48 -0500)]
ICU-22220 BRS73 Updating the Unicode data files and software license

2 years agoICU-22270 expose uproperty values in icuexportdata
Manish Goregaokar [Sat, 4 Mar 2023 00:11:58 +0000 (16:11 -0800)]
ICU-22270 expose uproperty values in icuexportdata

2 years agoICU-22220 Add a step to instructions and fix an obsolete path.
Craig Cornelius [Tue, 28 Feb 2023 19:16:41 +0000 (19:16 +0000)]
ICU-22220 Add a step to instructions and fix an obsolete path.

See #2348

2 years agoICU-22220 adjust #ifndef U_HIDE_DRAFT_API for virtual methods, fix conditionalized...
Peter Edberg [Thu, 2 Mar 2023 23:49:36 +0000 (15:49 -0800)]
ICU-22220 adjust #ifndef U_HIDE_DRAFT_API for virtual methods, fix conditionalized enums

2 years agoICU-22220 Update ICU4J API status
Craig [Tue, 28 Feb 2023 16:27:00 +0000 (08:27 -0800)]
ICU-22220 Update ICU4J API status

2 years agoICU-22220 ICU4C APIChangeReport for ICU73
Craig Cornelius [Fri, 3 Mar 2023 23:23:49 +0000 (23:23 +0000)]
ICU-22220 ICU4C APIChangeReport for ICU73

See #2347

2 years agoICU-22220 ICU4J API change report
Craig [Tue, 28 Feb 2023 16:35:53 +0000 (08:35 -0800)]
ICU-22220 ICU4J API change report

2 years agoICU-22287 Move PersonName/PersonNameFormatter API from Tech Preview to @draft
Rich Gillam [Sun, 26 Feb 2023 00:06:28 +0000 (16:06 -0800)]
ICU-22287 Move PersonName/PersonNameFormatter API from Tech Preview to @draft

2 years agoICU-21833 remove redundant void parameter lists
Markus Scherer [Thu, 2 Mar 2023 16:20:46 +0000 (16:20 +0000)]
ICU-21833 remove redundant void parameter lists

See #2351

2 years agoICU-6065 UnicodeSet::closeOver(simple case folding)
Markus Scherer [Thu, 2 Mar 2023 00:25:11 +0000 (00:25 +0000)]
ICU-6065 UnicodeSet::closeOver(simple case folding)

See #2322

2 years agoICU-21833 replace U_NOEXCEPT with C++11 standard noexcept
Markus Scherer [Wed, 1 Mar 2023 21:44:52 +0000 (13:44 -0800)]
ICU-21833 replace U_NOEXCEPT with C++11 standard noexcept

2 years agoICU-21833 remove pre-C++11 code; U_SIZEOF_UCHAR=2
Markus Scherer [Wed, 1 Mar 2023 21:23:37 +0000 (13:23 -0800)]
ICU-21833 remove pre-C++11 code; U_SIZEOF_UCHAR=2

2 years agoICU-22224 Enable UBSAN and fix breakage
Frank Yung-Fong Tang [Mon, 27 Feb 2023 21:28:50 +0000 (21:28 +0000)]
ICU-22224 Enable UBSAN and fix breakage

See #2324

2 years agoICU-22220 CLDR release-43-alpha2 to ICU main
Peter Edberg [Thu, 23 Feb 2023 07:52:37 +0000 (23:52 -0800)]
ICU-22220 CLDR release-43-alpha2 to ICU main

2 years agoICU-21386 uprv_tzname() should find the correct Olson ID when /etc/localtime is a...
Rob De Reycke [Fri, 24 Feb 2023 14:11:31 +0000 (14:11 +0000)]
ICU-21386 uprv_tzname() should find the correct Olson ID when /etc/localtime is a "double" link

See #2323

2 years agoICU-22270 Use hex for mask properties
Manish Goregaokar [Fri, 24 Feb 2023 19:48:47 +0000 (11:48 -0800)]
ICU-22270 Use hex for mask properties

2 years agoICU-22270 Add support for General_Category_Mask in icuexport
Manish Goregaokar [Thu, 23 Feb 2023 23:33:16 +0000 (15:33 -0800)]
ICU-22270 Add support for General_Category_Mask in icuexport

2 years agoICU-22220 update root collation from CLDR 43
Markus Scherer [Wed, 22 Feb 2023 23:14:23 +0000 (15:14 -0800)]
ICU-22220 update root collation from CLDR 43

2 years agoICU-21833 Replace U_FINAL with final everywhere.
Fredrik Roubert [Wed, 15 Feb 2023 21:58:34 +0000 (22:58 +0100)]
ICU-21833 Replace U_FINAL with final everywhere.

2 years agoICU-22291 doc automate "Test samples (C) on Linux"
Frank Yung-Fong Tang [Wed, 22 Feb 2023 18:06:32 +0000 (10:06 -0800)]
ICU-22291 doc automate "Test samples (C) on Linux"

Just realize the task is already automated in
.github/workflows/icu_ci.yml
as "icu4c-test-samples:" but we should document that.

2 years agoICU-22220 BRS 73rc update urename.h pass 1
Peter Edberg [Tue, 21 Feb 2023 19:32:29 +0000 (11:32 -0800)]
ICU-22220 BRS 73rc update urename.h pass 1

2 years agoICU-21833 Replace U_OVERRIDE with override everywhere.
Fredrik Roubert [Wed, 15 Feb 2023 21:53:37 +0000 (22:53 +0100)]
ICU-21833 Replace U_OVERRIDE with override everywhere.

2 years agoICU-12811 Refactor test-framework to not depend on core
Mihai Nita [Wed, 15 Feb 2023 22:44:06 +0000 (14:44 -0800)]
ICU-12811 Refactor test-framework to not depend on core

Fixing the maven-build projects

2 years agoICU-22220 CLDR release-43-alpha1 to ICU main cldr/2023-02-21
Peter Edberg [Tue, 21 Feb 2023 03:56:35 +0000 (19:56 -0800)]
ICU-22220 CLDR release-43-alpha1 to ICU main

2 years agoICU-22220 Automate BRS tasks
Elango Cheran [Wed, 15 Feb 2023 00:18:10 +0000 (00:18 +0000)]
ICU-22220 Automate BRS tasks

See #2318

2 years agoICU-22262 Document environment test automation
Frank Yung-Fong Tang [Wed, 15 Feb 2023 23:31:51 +0000 (15:31 -0800)]
ICU-22262 Document environment test automation

2 years agoICU-22269 Parallelize uconfig* tests
Frank Tang [Tue, 14 Feb 2023 01:18:34 +0000 (17:18 -0800)]
ICU-22269 Parallelize uconfig* tests

1. Shorten job name uconfig_variation-check-unit-tests to uconfig-unit-tests
2. Shorten job name uconfig_variation-check-all-header-tests to uconfig-header-tests
3. use 11 jobs to run each of them in parallel to reduce the ~1hrs run to about 6-8 mins

Co-authored-by: Markus Scherer <markus.icu@gmail.com>
2 years agoICU-22262 Automate environment test
Frank Yung-Fong Tang [Mon, 13 Feb 2023 22:27:25 +0000 (22:27 +0000)]
ICU-22262 Automate environment test

See #2309

2 years agoICU-22257 BRS doc: J with little-endian data automatic since ICU 70
Markus Scherer [Mon, 13 Feb 2023 19:38:49 +0000 (11:38 -0800)]
ICU-22257 BRS doc: J with little-endian data automatic since ICU 70

2 years agoICU-22194 Fix javadoc error (self-closing element not allowed)
Mihai Nita [Sat, 11 Feb 2023 08:32:06 +0000 (00:32 -0800)]
ICU-22194 Fix javadoc error (self-closing element not allowed)

2 years agoICU-22277 correct collation error return of uninitialized length value while previous...
Frank Yung-Fong Tang [Mon, 13 Feb 2023 20:38:49 +0000 (20:38 +0000)]
ICU-22277 correct collation error return of uninitialized length value while previous code return error

See #2320

2 years agoICU-22257 Revert PR 2302
Frank Tang [Sat, 11 Feb 2023 02:42:44 +0000 (18:42 -0800)]
ICU-22257 Revert PR 2302

Since the same work has been done in PR 1884 before.

2 years agoICU-22194 Add User Guide doc for MessageFormat 2.0 tech preview impl
Elango Cheran [Fri, 10 Feb 2023 22:49:14 +0000 (22:49 +0000)]
ICU-22194 Add User Guide doc for MessageFormat 2.0 tech preview impl

See #2313

2 years agoICU-22220 ICU 73 API promotions (promoting ICU 71 and earlier)
Rich Gillam [Tue, 7 Feb 2023 01:25:27 +0000 (17:25 -0800)]
ICU-22220 ICU 73 API promotions (promoting ICU 71 and earlier)

2 years agoICU-22270 icuexportdata: Add property and property value names/aliases
Manish Goregaokar [Thu, 9 Feb 2023 00:40:32 +0000 (16:40 -0800)]
ICU-22270 icuexportdata: Add property and property value names/aliases

2 years agoICU-22194 Update DateTime skeleton docs with link to symbols table
Elango Cheran [Tue, 7 Feb 2023 00:48:25 +0000 (16:48 -0800)]
ICU-22194 Update DateTime skeleton docs with link to symbols table

2 years agoICU-22266 update OS version to 22.04 from 18.04
Frank Tang [Tue, 7 Feb 2023 20:05:12 +0000 (12:05 -0800)]
ICU-22266 update OS version to 22.04 from 18.04

Update configuration in main/.ci-builds from the deprecated 18.04
to the newest 22.04

Since vangrind has issue under 22.04 use 20.04 for vangrind for now.

Also use apt-get instead of apt since apt does not have a stable
commandline interface.

2 years agoICU-22257 BRS doc: J with little-endian data automatic
Markus Scherer [Mon, 6 Feb 2023 23:16:04 +0000 (15:16 -0800)]
ICU-22257 BRS doc: J with little-endian data automatic

2 years agoICU-21374 Add a CFI build bot for ICU4C
Frank Tang [Sat, 14 Jan 2023 07:28:06 +0000 (23:28 -0800)]
ICU-21374 Add a CFI build bot for ICU4C

Add the github action bot to build with cfi
Also fix all the known issues which require the change from C style cast to
static_cast inside the i18n and common directory while we are sure about
the object. and use
C++ style dynamic_cast for base-to-derive cast in other code inside i18n
and common and in test code or tool.
Change to use const_cast for casting between const / non-const

2 years agoICU-22220 CLDR release-43-alpha0 (with SurveyTool data) to ICU main
Peter Edberg [Mon, 6 Feb 2023 10:55:34 +0000 (02:55 -0800)]
ICU-22220 CLDR release-43-alpha0 (with SurveyTool data) to ICU main

2 years agoICU-22257 Add "Test ICU4J with only little-endian ICU4C data"
Frank Tang [Sat, 4 Feb 2023 06:49:18 +0000 (22:49 -0800)]
ICU-22257 Add "Test ICU4J with only little-endian ICU4C data"

Automate "Test ICU4J with only little-endian ICU4C data" as stated in
https://unicode-org.github.io/icu/processes/release/tasks/integration.html#test-icu4j-with-only-little-endian-icu4c-data

Update .ci-builds/.azure-exhaustive-tests.yml

Co-authored-by: Markus Scherer <markus.icu@gmail.com>
2 years agoICU-21833 Replace UChar with char16_t in C++ code.
Fredrik Roubert [Mon, 6 Feb 2023 18:35:22 +0000 (19:35 +0100)]
ICU-21833 Replace UChar with char16_t in C++ code.

2 years agoICU-21833 Replace UChar with char16_t in all C++ code.
Fredrik Roubert [Tue, 27 Dec 2022 07:54:24 +0000 (16:54 +0900)]
ICU-21833 Replace UChar with char16_t in all C++ code.

2 years agoICU-22249 Fixed endless loop in ICUResourceBundle when you ask for a locale with...
Rich Gillam [Sat, 28 Jan 2023 02:04:35 +0000 (18:04 -0800)]
ICU-22249 Fixed endless loop in ICUResourceBundle when you ask for a locale with a nonstandard parent and that locale
is also the system default locale.

2 years agoICU-22100 Modify ML model to improve Japanese phrase breaking performance
allenwtsu [Tue, 31 Jan 2023 10:17:02 +0000 (18:17 +0800)]
ICU-22100 Modify ML model to improve Japanese phrase breaking performance

2 years agoICU-21833 Replace nullptr with 0 when assigning to UChar.
Fredrik Roubert [Fri, 3 Feb 2023 19:43:54 +0000 (20:43 +0100)]
ICU-21833 Replace nullptr with 0 when assigning to UChar.

This bug was originally introduced by ICU-4844 which erroneously
assigned NULL to UChar (which happens to work, even though it's
conceptually wrong).

2 years agoICU-22194 Change CharacterIterator.DONE to CharacterIterator::DONE in
HanatoK [Thu, 2 Feb 2023 16:18:14 +0000 (10:18 -0600)]
ICU-22194 Change CharacterIterator.DONE to CharacterIterator::DONE in
doc

In C++, the enum inside a class should be accessed by "::" instead of
".".

2 years agoICU-21833 Replace NULL with nullptr in all C++ code.
Fredrik Roubert [Thu, 22 Dec 2022 11:22:18 +0000 (20:22 +0900)]
ICU-21833 Replace NULL with nullptr in all C++ code.

2 years agoICU-22252 Suppress Calendar Consistency
Frank Tang [Fri, 3 Feb 2023 00:50:21 +0000 (00:50 +0000)]
ICU-22252 Suppress Calendar Consistency

See #2298

2 years agoICU-22100 Improve Japanese phrase breaking performance cldr/2023-02-02
allenwtsu [Fri, 20 Jan 2023 17:36:15 +0000 (17:36 +0000)]
ICU-22100 Improve Japanese phrase breaking performance

See #2287

2 years agoICU-22226 Fix Calendar.getFirstDayOfWeek to honor -u-fw
Mihai Nita [Thu, 26 Jan 2023 18:56:50 +0000 (18:56 +0000)]
ICU-22226 Fix Calendar.getFirstDayOfWeek to honor -u-fw

2 years agoICU-22251 Move sprintf to snprintf.
Frank Tang [Tue, 24 Jan 2023 00:54:33 +0000 (00:54 +0000)]
ICU-22251 Move sprintf to snprintf.

See #2291

2 years agoICU-12725 Update u_isIDStart and u_isIDPart to TR31
Frank Tang [Thu, 19 Jan 2023 02:00:35 +0000 (18:00 -0800)]
ICU-12725 Update u_isIDStart and u_isIDPart to TR31

ICU-12725 move to uprops.cpp

ICU-12725 change dependency

ICU-12725 Fix Java implementation

2 years agoICU-22058 make pointer argument in floorDivide optional
Frank Tang [Thu, 19 Jan 2023 00:39:17 +0000 (16:39 -0800)]
ICU-22058 make pointer argument in floorDivide optional

Check the third argument and not set if it is a nullptr

2 years agoICU-22242 Test to show incorrect calculation of 1890
Frank Yung-Fong Tang [Wed, 18 Jan 2023 17:43:33 +0000 (17:43 +0000)]
ICU-22242 Test to show incorrect calculation of 1890

See #2270

2 years agoICU-22027 Add C++ Calendar API for Temporal
Frank Tang [Tue, 23 Aug 2022 23:47:06 +0000 (16:47 -0700)]
ICU-22027 Add C++ Calendar API for Temporal

API proposal
https://docs.google.com/document/d/1UYriEzzExiLhi2RD3zjTsI5UQHv1dXaFqrct7yXNdCA/edit#heading=h.x9obor85vpx9

Design Doc
https://docs.google.com/document/d/15ViyC9s0k3VEDwBmAkKxxz4IadZ6QrAIoETkdkF0cVA/

ICU-22027 Adjust API to remove the mention of M00L for now.

2 years agoICU-12811 Fix localespi tests when run by Maven on Java 8
Elango Cheran [Tue, 17 Jan 2023 19:13:01 +0000 (19:13 +0000)]
ICU-12811 Fix localespi tests when run by Maven on Java 8

See #2283

2 years agoICU-12811 Replace local-maven-repo with data jar contents
Elango Cheran [Sat, 14 Jan 2023 01:44:09 +0000 (01:44 +0000)]
ICU-12811 Replace local-maven-repo with data jar contents

See #2275

2 years agoICU-22233 Fix CI cache name for Bazel build
Elango Cheran [Sat, 14 Jan 2023 05:47:30 +0000 (21:47 -0800)]
ICU-22233 Fix CI cache name for Bazel build

2 years agoICU-12811 Fix CI cache retain workflow's cron schedule string
Elango Cheran [Fri, 13 Jan 2023 20:46:49 +0000 (12:46 -0800)]
ICU-12811 Fix CI cache retain workflow's cron schedule string

2 years agoICU-12811 Add CI workflow to retain caches that are flaky/costly to init
Elango Cheran [Thu, 12 Jan 2023 19:42:03 +0000 (19:42 +0000)]
ICU-12811 Add CI workflow to retain caches that are flaky/costly to init

See #2281

2 years agoICU-22093 Polish for SimpleNumberFormatter
Shane F. Carr [Fri, 6 Jan 2023 19:24:02 +0000 (19:24 +0000)]
ICU-22093 Polish for SimpleNumberFormatter

See #2277

2 years agoICU-22220 integrate root exemplarCities chnages for CLDR release-43-m0 to ICU main
Peter Edberg [Wed, 11 Jan 2023 05:01:06 +0000 (21:01 -0800)]
ICU-22220 integrate root exemplarCities chnages for CLDR release-43-m0 to ICU main

2 years agoICU-22220 integrate CLDR release-43-m0 to ICU main for 73, update maven-build files
Peter Edberg [Mon, 9 Jan 2023 03:42:20 +0000 (19:42 -0800)]
ICU-22220 integrate CLDR release-43-m0 to ICU main for 73, update maven-build files

2 years agoICU-22100 Remove unicode blocks from Japanese ML phrase breaking
allenwtsu [Mon, 9 Jan 2023 05:56:18 +0000 (05:56 +0000)]
ICU-22100 Remove unicode blocks from Japanese ML phrase breaking

See #2278

2 years agoICU-22222 Add explicit instantiation declarations
Thomas Köppe [Fri, 2 Dec 2022 01:49:06 +0000 (01:49 +0000)]
ICU-22222 Add explicit instantiation declarations

We exclude these declarations from MSVC, where they don't work because
the don't interact well with the U_I18N_API import/export macros

2 years agoICU-22233 Use separate Bazel cache keys per OS.
Fredrik Roubert [Fri, 16 Dec 2022 08:21:24 +0000 (17:21 +0900)]
ICU-22233 Use separate Bazel cache keys per OS.

2 years agoICU-22100 Incorporate BudouX into ICU (Java)
allenwtsu [Tue, 20 Dec 2022 16:34:42 +0000 (16:34 +0000)]
ICU-22100 Incorporate BudouX into ICU (Java)

See #2214

2 years agoICU-22193 Bump junit from 4.12 to 4.13.1 in /icu4j/maven-build
dependabot[bot] [Thu, 15 Dec 2022 00:48:55 +0000 (00:48 +0000)]
ICU-22193 Bump junit from 4.12 to 4.13.1 in /icu4j/maven-build

Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

---
updated-dependencies:
- dependency-name: junit:junit
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years agoICU-22193 Make clang-release-build-and-test work with ubuntu-latest.
Fredrik Roubert [Fri, 16 Dec 2022 05:59:41 +0000 (14:59 +0900)]
ICU-22193 Make clang-release-build-and-test work with ubuntu-latest.

Contemporary implementations of the C++ standard library also use the
@deprecated annotation in its header files and these then get included
by the preprocessor when preprocessing the ICU header files, like this:

  /// @deprecated Non-standard. Use `is_null_pointer` instead.

In order to work as expected, testtagsguards.sh must therefore be
updated to ignore @deprecated annotations unless they're for ICU.

2 years agoICU-12811 Make CI jobs for Maven run serially to avoid CI cache race condition
Elango Cheran [Fri, 16 Dec 2022 23:37:04 +0000 (15:37 -0800)]
ICU-12811 Make CI jobs for Maven run serially to avoid CI cache race condition

2 years agoICU-22193 Make run-with-stubdata work with ubuntu-latest.
Fredrik Roubert [Thu, 15 Dec 2022 07:21:52 +0000 (16:21 +0900)]
ICU-22193 Make run-with-stubdata work with ubuntu-latest.

It remains unknown when and why this changed, but nowadays the required
data files are to be found in a subdirectory named "build".

2 years agoICU-12811 Build ICU4J using Maven
Elango Cheran [Wed, 7 Dec 2022 05:16:30 +0000 (05:16 +0000)]
ICU-12811 Build ICU4J using Maven

See #2251

2 years agoICU-22193 Use Ubuntu 20.04 for jobs failing in migration to 22.04
Elango Cheran [Wed, 14 Dec 2022 00:59:24 +0000 (16:59 -0800)]
ICU-22193 Use Ubuntu 20.04 for jobs failing in migration to 22.04

2 years agoICU-22193 fix some CI test failures
Markus Scherer [Mon, 12 Dec 2022 22:12:20 +0000 (14:12 -0800)]
ICU-22193 fix some CI test failures

2 years agoICU-22220 BRS73RC Update version number to 73.0.1 cldr/2022-12-04
Peter Edberg [Thu, 1 Dec 2022 20:33:01 +0000 (12:33 -0800)]
ICU-22220 BRS73RC Update version number to 73.0.1

2 years agoICU-22203 Windows: enable C-code generation with overridden entry point
L. E. Segovia [Wed, 16 Nov 2022 22:16:08 +0000 (19:16 -0300)]
ICU-22203 Windows: enable C-code generation with overridden entry point

2 years agoICU-22204 toolutil: Fix crash when trying to generate MinGW assembly cldr/2022-12-02
L. E. Segovia [Wed, 16 Nov 2022 22:16:08 +0000 (19:16 -0300)]
ICU-22204 toolutil: Fix crash when trying to generate MinGW assembly

2 years agoICU-22100 Incorporate BudouX into ICU (C++)
Shuhei Iitsuka [Fri, 29 Jul 2022 04:08:01 +0000 (12:08 +0800)]
ICU-22100 Incorporate BudouX into ICU (C++)

2 years agoICU-20115 ICU4C: Move SimpleDateFormat over to SimpleNumberFormatter
Manish Goregaokar [Wed, 23 Nov 2022 01:00:51 +0000 (17:00 -0800)]
ICU-20115 ICU4C: Move SimpleDateFormat over to SimpleNumberFormatter

2 years agoICU-22217 TZ Database 2022g updates
yumaoka [Wed, 30 Nov 2022 19:14:38 +0000 (14:14 -0500)]
ICU-22217 TZ Database 2022g updates

2 years agoICU-22093 ICU4C: Add SimpleNumber and SimpleNumberFormatter
Shane F. Carr [Wed, 23 Nov 2022 22:48:12 +0000 (22:48 +0000)]
ICU-22093 ICU4C: Add SimpleNumber and SimpleNumberFormatter

See #2241

2 years agoICU-22214 Fix set pointer to false in sprpdata.c
Victor Chang [Mon, 28 Nov 2022 15:25:29 +0000 (15:25 +0000)]
ICU-22214 Fix set pointer to false in sprpdata.c

2 years agoICU-22201 Add test to verify ICU-22043 on Java
Frank Tang [Wed, 22 Jun 2022 16:05:15 +0000 (09:05 -0700)]
ICU-22201 Add test to verify ICU-22043 on Java

2 years agoICU-22206 Fix unsafe mix of UBool
Frank Tang [Fri, 18 Nov 2022 04:49:37 +0000 (20:49 -0800)]
ICU-22206 Fix unsafe mix of UBool

Fix "unsafe mix of type 'UBool' and type 'bool' in operation:

2 years agoICU-22198 Fix stack buffer overflow.
Eli Kobrin [Thu, 3 Nov 2022 15:25:33 +0000 (18:25 +0300)]
ICU-22198 Fix stack buffer overflow.

2 years agoICU-22164 Replace switch+getType with subclass
Frank Tang [Thu, 10 Nov 2022 01:22:16 +0000 (01:22 +0000)]
ICU-22164 Replace switch+getType with subclass

See #2215

fix

2 years agoICU-10752 Spread (s|g)etRelativeYear to subclass
Frank Tang [Thu, 22 Sep 2022 04:11:38 +0000 (21:11 -0700)]
ICU-10752 Spread (s|g)etRelativeYear to subclass

Remove the switch statment implementaiton in
Calendar::(g|s)etRelatedYear
and move the code into each subclass as proper OOP style.

2 years agoICU-22191 writesrc.cpp: enable PRI formatting constants on all compilers
Markus Scherer [Mon, 7 Nov 2022 18:34:44 +0000 (10:34 -0800)]
ICU-22191 writesrc.cpp: enable PRI formatting constants on all compilers

2 years agoICU-22119 Add lw=phrase for Korean using line_*_phrase_cj
Jungshik Shin [Thu, 25 Aug 2022 08:04:33 +0000 (01:04 -0700)]
ICU-22119 Add lw=phrase for Korean using line_*_phrase_cj

brkitr/ko.txt is created to use line_*_.cj.txt for both
lw=phrase and lw != phrase cases for Korean. This is the simplest
way to fix ICU-22119 taking advantage of the fact that ICU
does not have a Korean dictionary so we don't have to worry about
adding the list of Korean particles to keep them attached to the
preceeding word.

The downside is that it only works when the locale is ko or ja while
it should work in any locale. Another is it makes ICU deviate from
CSS3 by using the same CJ (conditonal Japanese) rules for Korean as
well. However, CSS3 spec is wrong on that point and should be changed.
See https://unicode-org.atlassian.net/browse/CLDR-4931 .

2 years agoICU-21180 RuleBasedBreakIterator, refactor init.
Andy Heninger [Fri, 21 Oct 2022 03:30:24 +0000 (20:30 -0700)]
ICU-21180 RuleBasedBreakIterator, refactor init.

In class RuleBasedBreakIterator, refactor how object initialization is handled
by the various constructors, taking advantage of C++11's ability to directly
initialize data members in the class declaration.

This will simplify ongoing maintenance of the code by eliminating the need
to keep initialization lists synchronized with the class data members.
This is being done now in preparation for additional changes to fix problems
with the handling of memory allocation failures.

2 years agoICU-22196 TZ Database 2022f updates
yumaoka [Tue, 1 Nov 2022 14:21:51 +0000 (10:21 -0400)]
ICU-22196 TZ Database 2022f updates

2 years agoICU-22194 runConfigureICU computer->compiler
Markus Scherer [Mon, 31 Oct 2022 18:52:49 +0000 (11:52 -0700)]
ICU-22194 runConfigureICU computer->compiler

@josephshen found that the help text here has the wrong word, and I dropped the ball on his PR #2217 :-(

2 years agoICU-22159 Merge inDaylightTime to Calendar
Frank Tang [Thu, 22 Sep 2022 03:05:55 +0000 (20:05 -0700)]
ICU-22159 Merge inDaylightTime to Calendar

All the subclass implementation of inDaylightTime are the same
so just move to a base class implementation.

2 years agoICU-22160 clean up Calendar code
Frank Tang [Thu, 22 Sep 2022 02:53:29 +0000 (19:53 -0700)]
ICU-22160 clean up Calendar code

Remove unnecessary BuddhistCalendar::handleComputeMonthStart
Remove unnecessary include

2 years agoICU-22194 Fix typo in doc for BreakIterator rules update
Elango Cheran [Thu, 27 Oct 2022 21:21:29 +0000 (14:21 -0700)]
ICU-22194 Fix typo in doc for BreakIterator rules update

2 years agoICU-22191 writesrc.cpp: fix cinttypes header and place after C headers
Sergey Fedorov [Fri, 21 Oct 2022 07:36:12 +0000 (15:36 +0800)]
ICU-22191 writesrc.cpp: fix cinttypes header and place after C headers

2 years agoICU-21180 BreakIterator, change all NULL to nulptr
Andy Heninger [Thu, 20 Oct 2022 22:12:36 +0000 (15:12 -0700)]
ICU-21180 BreakIterator, change all NULL to nulptr

In the C++ break iterator code, change all use of NULL to nullptr.
This is in preparation for follow-on PRs to improve out-of-memory error handling
in Break Iterators, keeping use of nullptr consistent between old and new
or updated code.

2 years agoICU-22190 Update KEYS with additional signature data.
Fredrik Roubert [Fri, 21 Oct 2022 13:42:37 +0000 (15:42 +0200)]
ICU-22190 Update KEYS with additional signature data.