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
53568e8dfc
ICU-22520 Refactor CharString & CharStringByteSink into helper.
...
The repeated sequence of allocating a CharString and CharStringByteSink,
before calling some function that writes into this, can be moved into a
single shared helper function which then is used to give all ulocimp.h
functions that write to ByteSink an overload that instead returns a
CharString, to make call sites look like perfectly normal C++ code.
2024-03-05 23:44:50 +01:00
Fredrik Roubert
939f08f274
ICU-22520 Use C++ function signatures for internal C++ functions.
...
Some of this code was originally written as C code and some of this code
was originally written as C++ code but made to resemble the then already
existing code that had once been C code. Changing it all to normal C++
now will make it easier and safer to work with going forward.
· Use unnamed namespace instead of static.
· Use reference instead of non-nullable pointer.
· Use bool instead of UBool.
· Use constexpr for static data.
· Use U_EXPORT instead of U_CAPI or U_CFUNC.
· Use the default calling convention instead of U_EXPORT2.
2024-02-12 21:44:06 +01:00
Fredrik Roubert
d28e12b1f2
ICU-22520 Replace char arrays with icu::CharString.
2024-02-06 19:53:53 +01:00
Fredrik Roubert
6d1999fbb9
ICU-21289 Switch to using CharString for calling uloc_getKeywordValue().
2023-09-25 19:02:41 +02: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
Markus Scherer
fda4a82bba
ICU-21960 fix clang 13 C++20 warnings
2022-05-07 15:21:08 +00:00
Peter Varga
1986dcd0d8
ICU-21734 Add missing overrides
2021-09-07 17:42:14 -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
Markus Scherer
c8aa800735
ICU-21035 add & use CharString::extract(dest buffer)
...
See #1253
2020-08-21 16:29:25 -07:00
Markus Scherer
f02b496494
ICU-20783 C++ covariant return types: clone(), freeze() & friends
2019-08-22 16:24:41 -07:00
Fredrik Roubert
c3abe48e1c
ICU-20447 fix uloc_getName(x) same as Locale(x).getName() etc. for ""/"und"/"root"
2019-02-23 16:21:57 +01:00
Daniel Ju
b13c951348
ICU-20043 ICU-13214 ICU-13764 MSVC W3 and W4 warning cleanup ( #53 )
...
Cleaned up all of the MSVC W3 warnings and most of the W4 warnings in the common and i18n projects.
2018-09-27 14:27:38 -07: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
Steven R. Loomis
6825277072
ICU-12752 commit some IBM z fixes. Library code building
...
X-SVN-Rev: 39368
2016-09-27 23:39:01 +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
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
Andy Heninger
b00b0d552e
ICU-11249 class NFDIterator change base from UMemory to UObject. For ICU 54 BRS Verify Malloc Functions task.
...
X-SVN-Rev: 36442
2014-09-10 20:16:12 +00:00
Andy Heninger
a7eb42956a
ICU-11249 BRS 54: Verify malloc functions fix to class NFDIterator.
...
X-SVN-Rev: 36421
2014-09-10 00:54:15 +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
Travis Keep
f335b55bdf
ICU-10802 Merge branch tkeep/10802andy into trunk.
...
X-SVN-Rev: 36214
2014-08-20 21:46:02 +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
Markus Scherer
1379df9789
ICU-10998 test for only-none before comparing with the current list of reordering codes
...
X-SVN-Rev: 36018
2014-07-09 23:36:19 +00:00
Markus Scherer
9bc6f268fb
ICU-10998 collation reorder others=Zzzz, recognize only others = reset
...
X-SVN-Rev: 36017
2014-07-09 22:53:09 +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