Fredrik Roubert
55c5895923
ICU-22793 Clang-Tidy: google-readability-casting
...
https://releases.llvm.org/19.1.0/tools/clang/tools/extra/docs/clang-tidy/checks/google/readability-casting.html
2024-09-19 18:59:13 +02:00
Fredrik Roubert
0bf8a95309
ICU-22793 Remove superfluous return value typecasts to UBool.
2024-09-19 17:11:38 +02: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
Markus Scherer
b6dcc95d3c
ICU-21833 remove redundant void parameter lists
...
See #2351
2023-03-02 09:31:57 -08:00
Frank Yung-Fong Tang
80414a247b
ICU-22224 Enable UBSAN and fix breakage
...
See #2324
2023-02-27 17:31:49 -08: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
85705f04e0
ICU-21960 C++20 Warnings from ATOMIC_VAR_INIT
...
Remove the ICU macros ATOMIC_INT32_T_INITIALIZER and U_INITONCE_INITIALIZER,
which made use of C++ ATOMIC_VAR_INIT, which has been removed from C++20.
With modern C++ features being available, these macros no longer served
any real need.
2022-05-17 15:45:06 -07:00
Erik Torres Aguilar
bd3b202741
ICU-21018 Fix typos across repo that start with letter A
...
See #1506
2021-01-06 15:15:35 -08:00
Diego Barrios Romero
de0306daaa
ICU-21170 Fix function prototypes
2020-06-25 15:31:11 -07:00
Andy Heninger
afa9b9b48e
ICU-20588 UMutex, add cleanup of underlying mutexes, and simplify usage model
2019-05-24 13:24:59 -07:00
Andy Heninger
b772241b52
ICU-20520 UMutex refactoring.
...
- Use STATIC_NEW for mutex creation, to avoid order-of-destruction problems
by avoiding destruction altogether, while avoiding memory leak reports.
- Remove UConditionVar, replace with direct use of std::condition_variable
2019-05-07 13:50:49 -07:00
Andy Heninger
bc4bb89af2
ICU-20488 mutex static constructor fixes.
...
Remove the dependencies from the ICU library code on static constructors
that were introduced by using std::mutex and condition variables. The
mutexes are lazily initialized by embedding them as local static variables
in getter functions, and relying on the C++ compiler/runtime to do thread
safe initialization of them.
2019-03-12 09:52:16 -07:00
Andy Heninger
47d455a725
ICU-20179 Remove platform-specific mutex and atomics implementations.
...
Remove all POSIX and Win32 specific mutex, atomic and threading implementations
in favor of C++11 std library functions.
Move the related (internal) ICU types and functions into the icu namespace.
2018-11-19 17:17:09 -08:00
Shane Carr
530bad0b79
ICU-13676 Enabling cleanup of default converter whenever the default converter is put back into the global singleton cache.
...
X-SVN-Rev: 41314
2018-05-03 06:50:50 +00: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
Fredrik Roubert
7f4b8d106b
ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
...
R=markus.icu@gmail.com
Review URL: https://codereview.appspot.com/285520043 .
X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Markus Scherer
2ad94b4e93
ICU-11601 UConverterSharedData: add isReferenceCounted, stop checking for special referenceCounter=~0 value outside mutex to make thread sanitizer happy, remove long-unused table pointer field, add & use initializer macro
...
X-SVN-Rev: 37476
2015-05-29 19:33:24 +00:00
Markus Scherer
8e6898ae3d
ICU-11296 based on patch from Jungshik, approved option name UCONFIG_ONLY_HTML_CONVERSION, turn off UTF-32, simplify changes, fix warnings
...
X-SVN-Rev: 37045
2015-02-20 19:31:33 +00:00
Steven R. Loomis
7e6c572256
ICU-10774 fix a knownissue: Collator::getAvailableLocales calculation.
...
Also, replace uhash_nextElement's parameter "-1" with UHASH_FIRST for clarity.
Also, improve service registration debugging code
X-SVN-Rev: 36836
2014-12-09 23:54:56 +00:00
Andy Heninger
f2f67fbaa8
ICU-10373 A few more namespace tweaks to fix the Windows build.
...
X-SVN-Rev: 34255
2013-09-10 03:44:20 +00:00
Andy Heninger
d4233dc050
ICU-10373 Fix ambiguous names build problem from previous namesapce change.
...
X-SVN-Rev: 34253
2013-09-10 00:46:27 +00:00
Markus Scherer
8f38199123
ICU-10365 fix namespace issue: icu::UInitOnce
...
X-SVN-Rev: 34252
2013-09-10 00:34:12 +00:00
Steven R. Loomis
86c481026c
ICU-10373 fix -DU_USING_ICU_NAMESPACE=0 issues
...
X-SVN-Rev: 34251
2013-09-10 00:13:41 +00:00
Andy Heninger
ae87a3acc2
ICU-10051 Mutexes: introduce UInitOnce; remove UMTX_CHECK; replace all uses of UMTX_CHECK. All the directories this time.
...
X-SVN-Rev: 33788
2013-06-01 03:37:16 +00:00
Michael Ow
ebad01d878
ICU-9687 Propagate the ambiguous alias warning when opening converter
...
X-SVN-Rev: 32907
2012-11-29 21:38:40 +00:00
Andy Heninger
803ac8f33c
ICU-9461 Mutex Implementation Rework, merge from devel branch.
...
X-SVN-Rev: 32530
2012-10-05 21:22:02 +00:00
George Rhoten
dc75668c05
ICU-9457 Fix some compiler warnings
...
X-SVN-Rev: 32095
2012-08-03 19:09:42 +00:00
Steven R. Loomis
1e1f8509d8
ICU-8755 interim fix. MessagePattern still needs fixing.
...
X-SVN-Rev: 30505
2011-08-13 02:45:09 +00:00
Markus Scherer
07035f8756
ICU-8731 move some @internal definitions to putilimp.h
...
X-SVN-Rev: 30433
2011-07-27 21:26:00 +00:00
Markus Scherer
9bcc40cf9e
ICU-8452 un-autoconf platform.h, move user-configurable settings to uconfig.h, and other changes; from svn merge --reintegrate branches/markus/platformh at r30411
...
X-SVN-Rev: 30412
2011-07-23 00:10:30 +00:00
Markus Scherer
41c8654d92
ICU-8601 replace C U_INLINE hack with C++ inline, and also rename a few other .c files to .cpp for future UMTX_CHECK replacement
...
X-SVN-Rev: 30148
2011-05-26 20:05:39 +00:00