Frank Tang
cdf52396dc
ICU-22817 Fix memory leak in basictz by using LocalPointer
...
See https://github.com/LuMingYinDetect/icu_defects/blob/main/icu_1.png
2025-03-18 14:03:29 -07:00
Frank Tang
9eafd8ca3e
ICU-22991 Reduce Calendar object size
...
See #3327
2025-01-08 12:26:35 -08:00
Fredrik Roubert
0178a07a26
ICU-22793 Clang-Tidy: google-readability-casting
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-07-04 22:32:12 +02:00
Frank Tang
6ac6fdda74
ICU-22730 propagate error avoid overflow
2024-05-16 00:27:14 -07:00
Fredrik Roubert
6ad78a08c7
ICU-22621 Clang-Tidy: readability-redundant-control-flow
...
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/redundant-control-flow.html
2024-03-19 15:55:56 +01:00
Fredrik Roubert
2e0d30cfcf
ICU-21833 Replace NULL with nullptr in all C++ code.
2023-02-03 20:20:38 +01:00
Fredrik Roubert
030fa1a479
ICU-21148 Consistently use standard lowercase true/false everywhere.
...
This is the normal standard way in C, C++ as well as Java and there's no
longer any reason for ICU to be different. The various internal macros
providing custom boolean constants can all be deleted and code as well
as documentation can be updated to use lowercase true/false everywhere.
2022-09-07 20:56:33 +02:00
Andy Heninger
6f1d83cf63
ICU-21662 UVector cleanup in basictz.cpp
...
Revise uses of UVector in basictz.cpp to better handle memory allocation failures.
This is one of an ongoing series of commits to address similar problems with
UVector usage throughout ICU.
The changes primarily involve switching to the use of LocalPointers for
the tracking of memory ownership, and to simplify cleanup in case of errors.
In the function BasicTimeZone::getTimeZoneRulesAfter(), also switched some additional
allocated memory to use LocalPointer or LocalMemory, for consistency in
memory handling.
2021-09-17 14:35:18 -07:00
Andy Heninger
c26aebe802
ICU-21662 Rename UVector::addElement().
...
This is the first step towards improving the error handling and out-of-memory
behavior of UVector::addElement(). A followup PR will add back a new addElement()
with corrected error handling, then additional followups will switch call sites
from the original (renamed) function to the new addElement().
This commit includes no logic or behavior changes; it only renames the existing functions.
2021-07-28 15:36:50 -07:00
yumaoka
53aa0505c5
ICU-21372 getOffsetFromLocal for C and C++
...
See #1610
2021-03-02 10:21:28 -08:00
inokawa
bb5d29b143
ICU-21416 Fix typos in comments
2020-12-09 14:17:14 -08:00
Andy Heninger
242e02c388
ICU-12764 icu4c utf-8 source files, update Copyright notices.
...
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Michael Ow
61607c2773
ICU-12564 Update copyright notice in trunk
...
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126
ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
...
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f
ICU-12564 Update copyright notice in ICU4C
...
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Yoshito Umaoka
b676128bfe
ICU-9648 Changed BasicTimeZone public API methods to const.
...
X-SVN-Rev: 33109
2013-02-01 07:39:04 +00:00
Yoshito Umaoka
4e8f6e1ed2
ICU-7518 Workaround for 24:00 on a transition day problem. Use 23:59:59.999 as the transition time. iCal VTIMEZONE is not capable to handle such rule. Also a minor bug fix in BasicTimeZone::hasEquivalentTransitions which was found while updating the test case. This fix is equivalent to the ICU4J fix r28879.
...
X-SVN-Rev: 28880
2010-10-20 07:46:11 +00:00
Andy Heninger
5bcaaa08dc
ICU-7606 VTimeZone, add factory to create from BasicTimeZone.
...
X-SVN-Rev: 28311
2010-07-14 23:42:09 +00:00
Andy Heninger
74e297291f
ICU-7780 fix various compiler warnings
...
X-SVN-Rev: 28301
2010-07-12 18:03:29 +00:00
Andy Heninger
037e5ac508
ICU-7816 time zone infinite loop breaking
...
X-SVN-Rev: 28298
2010-07-12 17:24:09 +00:00
Markus Scherer
f6a04770ff
ICU-7455 use compiler RTTI; stop adding poor mans RTTI to new class hierarchies
...
X-SVN-Rev: 28075
2010-05-19 17:29:33 +00:00
Yoshito Umaoka
e17f7525bb
ICU-7227 Merging the fix done for #7227 from ICU4J to ICU4C. ICU4C does not have equivalent test case, so it did not report the exact same problem.
...
X-SVN-Rev: 26851
2009-11-06 05:24:37 +00:00
Andy Heninger
c89045b0d6
ICU-6799 swat compiler warnings
...
X-SVN-Rev: 25661
2009-03-27 00:37:55 +00:00
George Rhoten
e7ccc2b315
ICU-6176 Fix some Coverity warnings.
...
X-SVN-Rev: 23431
2008-02-14 03:34:27 +00:00
Yoshito Umaoka
7e51ed7330
ICU-5990 Merging time zone formatting/parsing changes from yoshito's working branch to the trunk.
...
X-SVN-Rev: 22978
2007-11-28 20:49:58 +00:00
Yoshito Umaoka
5c3732d32b
ICU-5454 Update argument of operator== in RuleBasedTimeZone, InitialTimeZoneRule, AnnualTimeZoneRule and TimeArrayTimeZoneRule to match their super class.
...
X-SVN-Rev: 21886
2007-07-02 14:56:08 +00:00
George Rhoten
78c96b07fa
ICU-5454 Fix newline settings for new code.
...
X-SVN-Rev: 21851
2007-06-29 16:27:12 +00:00
Yoshito Umaoka
b340ff12f6
ICU-5454 Merging ICU4C RuleBasedTimeZone/TimeZoneRule/VTimeZone implementation into trunk
...
X-SVN-Rev: 21845
2007-06-29 03:10:43 +00:00