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
638acd0c38
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
2023-02-06 15:47:14 -08:00
Fredrik Roubert
2de88f9d9c
ICU-21833 Replace UChar with char16_t in all C++ code.
2023-02-06 19:27:44 +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
Fredrik Roubert
0a1cfa398c
ICU-20973 Use standard keywords true & false to initialize type bool.
...
Now when all equality operators return standard bool (commit 633438f
),
it no longer makes any sense to use the ICU4C constants TRUE & FALSE
or local variables of type UBool for their return value.
2021-08-26 18:53:10 +02:00
Fredrik Roubert
633438f8da
ICU-20973 Change all equality operator return types from UBool to bool.
2021-08-17 00:35:00 +02:00
Markus Scherer
767598009d
ICU-21368 unit-test & fix BytesTrie jump delta encoding
2021-03-08 17:18:14 -08:00
Andy Heninger
278b9cb735
ICU-20079 integer overflow & divide by zero sanitizer fixes. ( #67 )
2018-09-27 14:27:38 -07:00
Andy Heninger
04448b004f
ICU-12764 UTF-8 source files, update file encoding comments.
...
X-SVN-Rev: 39641
2017-02-03 18:57:23 +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
Markus Scherer
7960164327
ICU-12663 UnicodeString support nearly 2G UChars & avoid integer overflows; string-to-string case mappings & detect integer overflows; make some calls to uprv_memcpy() and similar a little more robust by casting int32_t to size_t before multiplying
...
X-SVN-Rev: 39288
2016-09-20 01:10:36 +00:00
Fredrik Roubert
3959b30d02
ICU-12140 Pass StringPiece by value, externally.
...
R=markus.icu@gmail.com
Review URL: https://codereview.appspot.com/306850043 .
X-SVN-Rev: 39064
2016-08-17 19:07:15 +00:00
Fredrik Roubert
de579d3bf9
ICU-12140 Pass StringPiece by value, internally.
...
R=markus.icu@gmail.com
Review URL: https://codereview.appspot.com/305000043 .
X-SVN-Rev: 39024
2016-08-04 17:40:53 +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
Markus Scherer
2f6df5d520
ICU-9434 use static_cast<pointer type>(void *) not reinterpret_cast
...
X-SVN-Rev: 32119
2012-08-08 00:50:16 +00:00
Michael Ow
0ca13b73b0
ICU-9292 Merge BEAM warning fixes from branch into trunk
...
X-SVN-Rev: 31792
2012-05-03 05:50:26 +00:00
Yoshito Umaoka
e9503bdade
ICU-8909 Fixed various warnings reported by a source code analysis tool.
...
X-SVN-Rev: 30958
2011-11-14 19:32:51 +00:00
Markus Scherer
9f7d74001c
ICU-8605 document & test ICU4C dependencies, remove cycles, reduce some deps; merged from branches/markus/depstest -r 30155:30193
...
X-SVN-Rev: 30194
2011-06-03 05:23:57 +00:00
Markus Scherer
d55e005cf7
ICU-8167 move string tries to the common library and make API headers public
...
X-SVN-Rev: 29531
2011-03-03 21:56:36 +00:00