Commit graph

177 commits

Author SHA1 Message Date
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
Fredrik Roubert
5401c12018 ICU-22621 Clang-Tidy: modernize-use-nullptr
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/use-nullptr.html
2024-03-15 14:31:54 +01:00
Frank Tang
f7f9dbb88d ICU-22641 Change const refs in the class to const pointers
The function may return nullptr, we cannot just deref the return value.
Change them to const pointer instead.
2024-01-23 13:39:49 -08:00
Markus Scherer
b6dcc95d3c ICU-21833 remove redundant void parameter lists
See #2351
2023-03-02 09:31:57 -08: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
Peter Varga
80d42a13fc ICU-21734 Add missing overrides in tests 2021-09-07 13:56:33 -07: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
luz paz
73eca0a9c9 ICU-21580 Fix typos in icu4c/
Found via `codespell -q 3 -L ans,anumber,atleast,ba,bre,hace,nd,nin,ois,rsource,som,sur,tht -S icu4c/source/data/zone,icu4c/source/data/lang`
ICU-21580 Fix source (related) typos
ICU-21580 Revert extraneous auto-encoding
ICU-21580 Re-add previous reverted fix without auto-encoding
2021-07-19 13:22:38 -05:00
Erik Torres
cfefa03539 ICU-21555 fix typos for D, E and F found in the repo
See #1714
2021-05-10 11:09:05 -07:00
Erik Torres Aguilar
6eea259143 ICU-21018 Fix typos across repo that start with letter C
See #1525
2021-01-06 15:15:26 -08:00
Markus Scherer
d3315d98ef ICU-20783 use C++ covariant return types 2019-08-23 11:45:36 -07:00
Markus Scherer
f02b496494 ICU-20783 C++ covariant return types: clone(), freeze() & friends 2019-08-22 16:24:41 -07:00
Jeff Genovy
e72290c45e ICU-13764 Add separate CI build that treats warnings as errors with clang.
This adds a separate CI build that enables -Werror for clang.

This also fixes all of the -Wall -Wextra warnings in the tests, and all the
-Wextra-semi warnings as well.
2019-07-30 22:10:02 -07:00
Shane Carr
1fe1497d88 ICU-13661 Renaming logIfFailureAndReset to errIfFailureAndReset.
X-SVN-Rev: 41362
2018-05-08 23:55:47 +00:00
Peter Edberg
3bfe134a86 ICU-13359 Integrate CLDR 32 alpha data into ICU for ICU 60rc; known issues #13366,#13368
X-SVN-Rev: 40463
2017-09-26 21:20:01 +00:00
Markus Scherer
89c546d69f ICU-12635 fix ranges overrun in collation weight allocator
X-SVN-Rev: 40113
2017-05-05 19:36:48 +00:00
Markus Scherer
4c2fad3e36 ICU-12410 class Edits, class CaseMap with new low-level functions that work with Edits, simpler case properties code, some cleanup
X-SVN-Rev: 39684
2017-02-17 21:03:35 +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
3b23b78b95 ICU-12410 include what you use
X-SVN-Rev: 39553
2017-01-12 18:35:18 +00:00
Markus Scherer
2f358ce4bb ICU-12827 ucol_getKeywordValuesForLocale() reset the keyword-list iterator, and a little UList cleanup
X-SVN-Rev: 39484
2016-10-26 22:05:50 +00:00
Steven R. Loomis
19d7d00bd8 ICU-12701 IBM i fixes (merge to trunk)
X-SVN-Rev: 39289
2016-09-20 04:30:06 +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
a9d7c3e4bd ICU-11449 reorder single scripts not groups, scripts/groups can start on top-16-bit boundaries, data formatVersion 5 for new scripts data and optional reorderRanges appended to reorderCodes
X-SVN-Rev: 36924
2015-01-07 03:37:11 +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
Markus Scherer
326e9592dc ICU-10823 add ures_openNoDefault() and use it from collation data loader and BreakIterator; refactor ures_openXyz() for code sharing
X-SVN-Rev: 36806
2014-12-04 21:11:26 +00:00
Michael Ow
7e3befc1a6 ICU-10992 Ensure ICU4C 54 test suite passes without data
X-SVN-Rev: 36516
2014-09-15 21:51:57 +00:00
Steven R. Loomis
7594250cc5 ICU-7653 changed uprv_lengthof to UPRV_LENGTHOF, also added apidoc
X-SVN-Rev: 36275
2014-08-28 22:13:45 +00:00
Tom Zhang
ee1f29b584 ICU-7653 move LENGTHOF(array) to common, internal header
X-SVN-Rev: 36265
2014-08-28 14:55:34 +00:00
Markus Scherer
725657cd3d ICU-10477 drop already-marginal support for ULOC_REQUESTED_LOCALE
X-SVN-Rev: 36252
2014-08-27 21:27:37 +00:00
Markus Scherer
37c7676f5e ICU-10912 create Collator from binary: support length<0 again, and document that the base collator is required (see ticket #10517)
X-SVN-Rev: 36021
2014-07-10 22:17:20 +00:00
Michael Ow
b1de9c0f30 ICU-10842 Fix header test failures, fix no data test errors, and update file properties
X-SVN-Rev: 35982
2014-07-02 05:09:05 +00:00
Markus Scherer
da533923a2 ICU-8260 support all collation-related keywords in Collator::createInstance()
X-SVN-Rev: 35762
2014-05-27 18:50:10 +00:00
Markus Scherer
da7170882b ICU-10636 make -w tests work without collation rule strings, and without big5han and gb2312han
X-SVN-Rev: 35558
2014-04-01 19:59:27 +00:00
John Emmons
7525392d15 ICU-10745 Merge CLDR25 data into trunk
X-SVN-Rev: 35429
2014-03-12 04:34:00 +00:00
Markus Scherer
c9cda28161 ICU-10738 CollationAPITest/TestVariableTopSetting use the root collator, fails with en_US_POSIX
X-SVN-Rev: 35381
2014-03-07 17:31:39 +00:00
Markus Scherer
e977c057a9 ICU-9101 merge branches/markus/collv2@35225 into the trunk
X-SVN-Rev: 35227
2014-02-25 21:21:49 +00:00
Michael Ow
4835d5705a ICU-10398 Ensure cintltst and intltest passes without data
X-SVN-Rev: 34398
2013-09-19 02:32:57 +00:00
Steven R. Loomis
f0dd9e78dc ICU-10379 fixes for IBM i - passes all tests!
X-SVN-Rev: 34348
2013-09-17 06:31:09 +00:00
Markus Scherer
59b210409f ICU-9915 add comment about test case
X-SVN-Rev: 34309
2013-09-13 17:09:57 +00:00
Markus Scherer
9ef3145fbc ICU-9915 do not mask off the continuation bits and then later test this masked CE value for isContinuation()
X-SVN-Rev: 34298
2013-09-13 03:07:39 +00:00
Andy Heninger
ae4350661b ICU-10048 Fix some compiler warnings in ICU4C.
X-SVN-Rev: 33444
2013-03-21 01:42:01 +00:00
Markus Scherer
44d515a063 ICU-9556 CollationKey with internal array; cleaner more understandable ByteSink code and usage in calcSortKey
X-SVN-Rev: 32408
2012-09-19 23:41:47 +00:00
Markus Scherer
9107a7bb38 ICU-9460 also remove TestCollator::safeClone()
X-SVN-Rev: 32135
2012-08-08 23:50:47 +00:00