Arthur O'Dwyer
fb64693c28
ICU-22920 Avoid "return by const value" antipattern
...
Returning a const-qualified prvalue doesn't do anything useful, but it does
turn an assignment such as `v = rb.getLocale();` from a move-assignment
into a copy-assignment (because it's forbidden to move-from a const value,
even if it's a const prvalue). Each affected site was diagnosed mechanically
by my fork of Clang. E.g.:
warning: 'const' type qualifier on return type is a bad idea [-Wqual-class-return-type]
391 | const Locale ResourceBundle::getLocale(ULocDataLocaleType type, UErrorCode &status) const
| ^~~~~
2025-01-30 10:58:25 -08:00
Rich Gillam
d0fb2d54b3
ICU-22723 Promoted all @draft ICU 74 APIs to @stable ICU 74
2024-09-11 14:06:45 -07:00
Fredrik Roubert
1384d9f395
ICU-22532 Remove redundant 'void' from empty C++ parameter lists.
...
https://releases.llvm.org/16.0.0/tools/clang/tools/extra/docs/clang-tidy/checks/modernize/redundant-void-arg.html
2023-12-19 09:27:18 +09:00
yumaoka
6338b704ff
ICU-22452 API for resolving preferred IANA zone ID from a zone ID.
2023-08-11 17:00:05 -04:00
Fredrik Roubert
2e0d30cfcf
ICU-21833 Replace NULL with nullptr in all C++ code.
2023-02-03 20:20:38 +01:00
Peter Varga
90ee0c788f
ICU-21734 Add missing overrides to pure virtual methods
...
These methods are pure virtual in the base class too.
2021-09-07 15:34:48 -07:00
yumaoka
369357aaa7
ICU-21530 Added U_HIDE_DEPRECATED_API to deprecated methods.
2021-09-03 09:04:54 -04: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
Richard Gillam
5de5cabfb0
ICU-21249 Add new U_HIDE_INTERNAL_API guards
2020-10-06 10:09:18 -07:00
Hugo van der Merwe
a08ac00c67
ICU-21304 Update old userguide links to unicode-org.github.io
2020-10-01 01:28:05 +02:00
Markus Scherer
c3fe7e09d8
ICU-21267 stop defining & using FALSE & TRUE macros in public headers
...
See #1282
2020-09-09 15:13:56 -07:00
Frank Tang
863582c2a4
ICU-20465 Calendar/DateFormat listen to tz extension
...
See #1176
2020-08-04 13:33:03 -07:00
Markus Scherer
5f443972ec
ICU-20814 new tool for checking API tags vs. ifdef guards; add FORCE guards, and move some guards, to make this work
2019-09-23 17:04:53 -07:00
Markus Scherer
f02b496494
ICU-20783 C++ covariant return types: clone(), freeze() & friends
2019-08-22 16:24:41 -07:00
Alon Bar-Lev
a5bbd505d7
ICU-20578 headers: guard all C++ headers using U_SHOW_CPLUSPLUS_API
...
support including all files in C
cleanup and simplify the test/hdrtest
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2019-05-14 17:18:06 -07:00
Frank Tang
cb40d8b1a5
ICU-20595 Make icu::TimeZone::AdoptDefault thread safe
...
correct the mutex
Remove comments about not thread safe
2019-05-13 16:00:27 -07:00
Jeff Genovy
1188394d74
ICU-13820 ICU4C should use "Etc/Unknown" zone when host TZ detection fails.
...
Update API docs comments to clarify what is returned in failure cases.
2019-02-21 10:49:00 -08:00
Jeff Genovy
1f17beb8eb
ICU-20100 Change the name of the TimeZone::getDisplayName daylight parameter.
...
The TimeZone::getDisplayName "daylight" parameter conflicts with an existing macro in the CRT "time.h" header.
2019-02-13 10:55:43 -08:00
Yoshito Umaoka
c5437c6e00
ICU-13300 Added thread safety note to TimeZone::detectHostTimeZone().
...
X-SVN-Rev: 41421
2018-05-21 00:39:51 +00:00
Markus Scherer
4b154b8328
ICU-12992 s/UChar/char16_t/g in public C++ header files
...
X-SVN-Rev: 39721
2017-03-01 23:55:58 +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
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
Michael Ow
f2e7352104
ICU-12187 Update some API in ICU4C 57
...
X-SVN-Rev: 38455
2016-03-01 22:38:48 +00:00
Peter Edberg
87970fe888
ICU-11917 BRS, Update macros #ifndef U_HIDE_DRAFT/INTERNAL/DEPRECATED_API
...
X-SVN-Rev: 37976
2015-09-21 20:23:38 +00:00
Andy Heninger
6772f79425
ICU-11670 Fix incorrect API doc for class TimeZone.
...
X-SVN-Rev: 37439
2015-05-14 18:40:12 +00:00
Yoshito Umaoka
3195f25068
ICU-11358 Separate host time zone detection code from the default time zone initialization code and make it public API as TimeZone::detectHostTimeZone().
...
X-SVN-Rev: 37148
2015-03-05 06:34:51 +00:00
Yoshito Umaoka
02939804a5
ICU-11240 ICU4C 54 API status promotion.
...
X-SVN-Rev: 36454
2014-09-11 06:16:13 +00:00
Yoshito Umaoka
faacd61904
ICU-10724 Minor refinement in the API doc for TimeZone::getDisplayName, the fallback format is localized and can be different from GMT[+-]hh:mm.
...
X-SVN-Rev: 35336
2014-03-04 20:21:22 +00:00
Markus Scherer
90b6b64024
ICU-10561 ZoneMeta methods must check for bogus input strings
...
X-SVN-Rev: 34873
2014-01-10 23:14:14 +00:00
Peter Edberg
3f51cb7d8d
ICU-10398 Update #ifndef U_HIDE_XXXXX_API (e.g. DRAFT) to match status tags (e.g. @draft)
...
X-SVN-Rev: 34448
2013-09-23 06:52:34 +00:00
Andy Heninger
978f71fe78
ICU-10051 Mutexes: introduce UInitOnce; remove UMTX_CHECK; replace all uses of UMTX_CHECK.
...
X-SVN-Rev: 33787
2013-05-31 23:50:15 +00:00
Yoshito Umaoka
7e0d7fa479
ICU-10148 TZ database/Windows zone ID mapping APIs.
...
X-SVN-Rev: 33726
2013-05-22 20:33:30 +00:00
Michael Ow
37eeb709db
ICU-9955 merge ICU4C API status promotion to trunk
...
X-SVN-Rev: 33306
2013-02-22 20:15:50 +00:00
Markus Scherer
830de364b6
ICU-8779 add ifndef U_HIDE_DRAFT_API
...
X-SVN-Rev: 31514
2012-02-25 01:36:17 +00:00
Peter Edberg
4b3835d9e9
ICU-9091 Promote to stable most ICU4C API that are draft 4.8 or earlier
...
X-SVN-Rev: 31446
2012-02-20 04:28:17 +00:00
Yoshito Umaoka
e577fc8ae0
ICU-8998 Added some explanation about useDaylightTime comparing to JDK.
...
X-SVN-Rev: 31214
2012-01-17 07:52:05 +00:00
Michael Ow
fc76cb342c
ICU-8887 Update timezone doc in ICU4C
...
X-SVN-Rev: 31109
2011-12-13 17:44:04 +00:00
Michael Ow
c5eeb6b6df
ICU-8887 Update timezone class doc in ICU4C
...
X-SVN-Rev: 30956
2011-11-11 23:24:20 +00:00
Markus Scherer
3458799ca4
ICU-8779 add getUnknown()
...
X-SVN-Rev: 30729
2011-09-28 00:00:31 +00:00
Yoshito Umaoka
28a3ac4e9f
ICU-8780 Added a note to getGMT() explaining that the ID used by the result zone is 'GMT', not 'Etc/GMT'.
...
X-SVN-Rev: 30622
2011-09-06 20:52:28 +00:00
Yoshito Umaoka
50758756b5
ICU-8777 Fixed API doc for createTimeZone. Updated the description to explain the case for bad time zone ID - using Etc/Unknown instead of Etc/GMT as fallback zone ID.
...
X-SVN-Rev: 30620
2011-09-06 18:44:49 +00:00
Markus Scherer
2c29b14fb9
ICU-8571 @system APIs are *supposed* to also have a regular API label; add #ifndef U_HIDE_SYSTEM_API
...
X-SVN-Rev: 30448
2011-08-01 02:38:58 +00:00
Markus Scherer
4e30dc4c14
ICU-8571 remove udraft.h etc. & genheaders.pl, use #ifndef U_HIDE_DRAFT_API etc. instead
...
X-SVN-Rev: 30447
2011-08-01 02:20:46 +00:00
Steven R. Loomis
63dd5be23d
ICU-8525 doxygen warnings
...
X-SVN-Rev: 30029
2011-05-05 01:35:22 +00:00
Yoshito Umaoka
4d7569c743
ICU-8342 Refactoring ZoneStringFormat into TimeZoneNames and TimeZoneFormat (all internal APIs for now). Also supporting localized GMT zero format and fallback region format for generic names.
...
X-SVN-Rev: 29984
2011-05-03 14:59:01 +00:00
Yoshito Umaoka
34bc79c98b
ICU-8278 New APIs TimeZone::createTimeZoneIDEnumeration and ucal_openTimeZoneIDEnumeration for supporting canonical/canonical location zone iteration. The fix for ticket#8349 Etc/Unknown problem was also done at the same time.
...
X-SVN-Rev: 29498
2011-03-01 18:29:13 +00:00
Yoshito Umaoka
7c93a6eeac
ICU-8279 TimeZone API - getRegion in ICU4C
...
X-SVN-Rev: 29459
2011-02-18 23:03:47 +00:00