Commit graph

48 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
91721504ef ICU-22621 Clang-Tidy: modernize-return-braced-init-list
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/return-braced-init-list.html
2024-03-21 13:50:45 +01:00
Frank Tang
0b77215040 ICU-22698 Clean up CalendarAstronomer 2024-03-20 13:36:17 -07:00
Fredrik Roubert
2295478716 ICU-22621 Clang-Tidy: readability-const-return-type
https://releases.llvm.org/17.0.1/tools/clang/tools/extra/docs/clang-tidy/checks/readability/const-return-type.html
2024-03-18 17:14:23 +01:00
Markus Scherer
b6dcc95d3c ICU-21833 remove redundant void parameter lists
See #2351
2023-03-02 09:31:57 -08:00
Fredrik Roubert
2e0d30cfcf ICU-21833 Replace NULL with nullptr in all C++ code. 2023-02-03 20:20:38 +01:00
Frank Tang
de0a28644b ICU-22251 Move sprintf to snprintf.
See #2291
2023-01-25 23:23:29 -08: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
1986dcd0d8 ICU-21734 Add missing overrides 2021-09-07 17:42:14 -07: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
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
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
Andy Heninger
803ac8f33c ICU-9461 Mutex Implementation Rework, merge from devel branch.
X-SVN-Rev: 32530
2012-10-05 21:22:02 +00:00
Markus Scherer
2862296471 ICU-8454 virtual destructors should be explicit, and defined in a .cpp file, so that they can serve as key functions
X-SVN-Rev: 30423
2011-07-26 05:32:25 +00:00
Steven R. Loomis
63849800d4 ICU-6617 some haiku support. update config.guess and cleanup other test code.
X-SVN-Rev: 24942
2008-11-08 02:04:15 +00:00
Steven R. Loomis
2145eb11be ICU-6551 reduce use of common words in rename.
X-SVN-Rev: 24652
2008-09-25 20:24:14 +00:00
George Rhoten
c05bd41d42 ICU-6118 Export less internal API.
X-SVN-Rev: 23173
2008-01-04 08:45:10 +00:00
Andrew J Macheret
f8339df718 ICU-4081 Ported Chinese calendar from icu4j. Mostly working.
X-SVN-Rev: 22853
2007-10-25 20:26:34 +00:00
Eric Mader
bb4a371fdb ICU-5805 Update copyright notices for ICU 3.8
X-SVN-Rev: 22167
2007-07-27 03:12:12 +00:00
Markus Scherer
a314ab91e3 ICU-5445 use <> for system headers
X-SVN-Rev: 21724
2007-06-13 20:27:13 +00:00
George Rhoten
cbd6f5368e ICU-5032 Remove unused code.
X-SVN-Rev: 19892
2006-07-25 22:42:34 +00:00
George Rhoten
198bcd69bb ICU-4707 Fix some compiler warnings.
X-SVN-Rev: 19887
2006-07-25 03:58:17 +00:00
Ram Viswanadha
b70227e2c7 ICU-4741 make compare functions for Hashtable and StringEnumeration general
X-SVN-Rev: 18788
2005-11-11 19:23:09 +00:00
Steven R. Loomis
5bd9b6f420 ICU-4703 BEAM fixes
X-SVN-Rev: 18435
2005-08-15 21:50:56 +00:00
Andy Heninger
665e553354 ICU-4161 remove tabs from source code
X-SVN-Rev: 16829
2004-11-11 23:34:58 +00:00
George Rhoten
9fe39e1c8c ICU-3805 Break putil.h/utypes.h header file dependancy loop
X-SVN-Rev: 16529
2004-10-18 02:43:33 +00:00
George Rhoten
7dd960a8b4 ICU-4078 Loosely couple the cleanup functions.
X-SVN-Rev: 16307
2004-09-12 23:07:29 +00:00
George Rhoten
06c453a741 ICU-4084 Remove unused debugging statements.
X-SVN-Rev: 16229
2004-08-31 21:02:37 +00:00
Eric Mader
abefef5844 ICU-3770 Updated copyright notices for ICU 3.0
X-SVN-Rev: 15411
2004-05-19 20:42:44 +00:00
George Rhoten
2f7feeea3e ICU-3236 Don't export some functions
X-SVN-Rev: 14331
2004-01-15 22:12:26 +00:00
Steven R. Loomis
b93c3619d9 ICU-2424 fix compiler warnings
X-SVN-Rev: 14266
2004-01-08 21:49:54 +00:00
Steven R. Loomis
fcf9649d9c ICU-2424 use new uhash_i[get/put]i for 64 bit safety
X-SVN-Rev: 14187
2003-12-19 02:19:14 +00:00
George Rhoten
e08b903f4f ICU-2424 Fix some of the compiler issues that arise from the last check-in
X-SVN-Rev: 14065
2003-12-09 23:12:23 +00:00
Steven R. Loomis
7fb178d7d0 ICU-2424 hebrew checked in, placeholder for chinese
X-SVN-Rev: 14060
2003-12-09 20:44:56 +00:00
Steven R. Loomis
5c899d41bc ICU-2424 iSeries fixes
X-SVN-Rev: 14008
2003-12-04 23:12:02 +00:00
Steven R. Loomis
a0d543bcf3 ICU-2424 remove statics, more cleanups, fix UMR
X-SVN-Rev: 13986
2003-12-04 00:42:38 +00:00
Steven R. Loomis
3a8218bb8f ICU-2424 warnings and cleanup
X-SVN-Rev: 13954
2003-12-03 00:12:47 +00:00
Steven R. Loomis
e5d7683504 ICU-2424 remove heap allocations
X-SVN-Rev: 13948
2003-12-02 20:44:16 +00:00
Steven R. Loomis
808a7c45e1 ICU-2424 remove use of DBL_MIN
X-SVN-Rev: 13884
2003-11-25 19:23:59 +00:00
Steven R. Loomis
e579854991 ICU-2424 aix compile errs
X-SVN-Rev: 13856
2003-11-24 22:25:51 +00:00
Steven R. Loomis
7c46a9b274 ICU-2424 fixes for astronomer
X-SVN-Rev: 13847
2003-11-24 21:34:45 +00:00
Steven R. Loomis
24f0431f78 ICU-2424 islamic calendar
X-SVN-Rev: 13845
2003-11-24 20:02:11 +00:00