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
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
Frank Tang
de0a28644b
ICU-22251 Move sprintf to snprintf.
...
See #2291
2023-01-25 23:23:29 -08:00
Frank Tang
da5d3e0c5b
ICU-22206 Fix unsafe mix of UBool
...
Fix "unsafe mix of type 'UBool' and type 'bool' in operation:
2022-11-18 10:36:55 -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
Rich Gillam
c37ca411fc
ICU-13353 Fixed several problems preventing horizontal resource inheritance from working as intended, and added a
...
Java version of a unit test I'd previously only added on the C++ side.
2021-09-10 12:47:15 -07: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
Rich Gillam
edaebfa64e
ICU-21155 Add support for all hour and day-period skeleton characters to DateIntervalFormat
2020-09-03 16:14:08 -07:00
Jeff Genovy
5c8b142a92
ICU-21014 Fix OOM not checked in dtitvfmt.cpp and dtitvinf.cpp
2020-03-13 18:05:46 -07:00
Frank Tang
be3ee4cc63
ICU-20967 add millisecond to DateIntervalFormat
...
See #978
2020-03-05 10:55:19 -08:00
Frank Tang
1ab75afc5f
ICU-20706 Fix DateInterval::createInstance w/ test
...
See #876
2019-10-09 16:13:47 -07:00
Fredrik Roubert
4fb47b12a7
ICU-20601 Wrap ICU implementation compound macros in do { } while.
...
This does the same for the ICU implementation code as was done for the
public ICU API in commit 480bec3ea6
.
2019-08-15 20:48:50 +02:00
Peter Edberg
2f06d1de55
ICU-20537 jaEra: DateIntvFmt load fmts with G, SimpDateFmt.applyPattern update Gannen use, fix tests
2019-04-08 08:35:48 -07: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
Felipe Balbontín
f07359517d
ICU-12623 Update DateIntervalInfo in ICU4C to new version of ResourceSink.
...
X-SVN-Rev: 38979
2016-07-18 22:16:40 +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
f292628ed7
ICU-12446 Resource sink size: move into new enter(size) method
...
X-SVN-Rev: 38606
2016-04-07 00:18:33 +00:00
Felipe Balbontín
1841ee8d5d
ICU-12013 Refactor DateIntervalFormat resource data loading using the sink on ICU4C.
...
X-SVN-Rev: 38417
2016-02-27 09:24:54 +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
Peter Edberg
a8325d335c
ICU-11706 (and #11726 ) Fix DateIntervalFormat handling of (1) skeletons with seconds, (2) FieldPosition
...
X-SVN-Rev: 37613
2015-06-23 22:07:03 +00:00
Travis Keep
210b877adc
ICU-11583 Port Mark's JAVA fixes to C++
...
X-SVN-Rev: 37243
2015-03-17 19:09: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
1c360497c7
ICU-9139 UCONFIG_NO_CONVERSION=1 bug fix
...
X-SVN-Rev: 31561
2012-03-01 23:50:07 +00:00
Peter Edberg
9fb2e3ac79
ICU-7727 When collecting data, use real parent (per %%Parent if present) instead of just truncating name
...
X-SVN-Rev: 31491
2012-02-23 10:06:47 +00:00
Markus Scherer
2201fb816c
ICU-7877 optionally explicit UnicodeString constructors, and make them explicit inside ICU
...
X-SVN-Rev: 30293
2011-07-07 18:46:19 +00:00
Steven R. Loomis
b209c07620
ICU-8687 warnings fix (clang)
...
X-SVN-Rev: 30285
2011-07-06 20:05:38 +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
Dragan Besevic
21685ff673
ICU-8364 Check the return code when creating hashtable and return null in the case of failure
...
X-SVN-Rev: 29502
2011-03-01 20:55:43 +00:00
Andy Heninger
74e297291f
ICU-7780 fix various compiler warnings
...
X-SVN-Rev: 28301
2010-07-12 18:03:29 +00:00
Peter Edberg
f3c6395224
ICU-7616 Enable non-Gregorian calendars for DateIntervalFormat
...
X-SVN-Rev: 27947
2010-04-17 08:24:01 +00:00
Peter Edberg
c6780c2b10
ICU-6830 be case-sensitive in skeleton hash compares; add patterns for both H/h
...
X-SVN-Rev: 27586
2010-02-18 01:06:31 +00:00
Markus Scherer
81234fecdb
ICU-7273 add loading of custom data, with caching, test data and test code
...
X-SVN-Rev: 27578
2010-02-16 23:43:22 +00:00
Peter Edberg
ccfd885876
ICU-7322 Get rid of friend declaration for internal plain-C comparotor functions
...
X-SVN-Rev: 27304
2010-01-16 19:59:59 +00:00
Peter Edberg
0c1c7aad2b
ICU-7280 Move U_CDECL_END down to include function definitions as well as declarations.
...
X-SVN-Rev: 27064
2009-12-14 05:57:34 +00:00
Xiaomei Ji
9e2a008374
ICU-6799 fix C++ compilation error due to hash value comparator in decimfmt.h and dtitvinf.h. remove static qualifier. since they are marked as internal, they wont be exposed
...
X-SVN-Rev: 25812
2009-04-17 18:52:52 +00:00
Xiaomei Ji
6280be2fa5
ICU-6303 change FIXME to TODO
...
X-SVN-Rev: 24860
2008-10-22 06:06:56 +00:00
Xiaomei Ji
ff17b981a5
ICU-6503 save date time pattern generator as private member, minimize data time pattern generator instantiation times
...
X-SVN-Rev: 24573
2008-09-15 21:20:19 +00:00
Xiaomei Ji
74ade133f7
ICU-6157 change per review
...
X-SVN-Rev: 24244
2008-06-19 22:05:36 +00:00
Xiaomei Ji
f61432db45
ICU-6157 after review
...
X-SVN-Rev: 24228
2008-06-18 21:07:30 +00:00
Xiaomei Ji
0ad3aff9b2
ICU-6157 update after 1st round code review
...
X-SVN-Rev: 24200
2008-06-16 22:32:36 +00:00
Steven R. Loomis
c1bca30b6d
ICU-6157 header includes fixes
...
X-SVN-Rev: 24132
2008-06-10 01:26:42 +00:00
Steven R. Loomis
2339b2ed30
ICU-6157 fix for solaris linkage
...
X-SVN-Rev: 24119
2008-06-06 21:04:15 +00:00