Fredrik Roubert
01c69cfa85
ICU-20158 Pass ByteSink all the way to _uloc_(addLikely|minimize)Subtags().
...
This eliminates the need for scratch buffers in any code path that ends
with these functions and also eliminates the need for counting bytes,
something that ByteSink will now handle correctly when needed.
Existing calls to uloc_addLikelySubtags() and uloc_minimizeSubtags()
throughout ICU4C implementation code are also updated to instead use
either the Locale or ulocimp_* functions with the new API.
None of this should have any externally visible effect, it's all about
cleaning up implementation internals.
2019-02-21 12:19:04 +01:00
Jeff Genovy
0e6a6f6fff
ICU-20416 Various OOM fixes for calendar.cpp
2019-02-13 13:10:28 -08:00
Fredrik Roubert
74759b467e
ICU-13645 Remove redundant invocations of the Locale copy constructor.
2018-09-27 14:27:40 -07:00
Yoshito Umaoka
44b2617d44
ICU-13548 Fixed a calendar calculation problem with setting week-of-year and year.
...
X-SVN-Rev: 40966
2018-02-21 21:09:33 +00:00
Andy Heninger
6d9ed3698b
ICU-13457 Adjust Calendar buffer overrun fix for compatibility with AIX compiler, and with older versions of gcc. Also incorporate Jungshik's review comment.
...
X-SVN-Rev: 40723
2017-12-12 21:49:51 +00:00
Andy Heninger
d2cf99c677
ICU-13457 Fix initialization & copying of Calendar::validLocale & actualLocale.
...
X-SVN-Rev: 40670
2017-11-12 02:53:40 +00:00
Steven R. Loomis
89765009b4
ICU-13001 warning cleanup
...
- remove some dead code
- fix some warnings that show up when services, regex are turned off
- change some macros into inline functions to quell parenthesis complaints (ucnv_u16.cpp)
X-SVN-Rev: 40442
2017-09-21 19:43:28 +00:00
Jugu Dannie Sundar
29cd7b1fc9
ICU-11632 icu4c changes for integer overflow in calendar support
...
X-SVN-Rev: 40369
2017-09-05 22:22:09 +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
Felipe Balbontín
390d736f89
ICU-12591 Removed the CalendarData class and refactored all the remaining functions that used it (ICU4C).
...
X-SVN-Rev: 39190
2016-09-12 21:01:16 +00:00
Andy Heninger
25f3f10204
ICU-7700 Revert change #38862 , hour-of-day setting logic, which broke some tests.
...
X-SVN-Rev: 38865
2016-06-18 21:49:10 +00:00
kazède king
dcd6c90e01
ICU-7700 setting HOUR_OF_DAY should also update AM_PM.
...
X-SVN-Rev: 38862
2016-06-17 23:23:11 +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
a9c247a3cb
ICU-12166 annotate intended switch case fallthroughs
...
X-SVN-Rev: 38447
2016-03-01 07:44:57 +00:00
Peter Edberg
086ee675a8
ICU-12085 manually integrate branch > trunk (had network problems committing updated branch)
...
X-SVN-Rev: 38311
2016-02-15 17:58:23 +00:00
Peter Edberg
c56a20e796
ICU-11539 C: Delete Calendar fields TIME_SEPARATOR, RELATED_YEAR; adjust accordingly
...
X-SVN-Rev: 37091
2015-02-27 09:01:31 +00:00
Fredrik Roubert
17b8600e8e
ICU-11018 Support CLDR time separator (ICU4C)
...
This change will treat the ':' character in patterns as a symbol
(instead of as a literal) and if the Locale defines timeSeparator then
use that character instead when formatting and accept both when parsing.
It will also define the '.' as an alternate time separator, that will be
accepted when parsing in lenient mode.
This is one character more strict than before, when in lenient mode also
the '-' was accepted as time separator instead of ':'.
R=rocketman@google.com
Review URL: https://codereview.appspot.com/180610043
X-SVN-Rev: 36897
2014-12-19 07:19:41 +00:00
Travis Keep
a6bc072149
ICU-11401 Reduce cache keyspace by caching only the components of DateFormat by locale rather than actual DateFormat objects.
...
X-SVN-Rev: 36811
2014-12-05 18:15:35 +00:00
Steven R. Loomis
4345b76644
ICU-10881 merge from branch - conservative fixes to some warnings
...
X-SVN-Rev: 36449
2014-09-11 05:25:13 +00:00
Andy Heninger
76aaa9229f
ICU-11007 Improved checking for NULL time zones in calendar code.
...
X-SVN-Rev: 36025
2014-07-14 23:39:06 +00:00
Peter Edberg
5241507312
ICU-10637 Format/parse using 'r', C part 2 (add tests, clean up islamic delta calculation)
...
X-SVN-Rev: 35355
2014-03-06 09:47:25 +00:00
Peter Edberg
30e8bc452d
ICU-10637 Format/parse using 'r' related gregorian year, C changes part 1 (still need correct num fmt & tests)
...
X-SVN-Rev: 35341
2014-03-05 11:51:05 +00:00
Yoshito Umaoka
f7f73fe88d
ICU-10544 Fixed some implementation problems in Calendar::add. When adding day or larger field results wall time falls into non-existing time slot created by DST transition, the implementation honors the current skipped wall time option.
...
X-SVN-Rev: 35231
2014-02-25 23:50:35 +00:00
Scott Russell
c42e57a06c
ICU-10249 Implement new islamic calendar variants tbla, rgsa
...
X-SVN-Rev: 34354
2013-09-17 16:55:02 +00:00
Steven R. Loomis
86c481026c
ICU-10373 fix -DU_USING_ICU_NAMESPACE=0 issues
...
X-SVN-Rev: 34251
2013-09-10 00:13:41 +00:00
Scott Russell
e715efb8e8
ICU-8449 Add Um al-Qura Hijri Calendar Support
...
X-SVN-Rev: 34053
2013-08-16 17:09:51 +00:00
Peter Edberg
09ac4ef907
ICU-10222 (C) Integrate CLDR data snapshot for ICU 52.0.1; add calendar types
...
X-SVN-Rev: 33890
2013-07-08 06:51:38 +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
Peter Edberg
8f37e438a6
ICU-10061 Make getDayOfWeekType behave as documented for last weekend day; fix for 1-day weekends
...
X-SVN-Rev: 33468
2013-03-27 22:44:22 +00:00
Peter Edberg
47c5a5aa61
ICU-9616 Add DangiCalendar & tests, port from J to C
...
X-SVN-Rev: 33267
2013-02-18 23:36:57 +00:00
Scott Russell
d5a9bec7f9
ICU-9403 Calendar should return error for large negative millis out of range in strict mode & fix extended year calculation for large negative millis
...
X-SVN-Rev: 32554
2012-10-08 20:24:50 +00:00
Yoshito Umaoka
bc8ee5cca6
ICU-9452 Fixed calendar add issue with the Samoa Dec 2011 24 hour transition.
...
X-SVN-Rev: 32141
2012-08-09 21:29:53 +00:00
Jungshik Shin
4934b397a8
ICU-8343 fix build errors in Visual Studio when exception is disabled
...
X-SVN-Rev: 32010
2012-06-28 23:28:00 +00:00
Peter Edberg
c63be1f302
ICU-9226 Calendar add +year should always move forward in time; roll year should wrap for eras with real bounds, pin otherwise
...
X-SVN-Rev: 31966
2012-06-19 05:42:52 +00:00
Michael Ow
22dda18669
ICU-9242 Fix format parsing in ICU4C calendar code
...
X-SVN-Rev: 31805
2012-05-09 21:00: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
Peter Edberg
eaae5eb353
ICU-9243 fieldDifference positive search should check to INT32_MAX, don't exceed int32 limits in calculations
...
X-SVN-Rev: 31694
2012-04-09 23:54:14 +00:00
Steven R. Loomis
849b2da11d
ICU-9191 copy locale in cloned calendars
...
X-SVN-Rev: 31603
2012-03-08 19:29:24 +00:00
Steven R. Loomis
be22ad9f19
ICU-9019 uset_add with non-lenient calendars
...
X-SVN-Rev: 31457
2012-02-21 01:21:01 +00:00
Yoshito Umaoka
9d6a55f33d
ICU-8916 Calendar APIs supporting options for handling ambiguous wall time (Merged from the work branch to the ICU4C trunk).
...
X-SVN-Rev: 31421
2012-02-17 23:53:05 +00:00
Andy Heninger
5b3a708915
ICU-8992 Compiler Warning cleanup for gcc 4.6.1
...
X-SVN-Rev: 31329
2012-02-06 19:57:08 +00:00
Yoshito Umaoka
e9503bdade
ICU-8909 Fixed various warnings reported by a source code analysis tool.
...
X-SVN-Rev: 30958
2011-11-14 19:32:51 +00:00
Peter Edberg
ab3d24b4f5
ICU-8753 Fix comment about prevOffset / newOffset
...
X-SVN-Rev: 30773
2011-09-30 21:34:41 +00:00
Peter Edberg
630f1f0c99
ICU-8753 Replace confusing use of dst variable with prevOffset / newOffset
...
X-SVN-Rev: 30770
2011-09-30 21:14:46 +00:00
Peter Edberg
ed01311886
ICU-8753 Fix Calendar::add to handle change in UCAL_ZONE_OFFSET
...
X-SVN-Rev: 30657
2011-09-14 22:33:22 +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
Markus Scherer
1beb0f1e4f
ICU-8680 require C++ namespace, replace most U_NAMESPACE_QUALIFIER with icu::, remove still-draft U_STD_NS, U_STD_NSQ, and U_STD_NS_USE
...
X-SVN-Rev: 30281
2011-07-06 04:03:35 +00:00
Yoshito Umaoka
515788594c
ICU-8596 Fixed the actual maximum week problem.
...
X-SVN-Rev: 30276
2011-07-05 22:42:14 +00:00