Frank Tang
59af52bb6f
ICU-23043 Propogate error in Calendar.
2025-02-11 15:14:27 -08:00
Frank Tang
9eafd8ca3e
ICU-22991 Reduce Calendar object size
...
See #3327
2025-01-08 12:26:35 -08:00
Frank Tang
6091406a3a
ICU-22991 Reduce fStamp to 8 bits
...
See #3323
2025-01-06 18:38:17 -08:00
Frank Yung-Fong Tang
4c3622f218
ICU-23000 Replace CharString for LocaleBased
...
See #3321
2025-01-06 14:09:30 -08:00
Frank Tang
841e88bc8c
ICU-22991 Remove unused private fIsSet
...
This field is removed in Java 24 years ago. Save 24 bytes per Calendar
object.
2024-12-23 14:58:56 -08:00
Frank Tang
ff31805f56
ICU-22991 Change fIsTimeSet fAreFieldsSet fAreAllFieldsSet fAreFieldsVirtuallySet fIsSet fStamp to private
...
https://docs.google.com/document/d/1RqP3s7Y1YLahqopNcuadl3DT-DMIZ7ASXZbSy7M2mFE/edit?tab=t.0#heading=h.lok0fhe381qa
2024-12-23 12:51:13 -08:00
Frank Tang
7546622f87
ICU-22991 Remove unnecessary computeGregorianAndDOWFields private
...
Move the DOW calculation into computeWeekFields
2024-12-20 16:33:53 -08:00
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
Frank Tang
0c02f8c007
ICU-22743 Change internal functions to propagate errors up.
2024-04-18 15:32:59 -07:00
Frank Tang
37bdffb240
ICU-22679 Fix broken header test
...
See #2918
2024-03-21 15:12:10 -07: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
7a3dfe877d
ICU-22679 Remove getType and string comparsion
...
Change the logic of handling year in era 0 counting backwards
to depend on a boolean virtual function instead of adding
string comparsion code in the base class to have specific knowledge of
behavior of subclass.
2024-03-19 17:44:37 -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
Rich Gillam
c610d7f986
ICU-22534 Promote (almost) all @draft ICU 73 APIs to @stable ICU 73
2024-03-04 18:05:29 -08:00
Frank Tang
ec800e7407
ICU-22633 Return error if era is out of range
2024-02-27 10:56:28 -08:00
Frank Yung-Fong Tang
0b66fada30
ICU-22633 Fix integer overflow inside Calendar code
...
See #2806
2024-02-07 10:58:41 -08: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
Frank Tang
cdab88ff4e
ICU-22513 Return error if days is too large in IslamicUmalquraCalendar
...
If the year is too large it may overflow the int32_t variable and cause
slow or infinity loop, return error if the year is too large that the
conversion to day may overflow int32_t. Limit the value to max value of
int32_t divide by 400.
2023-10-26 17:09:41 -07:00
Mohamed Akram
3d1dee6837
ICU-22528 Improve date formatting performance
2023-10-13 18:43:04 -07:00
Frank Tang
1b15a4e9db
ICU-22424 Fix Calendar::clear(UCAL_MONTH)
...
Make the calling of clear(UCAL_MONTH or UCAL_ORDINAL_MONTH) clear both fields.
2023-06-30 00:48:34 -07:00
Peter Edberg
3748ef8f8a
ICU-22220 adjust #ifndef U_HIDE_DRAFT_API for virtual methods, fix conditionalized enums
2023-03-06 11:01:50 -08:00
Fredrik Roubert
2e0d30cfcf
ICU-21833 Replace NULL with nullptr in all C++ code.
2023-02-03 20:20:38 +01:00
Frank Tang
cd1b772cbf
ICU-22027 Add C++ Calendar API for Temporal
...
API proposal
https://docs.google.com/document/d/1UYriEzzExiLhi2RD3zjTsI5UQHv1dXaFqrct7yXNdCA/edit#heading=h.x9obor85vpx9
Design Doc
https://docs.google.com/document/d/15ViyC9s0k3VEDwBmAkKxxz4IadZ6QrAIoETkdkF0cVA/
ICU-22027 Adjust API to remove the mention of M00L for now.
2023-01-17 15:08:08 -08:00
Frank Tang
294b26eb7a
ICU-22159 Merge inDaylightTime to Calendar
...
All the subclass implementation of inDaylightTime are the same
so just move to a base class implementation.
2022-10-31 08:42:51 -07:00
Cyndy Ishida
e2ae4f5324
ICU-22054 Remove declarations for unimplemented APIs
...
This patch also includes marking `=delete` on specific `normal` member functions, as opposed to compiler generated functions,
based on the description of such functions' surrounding comments.
2022-07-01 08:57:10 -07:00
Markus Scherer
fda4a82bba
ICU-21960 fix clang 13 C++20 warnings
2022-05-07 15:21:08 +00: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
Fredrik Roubert
633438f8da
ICU-20973 Change all equality operator return types from UBool to bool.
2021-08-17 00:35:00 +02:00
Peter Edberg
34030d911e
ICU-21480 brs 69rc, adjust nonstable API macros
2021-03-15 09:43:54 -07: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
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
Peter Edberg
c4ea7681ee
ICU-20796 BRS 65 update C API guard macros (manual version) ( #827 )
2019-09-13 10:56:25 -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
Jeff Genovy
4a8b474e77
ICU-12973 Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_ERA for testing placeholder names ( #124 )
...
- Enable UWP version of ICU to use Environment variable ICU_ENABLE_TENTATIVE_ERA for testing placeholder era names.
- Use LocalArray<int32_t> for the Era Start Dates to simply memory management, so that goto can be removed.
- Also fix some minor typos in header file.
2018-09-27 14:27:40 -07:00
Yoshito Umaoka
45cdda61a6
ICU-12973 CLDR Japanese Era data and tentative Japanese new era support ( #111 )
...
* Updated era data format in supplementalData.
* Include tentative era names in data. Implemented Japanese era loaded from CLDR data in ICU4J.
* ICU4C implementation, ICU4C refactoring. WIP.
* VS project updates and some bug fixes
Also added API comments.
* Review feedback and bug fixes
- NULL to nullptr
- use of LocalUResourceBundlePointer
- TYPO "name" to "named"
- env var checking stricmp() == 0
* API comment correction based on feedback
* Duplicate the comment in ucal.h to calendar.h
* Fixed spelling errors in API comment
2018-09-27 14:27:39 -07:00
Andy Heninger
35ce5296c1
ICU-13810 Doxygen warning cleanup.
2018-09-27 14:27:37 -07: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
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
Peter Edberg
5239b60d43
ICU-11313 Update U_HIDE_ macros (and U_DEPRECATED tags) for 55.0.1 (m1)
...
X-SVN-Rev: 36868
2014-12-15 00:42:34 +00:00
Travis Keep
3d248f9875
ICU-11401 Attempt to fix broken build.
...
X-SVN-Rev: 36812
2014-12-05 19:23:22 +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
Yoshito Umaoka
f4c185b9e7
ICU-11307 A minor document fix in Calendar's class doc.
...
X-SVN-Rev: 36618
2014-10-01 18:50:49 +00:00
Peter Edberg
2beaf3dacf
ICU-10992 BRS line 20, Check/fix non-stable API macros (U_HIDE_DRAFT_API and others)
...
X-SVN-Rev: 36520
2014-09-16 08:09:06 +00:00
Andy Heninger
ec0b491358
ICU-11007 Calendar::fZone, add comment clarifying that it cannot be NULL.
...
X-SVN-Rev: 36048
2014-07-16 22:29:20 +00:00
Markus Scherer
30de06a013
ICU-10700 fix minor API docs bug
...
X-SVN-Rev: 35436
2014-03-12 18:53:11 +00:00
Travis Keep
705755a025
ICU-10700 From Markus' review comments.
...
X-SVN-Rev: 35408
2014-03-11 21:18:34 +00:00