Frank Tang
e515c84645
ICU-22991 Remove unnecessary overload in Calendar
2024-12-23 12:52:11 -08:00
Frank Tang
fbc1f33e7e
ICU-22679 Clean up Calendar code.
...
1. Remove redudant implementation of default system ceuntry by using
macro
2. Fold long if / else block if one block return.
2024-03-21 09:50:10 -07:00
Frank Tang
d43d216feb
ICU-22633 Test and fix int32_t overflow for Calendar set
...
Add test to set with INT32_MAX and INT32_MIN then call getTime()
and fix all the undefined errors.
2024-03-12 16:46:53 -07:00
Frank Tang
ec800e7407
ICU-22633 Return error if era is out of range
2024-02-27 10:56:28 -08:00
Frank Tang
9f3feed545
ICU-22160 clean up Calendar code
...
Remove unnecessary BuddhistCalendar::handleComputeMonthStart
Remove unnecessary include
2022-10-31 08:41:54 -07: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
Andy Heninger
85705f04e0
ICU-21960 C++20 Warnings from ATOMIC_VAR_INIT
...
Remove the ICU macros ATOMIC_INT32_T_INITIALIZER and U_INITONCE_INITIALIZER,
which made use of C++ ATOMIC_VAR_INIT, which has been removed from C++20.
With modern C++ features being available, these macros no longer served
any real need.
2022-05-17 15:45:06 -07:00
Markus Scherer
f02b496494
ICU-20783 C++ covariant return types: clone(), freeze() & friends
2019-08-22 16:24:41 -07:00
Andy Heninger
a97cfb01b9
ICU-20570 UInitOnce instances, add explicit initialization where it was missing.
2019-04-24 18:15:13 -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
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
8f38199123
ICU-10365 fix namespace issue: icu::UInitOnce
...
X-SVN-Rev: 34252
2013-09-10 00:34:12 +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
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
Andy Heninger
38b7c3e8a7
ICU-6481 fix threading issues in calendar initialization code
...
X-SVN-Rev: 24445
2008-08-05 22:19:05 +00:00
Yoshito Umaoka
f4a7861584
ICU-4567 Removed unnecessary virtual method implementations in Taiwan/Buddhist calendar.
...
X-SVN-Rev: 22415
2007-08-17 03:38:53 +00:00
Yoshito Umaoka
f7f687e073
ICU-4567 Updated TaiwanCalendar to use a Gregorian year in EXTENDED_YEAR. As a result, some override methods are no longer required. Also, use 1970 as the default value of EXTENDED_YEAR in all GregorianCalendar subclasses
...
X-SVN-Rev: 22411
2007-08-16 22:10:16 +00:00
Yoshito Umaoka
537017f806
ICU-4408 Use a Gregorian year for EXTENDED_YEAR in BuddhistCalendar to make it consistent with ICU4J and other GregorianCalendar subclasses. As a results, monthLength and a couple of methods used by monthLength are no longer needed.
...
X-SVN-Rev: 22378
2007-08-14 18:25:52 +00:00
George Rhoten
b5781126c8
ICU-5349 Use UMTX_CHECK when it's helpful.
...
X-SVN-Rev: 20269
2006-09-08 04:02:23 +00:00
George Rhoten
6d2df6345d
ICU-3837 Add UCONFIG_NO_SERVICE (don't deprecated locale IDs).
...
X-SVN-Rev: 16291
2004-09-10 04:57:10 +00:00
George Rhoten
7c225a89aa
ICU-4072 Explicitly use U_EXPORT2 to specify calling convention of static C++ code.
...
X-SVN-Rev: 16183
2004-08-24 17:38:33 +00:00
Alan Liu
035d42f250
ICU-3659 add() should complete fields first
...
X-SVN-Rev: 15583
2004-05-27 20:36:52 +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
4f3e9c90d2
ICU-3683 Remove a couple of allocations
...
X-SVN-Rev: 14955
2004-04-14 17:47:13 +00:00
Steven R. Loomis
4de3eb7b16
ICU-2943 fix compiler warnings
...
X-SVN-Rev: 13500
2003-10-28 00:04:00 +00:00
Steven R. Loomis
92fb1fead2
ICU-2943 calendar update (sync with Java, prepare for other calendars)
...
X-SVN-Rev: 13494
2003-10-26 10:24:58 +00:00
Steven R. Loomis
51ea41bfc5
ICU-3009 calendar code bug fixes - make factory-fresh calendars have the current time, and make calendar subclasses initialize properly
...
X-SVN-Rev: 12407
2003-06-10 03:58:41 +00:00
Steven R. Loomis
73a363b58e
ICU-2436 (same bug as in japanesecal) - use gregorian calendar to calculate february's length, not buddhist..
...
X-SVN-Rev: 12220
2003-06-02 18:46:41 +00:00
Steven R. Loomis
3c7d196f57
ICU-2436 More intl cal fixes. Now passes date format rt test
...
X-SVN-Rev: 12180
2003-05-29 23:01:03 +00:00
Steven R. Loomis
ea2e0f7f96
ICU-2436 updates for formatting of japanese and buddhist calendars
...
X-SVN-Rev: 12139
2003-05-28 05:40:04 +00:00
Steven R. Loomis
f2e4031b0c
ICU-2436 Japanese Calendar implementation, other fixes (multi calendar)
...
X-SVN-Rev: 12105
2003-05-25 07:12:19 +00:00
Steven R. Loomis
0dfe4a433d
ICU-2436 international calendars (Buddhist)
...
X-SVN-Rev: 11975
2003-05-16 22:05:41 +00:00