Markus Scherer
f02b496494
ICU-20783 C++ covariant return types: clone(), freeze() & friends
2019-08-22 16:24:41 -07:00
Fredrik Roubert
aa60d4292e
ICU-20601 Add missing semicolons.
...
The way these macros currently are defined, the code compiles also
without the final semicolons. But for consistency and in order to allow
the macro definitions to be updated also these macro invocations should
have final semicolons just like in the rest of this code base.
2019-08-09 14:38:52 +02: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
Fredrik Roubert
4bd1ee008c
ICU-20445 Pass ByteSink to ulocimp_addLikelySubtags().
2019-04-23 19:45:28 +02: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
Jeff Genovy
5c8960e59e
ICU-20074 Revise UPRV_UNREACHABLE macro to always call abort().
...
Moved the macro from platform.h to uassert.h.
Removed any "unreachable" code that previously occurred after the UPRV_UNREACHABLE macro is used.
Changes based on review from Andy.
Co-authored-by: Daniel Ju <daju@microsoft.com>
2019-01-24 18:50:04 -08:00
Daniel Ju
7453181fff
ICU-20074 Define UPRV_UNREACHABLE macro for unreachable code
...
Replaced occurrences of U_ASSERT(FALSE) with new UPRV_UNREACHABLE macro.
2019-01-14 14:16:26 -08: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
Yoshito Umaoka
f6e3124e74
ICU-13445 Pattern space handling in localized GMT format parser. Applied a fix to ICU4J equivalent to the ICU4C fix done by #13374 . Also made a small fix in the previous ICU4C change to prevent buffer overrun with unexpected input.
...
X-SVN-Rev: 40642
2017-10-25 23:41:57 +00:00
Peter Edberg
0b5b91a70b
ICU-13366 Changes per Shane codereview comments
...
X-SVN-Rev: 40572
2017-10-05 20:36:07 +00:00
Peter Edberg
9ccab14af1
ICU-13366 part 1, fix TextTrieMap::search supplemental handling; make tz displayName buffer size bigger & logKnownIssue tests more specific
...
X-SVN-Rev: 40522
2017-10-02 03:42:54 +00:00
Yoshito Umaoka
1599dabb7c
ICU-13374 Fixed localized GMT offset format roundtrip in Perisian locale.
...
X-SVN-Rev: 40493
2017-09-28 00:53:39 +00:00
William Zhao
00586e9f97
ICU-13275 Merge some safe warning fixes to the trunk
...
X-SVN-Rev: 40322
2017-08-08 19:51:54 +00:00
William Zhao
d847a21238
ICU-13275 Merge warning cleanup fixes into trunk
...
X-SVN-Rev: 40283
2017-07-22 01:11:59 +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
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
Yoshito Umaoka
ebe09a9e69
ICU-11294 Changed SimpleDateFormat and other implementation to reduce malloc calls for common date formatting/parsing operations.
...
X-SVN-Rev: 37064
2015-02-25 03:24:19 +00:00
Peter Edberg
47a97c8453
ICU-11412 TimeZoneFormat copy constructor should initialize fTZDBTimeZoneNames to NULL
...
X-SVN-Rev: 36842
2014-12-10 20:19:42 +00:00
Yoshito Umaoka
ae3f6f13a4
ICU-10934 The tz database abbreviation support in ICU4C
...
X-SVN-Rev: 36080
2014-07-23 21:51:09 +00:00
Steven R. Loomis
358e1ddcd2
ICU-10376 fixup clang warnings
...
X-SVN-Rev: 34385
2013-09-18 20:08:25 +00:00
Markus Scherer
8f38199123
ICU-10365 fix namespace issue: icu::UInitOnce
...
X-SVN-Rev: 34252
2013-09-10 00:34:12 +00:00
Yoshito Umaoka
434a94ec4d
ICU-10209 Fixed odd TimeType problem with ZONE_ID, ZONE_ID_SHORT and EXEMPLAR_LOCATION in TimeZoneFormat#format. Also added generic TimeZoneFormat test cases.
...
X-SVN-Rev: 33819
2013-06-12 20:56:06 +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
Andy Heninger
ae4350661b
ICU-10048 Fix some compiler warnings in ICU4C.
...
X-SVN-Rev: 33444
2013-03-21 01:42:01 +00:00
Michael Ow
795b21007f
ICU-9802 Fix no data cintltst and intltest failures
...
X-SVN-Rev: 33302
2013-02-22 03:24:01 +00:00
Yoshito Umaoka
87158d4fba
ICU-9867 New time zone pattern letters/types support for CLDR 23/ICU 51.
...
X-SVN-Rev: 33159
2013-02-11 00:23:55 +00:00
Steven R. Loomis
f2306f2577
ICU-9711 OS/400 fixes
...
X-SVN-Rev: 32742
2012-11-02 19:41:57 +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
Yoshito Umaoka
5b8459bb01
ICU-9338 Promoting TimeZoneNames/TimeZoneFormat APIs from tech preview to draft.
...
X-SVN-Rev: 32427
2012-09-25 22:45:40 +00:00
Michael Ow
0ca13b73b0
ICU-9292 Merge BEAM warning fixes from branch into trunk
...
X-SVN-Rev: 31792
2012-05-03 05:50:26 +00:00
Michael Ow
91d55b284e
ICU-8718 Close opened resource bundle in TimeZoneFormat
...
X-SVN-Rev: 31556
2012-03-01 18:11:32 +00:00
Yoshito Umaoka
1641940f00
ICU-8513 Merging TimeZoneNames/TimeZoneFormat APIs (as 49 technology preview) into trunk.
...
X-SVN-Rev: 31469
2012-02-21 11:06:50 +00:00
Yoshito Umaoka
93cb17f386
ICU-8811 Removed the logic for supporting short commonly used time zone names.
...
X-SVN-Rev: 30668
2011-09-15 20:38:26 +00:00
Steven R. Loomis
b209c07620
ICU-8687 warnings fix (clang)
...
X-SVN-Rev: 30285
2011-07-06 20:05:38 +00:00
Yoshito Umaoka
2e84d2861b
ICU-8627 Lazily instantiate TimeZoneGenericNames instance in TimeZoneFormat, so formatting date without generic time zone pattern does not need to get through the relatively heavier one time initialization code.
...
X-SVN-Rev: 30196
2011-06-08 20:23:20 +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
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