Commit Graph

52 Commits

Author SHA1 Message Date
Jeff Genovy
b12a927c93 ICU-13778 DataTimePatternGenerator code refactor. Handle Out-of-Memory (OOM) errors, use LocalPointer to prevent memory leaks when OOM occurs, use an internal error code to better report errors during clone and copy construction, mark helper methods and parameters as const, use nullptr instead of NULL, minor spelling and formatting changes. (Note: All tests pass on Windows and Linux).
X-SVN-Rev: 41552
2018-06-27 19:25:52 +00:00
Norbert Runge
63d5dc895a ICU-13624 Public header build failures
X-SVN-Rev: 41070
2018-03-06 18:40:12 +00:00
Peter Edberg
b69d78b0e8 ICU-12740 use private static const int32_t, not #define, for UDATPG_WIDTH_COUNT
X-SVN-Rev: 41035
2018-03-01 07:21:19 +00:00
Peter Edberg
7cf0adb29a ICU-12740 getFieldDisplayName C/C++ initial implementation & C tests; TODO: C++ tests and Java imp
X-SVN-Rev: 40922
2018-02-15 08:38:20 +00:00
Norbert Runge
d835c3aac4 ICU-13384 fixes issues found in public header checks and unconfig.h variation check.
X-SVN-Rev: 40592
2017-10-06 16:52:14 +00:00
Peter Edberg
56e884e22e ICU-13183 on branch - Handle different field lengths for skeleton metachars j,C
X-SVN-Rev: 40126
2017-05-22 22:24:39 +00:00
Peter Edberg
7dd19b65ab ICU-13183 on branch - Handle abB as normal fields but force add/remove depending on hour field; other fixes
X-SVN-Rev: 40124
2017-05-22 06:16:11 +00:00
Norbert Runge
28d3ddb66f ICU-13053 fix compilation errors when UCONFIG_NO_FORMATTING is switched on
X-SVN-Rev: 39941
2017-03-27 16:14:45 +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
Steven R. Loomis
6825277072 ICU-12752 commit some IBM z fixes. Library code building
X-SVN-Rev: 39368
2016-09-27 23:39:01 +00:00
Andy Heninger
0c77de936b ICU-12734 ICU4C 58 API Promotion.
X-SVN-Rev: 39318
2016-09-21 21:20:27 +00:00
Shane Carr
ae61a779f5 ICU-12576 Fixing test failures under --disable-release mode.
X-SVN-Rev: 38864
2016-06-18 01:37:37 +00:00
Shane Carr
85bd97406d ICU-12576 Updating C++ DateTimePatternGenerator to use data sinks.
X-SVN-Rev: 38861
2016-06-17 22:29:19 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Shane Carr
41fed01112 ICU-11782 Optimizing storage of skeleton field strings in DateTimePatternGenerator (C++).
X-SVN-Rev: 38780
2016-05-31 23:49:11 +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
kazède king
47a0d7975f ICU-11872 improve data loading and caching for DateTimePatternGenerator pattern char 'C'; plugs leak.
X-SVN-Rev: 38465
2016-03-02 22:43:27 +00:00
Michael Ow
499344bbfb ICU-11872 Remove comma at the end of enum list
X-SVN-Rev: 38438
2016-02-29 20:30:17 +00:00
kazède king
e7d56c1f66 ICU-11872 port date time pattern generator char 'C' from Java to C++
X-SVN-Rev: 38397
2016-02-27 00:41:21 +00:00
Michael Ow
6a32e3f591 ICU-12139 Fix uconfig test errors for 57
X-SVN-Rev: 38383
2016-02-26 18:51:13 +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
Travis Keep
6ed4b6178a ICU-11779 Introduce static versions of DTPNG getSkeleton and getBaseSkeleton
X-SVN-Rev: 37771
2015-08-13 22:09:13 +00:00
Peter Edberg
954236108c ICU-11400 Fix documentation of DateTimeFormat in setDateTimeFormat/udatpg_setDateTimeFormat
X-SVN-Rev: 37143
2015-03-05 05:36:25 +00:00
Steven R. Loomis
094d12cdca ICU-11389 revert r36758 - re-checkin under r11139 once working?
X-SVN-Rev: 36762
2014-11-20 01:28:18 +00:00
Steven R. Loomis
738cee69cc ICU-11389 improve error checking
X-SVN-Rev: 36758
2014-11-20 00:34:29 +00:00
Travis Keep
4860c7e5b7 ICU-11139 Add JAVA DateFormat factory methods to C++
X-SVN-Rev: 36745
2014-11-18 00:43:49 +00:00
Peter Edberg
1f21a220d9 ICU-10378 (C) Delete comma at end of enumerator list
X-SVN-Rev: 34293
2013-09-12 23:48:02 +00:00
Peter Edberg
ce1c10fd51 ICU-10378 (C) Support skeleton meta-character 'J' in DateTimePatternGenerator
X-SVN-Rev: 34292
2013-09-12 22:49:07 +00:00
Bing Long
b58875e894 ICU-10254 Added dtitvfmtsample.cpp, dtptngsample.cpp, and plurfmtsample.cpp. Update all/all.sln, dtitvfmt.h,dtptngen.h and plurfmt.h to embed the sample into the ICU4C API docs.
X-SVN-Rev: 33953
2013-07-22 16:31:11 +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
Peter Edberg
3384286860 ICU-8155 Promote appropriate @draft 4.2 and 4.4 API to @stable
X-SVN-Rev: 29035
2010-11-12 06:03:28 +00:00
Peter Edberg
98723ad2bd ICU-7180 For hour field, change default behavior to not adjust pattern
field length to match requested skeleton. For getBestPattern,replaceFieldTypes
add option to override this, forcing pattern field length to match skeleton.

