Fredrik Roubert
db42c87936
ICU-22954 A build test for C++ header-only APIs with C++ APIs disabled.
2025-02-07 20:14:20 +01:00
Fredrik Roubert
ee8806e87c
ICU-22954 Make UCollator predicates usable without U_SHOW_CPLUSPLUS_API.
...
Until now, the implementation of the UCollator predicates has been using
UnicodeString and StringPiece as convenient wrappers for converting from
standard C++ data types to ICU4C data types.
But as that doesn't work when the client uses ICU4C built without
U_SHOW_CPLUSPLUS_API this is now changed to instead perform these
conversions directly.
(It's a bit more code, but does just the same thing in the end.)
2025-02-07 20:14:20 +01:00
Younies Mahmoud
362a4aa94b
ICU-23032 Update MeasureUnit documentation for forIdentifier
method
...
See #3360
2025-02-06 16:37:58 +01:00
Younies Mahmoud
697f7c0e00
ICU-22781 Fix &Improve MeasureUnit identifier generation for constant denominators (C++)
...
See #3364
2025-02-06 12:06:58 +01:00
Markus Scherer
4a7a4c7521
ICU-22954 USet C++ iter samples no UnicodeString
...
See #3316
2025-02-05 14:47:48 -08:00
Rich Gillam
f9ee689d7a
ICU-22922 Promoted all @draft ICU 75 APIs to @stable ICU 75.
2025-02-05 13:02:56 -08:00
Frank Tang
0112e4292e
ICU-22962 Fix int32_t overflow issue when month is large
2025-02-04 15:39:32 -08:00
Younies Mahmoud
a262e87aa6
ICU-23032 Change appendNumber method to accept long instead of int
...
See #3365
2025-02-04 00:58:25 +01:00
DraganBesevic
0ceea4bee9
ICU-22922 Integrate CLDR 47 release alpha2, part 3, data files
2025-02-03 09:31:43 -08:00
DraganBesevic
c6e1c09dbd
ICU-22922 Integrate CLDR 47 release alpha2, part 2, locale fallback binary files
2025-02-03 09:31:43 -08:00
Manish Goregaokar
bf675e3ba1
ICU-23033 Regenerate scx value array
2025-01-31 15:48:20 -08:00
Almaz Mingaleev
9ad9c03062
ICU-23022 Update ICU data to TZDB 2025a.
2025-01-31 09:43:48 -08:00
Frank Tang
ede201c305
ICU-22994 Use C++ typeid() instead of Calendar::getType() for calendar type comparison
...
See #3310
2025-01-31 15:19:55 +01:00
Felix Xing
cb4344073b
ICU-23026 skip test for QNX
2025-01-30 15:20:26 -08:00
DraganBesevic
d49c1242f9
ICU-22922 Integrate CLDR 47 release alpha1, part 3, source files
2025-01-30 13:45:15 -08:00
DraganBesevic
06c2096fea
ICU-22922 Integrate CLDR 47 release alpha1, part 2, data files
2025-01-30 13:45:15 -08:00
DraganBesevic
90e3e1e882
ICU-22922 Integrate CLDR 47 release alpha1, part 1, binary files
2025-01-30 13:45:15 -08:00
Arthur O'Dwyer
fb64693c28
ICU-22920 Avoid "return by const value" antipattern
...
Returning a const-qualified prvalue doesn't do anything useful, but it does
turn an assignment such as `v = rb.getLocale();` from a move-assignment
into a copy-assignment (because it's forbidden to move-from a const value,
even if it's a const prvalue). Each affected site was diagnosed mechanically
by my fork of Clang. E.g.:
warning: 'const' type qualifier on return type is a bad idea [-Wqual-class-return-type]
391 | const Locale ResourceBundle::getLocale(ULocDataLocaleType type, UErrorCode &status) const
| ^~~~~
2025-01-30 10:58:25 -08:00
Burkov Egor
d61ec78c93
ICU-23011 Add else branch for remove possible CWE-476
2025-01-30 10:54:19 -08:00
Robin Leroy
8a11097b2e
ICU-22984 Generate the C++ UAX29 monkeys
2025-01-29 10:02:44 +01:00
Robin Leroy
a154b5839c
ICU-22984 code motion: move SegmentationRule before RBBIMonkeyKind
2025-01-29 10:02:44 +01:00
Frank Tang
7153a3db52
ICU-23006 Fix Chinese Calendar getActualMaximize
...
See #3348
2025-01-28 16:34:26 -08:00
Frank Tang
4fc1b7e7f6
ICU-22991 Simplified Grego code
...
Use timeToFields instead of dayToFields
ICU-22991 Revert back gregoimp interface change
2025-01-24 17:13:51 -08:00
Younies Mahmoud
d70b252cdc
ICU-22781 Add support for converting units with constant denominators (C++)
...
See #3347
2025-01-25 01:45:49 +01:00
Younies Mahmoud
ba4d4d3ac2
ICU-22781 Adding support for constant denominators (C++)
...
See #3337
2025-01-24 02:06:43 +01:00
Frank Tang
2c667e31cf
ICU-22973 Fix buffer overflow by using CharString
2025-01-23 09:53:56 -08:00
Taichi Haradaguchi
384c54ce66
ICU-22966 Fix -Wshadow warnings in unicode/uset.h
...
Fix -Wshadow warnings displayed
when compiling ICU4C 76.1 or later.
Co-authored-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-21 16:53:06 +09:00
George Rhoten
2d6a4185c3
ICU-22979 Support inverse rule for [] span in RBNF
2025-01-15 08:56:08 -08:00
Frank Tang
13a5e29644
ICU-22929 Improve fuzzer to find leak from udat_open
...
Try to find out what cause ICU-23008. Use ICU-22929 as bug number
to improve fuzzer to find the problem.
According to ICU-23008 bug report, the leak of DecimalFormatSymbols
can be reach by udat_open when the style is UDAT_PATTERN
2025-01-14 15:41:06 -08:00
Tim Chevalier
f8aa68b0c1
ICU-22940 MF2 ICU4C: Error checking improvements in parser
...
Improve checking for OOM errors when allocating UnicodeSets,
per post-merge comments on https://github.com/unicode-org/icu/pull/3236
2025-01-09 18:00:43 -08:00
Mihai Nita
ba5cf31f77
ICU-22921 Add windows script doing jar extraction
2025-01-08 13:54:42 -08:00
Frank Tang
9eafd8ca3e
ICU-22991 Reduce Calendar object size
...
See #3327
2025-01-08 12:26:35 -08:00
Fredrik Roubert
6f93c07a45
ICU-22954 Revert to using std::u16string instead of UnicodeString.
...
It seems as if icu4c-windows-cygwin-gcc only crashes if the constructor
is defined inline, so with the exception of the constructor this commit
reverts the code to commit 320220ef69
.
2025-01-08 10:13:20 +09:00
Fredrik Roubert
a8d9f471ea
ICU-22713 Delete layout/DataDrivenTest.
2025-01-07 15:53:53 +09:00
Fredrik Roubert
b1acce62de
ICU-22713 Delete unused files.
...
It's unclear when (if ever) these files were used for anything, but they
aren't used now and aren't expected to be used in the future.
2025-01-07 15:53:53 +09:00
Fredrik Roubert
c49a9c2a33
ICU-22713 Delete long since dead code.
...
None of the code in this directory is ever compiled unless USING_ICULEHB
is set, so all such conditionally compiled code has been dead ever since
commit 4136a2f257
deleted the layout engine.
2025-01-07 15:53:53 +09:00
Fredrik Roubert
df0422ed3f
ICU-22954 Workaround: Replace std::u16string member with UnicodeString&.
2025-01-07 12:23:51 +09:00
Fredrik Roubert
b2a47f9aa4
ICU-22954 Delete copy & assign from IcuTestErrorCode.
...
There's no reason to ever make a copy of these objects, existing code
that does this is doing it by mistake.
2025-01-07 12:23:51 +09:00
Frank Tang
6091406a3a
ICU-22991 Reduce fStamp to 8 bits
...
See #3323
2025-01-06 18:38:17 -08:00
Frank Yung-Fong Tang
4c3622f218
ICU-23000 Replace CharString for LocaleBased
...
See #3321
2025-01-06 14:09:30 -08:00
Frank Tang
93ce388619
ICU-23002 Fix int64_t overflow in NFRule::parseRuleDescriptor
...
See #3324
2025-01-03 15:48:24 -08:00
Almaz Mingaleev
ed69e5336d
ICU-22992 madvise memory mapped files on Android.
2025-01-03 15:00:51 -08:00
Frank Tang
841e88bc8c
ICU-22991 Remove unused private fIsSet
...
This field is removed in Java 24 years ago. Save 24 bytes per Calendar
object.
2024-12-23 14:58:56 -08:00
Frank Tang
e515c84645
ICU-22991 Remove unnecessary overload in Calendar
2024-12-23 12:52:11 -08:00
Frank Tang
ff31805f56
ICU-22991 Change fIsTimeSet fAreFieldsSet fAreAllFieldsSet fAreFieldsVirtuallySet fIsSet fStamp to private
...
https://docs.google.com/document/d/1RqP3s7Y1YLahqopNcuadl3DT-DMIZ7ASXZbSy7M2mFE/edit?tab=t.0#heading=h.lok0fhe381qa
2024-12-23 12:51:13 -08:00
Markus Scherer
b0ae845e47
ICU-22954 USetHeaderOnlyTest use unique_ptr
2024-12-23 11:17:14 -08:00
Markus Scherer
c0a3fe15d4
ICU-22954 Partially revert PR #3295 U_ICU_NAMESPACE_OR_INTERNAL, header-only localpointer
...
This partially reverts commit 3527b3d320
.
Making LocalPointer header-only, with a different namespace when compiling internally,
turned out to be problematic.
2024-12-23 11:17:14 -08:00
Markus Scherer
38b6d7fe5a
ICU-22954 Revert PR #3295 make all LocalXyzPointer header-only
...
This reverts commit 5bdb4c44af
.
Making LocalPointer header-only, with a different namespace when compiling internally,
turned out to be problematic.
2024-12-23 11:17:14 -08:00
Frank Tang
7546622f87
ICU-22991 Remove unnecessary computeGregorianAndDOWFields private
...
Move the DOW calculation into computeWeekFields
2024-12-20 16:33:53 -08:00
Frank Tang
4c9ef1a31b
ICU-22962 Fix int overflow in Calendar::handleComputeJulianDay
2024-12-20 16:12:58 -08:00