X-SVN-Rev: 27036
2009-12-10 09:13:49 +00:00
Michael Ow
9100ba632e ICU-6905 Log errors as data errors where appropriate to ensure cintltst passes without data. Some areas don't propagate error code. Add new error log function to check for error code.
X-SVN-Rev: 26084
2009-06-09 21:28:13 +00:00
Peter Edberg
edea4db881 ICU-6800 Support 'j' in requested skeletons, adjust availableFormats & tests accordingly
X-SVN-Rev: 25636
2009-03-20 00:08:24 +00:00
Peter Edberg
1e521d134d ICU-6626 Make DateTimePatternGenerator:initData use the skeletons specified for availableFormats,
eliminate CJK months hack, use skeletons to improve adjustFieldTypes behavior, add some necessary
availableFormats entries, and fix expected test results now that getBestPattern is more correct.

X-SVN-Rev: 24976
2008-11-18 18:27:40 +00:00
Steven R. Loomis
fa50d4a3b2 ICU-6435 fix bad 4.0 tags. Re-do r23962 as stable 3.8 instead of stable 4.0.
X-SVN-Rev: 24395
2008-07-21 18:57:26 +00:00
Steven R. Loomis
a5d6b9619c ICU-6297 fixup doxygen tags
X-SVN-Rev: 24046
2008-05-28 21:20:51 +00:00
Steven R. Loomis
c2ae3e30a4 ICU-6297 move @draft to @stable
X-SVN-Rev: 23962
2008-05-21 23:27:14 +00:00
George Rhoten
acd8f28273 ICU-6076 Make sure that we objects are fully initialized for deletion, and
that we don't leak memory after an allocation failure.

X-SVN-Rev: 23450
2008-02-17 18:26:39 +00:00
Eric Mader
2ec39c5999 ICU-6104 update stale copyright notice.
X-SVN-Rev: 23193
2008-01-09 20:18:29 +00:00
Claire Ho
307a3f8307 ICU-6104 fixed the inconsistent behavior of DateTimePatternGen between ICU4C and ICU4J.
X-SVN-Rev: 23156
2008-01-03 01:40:16 +00:00
Michael Ow
c2f58bb5a5 ICU-5357 Added draft label for DateTimePatternGenerator destructor.
X-SVN-Rev: 22528
2007-08-24 23:36:45 +00:00
Claire Ho
12dd691583 ICU-5787 code cleanup.
X-SVN-Rev: 22485
2007-08-23 05:48:44 +00:00
Claire Ho
c9f5e38fb9 ICU-5787 Added operator!= .
X-SVN-Rev: 22313
2007-08-08 01:07:23 +00:00
Claire Ho
887eafb2c8 ICU-5787 1. Added test cases. 2. code clean up.
X-SVN-Rev: 22295
2007-08-07 03:14:19 +00:00
George Rhoten
3727ad903b ICU-5787 Minor code cleanup.
X-SVN-Rev: 22282
2007-08-04 14:19:29 +00:00
George Rhoten
5c98f3a1fc ICU-5787 Allow UCONFIG_NO_CONVERSION=1 to work.
X-SVN-Rev: 22277
2007-08-04 04:13:16 +00:00
George Rhoten
40bb1dfddb ICU-5787 Check point check in to fix the following errors.
Memory leaks. Portability errors. Compiler warnings. etc.
Still trying to narrow down AIX failure.

X-SVN-Rev: 22274
2007-08-04 02:44:11 +00:00