Commit Graph

114 Commits

Author SHA1 Message Date
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
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
Peter Edberg
e2e48c9dce ICU-13183 for compatibility, get(Base)Skeleton should not include 'a' added by DateTimeMatcher; add tests
X-SVN-Rev: 40133
2017-05-24 06:57:45 +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
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
68401040eb ICU-12852 Remove some unnecessary copy (merge from bug)
X-SVN-Rev: 39542
2016-12-14 18:41:04 +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
Steven R. Loomis
f0156c183b ICU-12701 additional porting issues.
X-SVN-Rev: 39323
2016-09-21 23:52:53 +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
Steven R. Loomis
df5c722121 ICU-12704 fix tabs in dtptngen.cpp
X-SVN-Rev: 39125
2016-09-02 21:00:19 +00:00
Steven R. Loomis
93180d2d73 ICU-12704 change dtptngen.cpp to use LocalMemory<int32_t> instead of LocalArray
LocalArray cannot be used with primitive types.

X-SVN-Rev: 39114
2016-08-31 23:36:19 +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
Markus Scherer
192500a361 ICU-12510 resource data enumeration: get array/table objects from ResourceValue, iterate with nested code & functions not by returning nested sinks; use this in DateTimePatternGenerator AllowedHourFormatsSink
X-SVN-Rev: 38655
2016-04-27 16:19:26 +00:00
Markus Scherer
f292628ed7 ICU-12446 Resource sink size: move into new enter(size) method
X-SVN-Rev: 38606
2016-04-07 00:18:33 +00:00
Peter Edberg
a7d264944d ICU-12187 BRS task - Update conditionals for non-stable APIs (common); fix clang warnings
X-SVN-Rev: 38495
2016-03-05 00:06:07 +00:00
Markus Scherer
155fb20a8e ICU-12187 fix dependencies, add a file, fix memory allocations
X-SVN-Rev: 38479
2016-03-03 22:56:54 +00:00
kazède king
d845084966 ICU-11872 fix invalid memory read
X-SVN-Rev: 38467
2016-03-02 23:49:30 +00:00
kazède king
4a45deb1ac ICU-11872 I can't svn very well (actually resolves conflict this time)
X-SVN-Rev: 38466
2016-03-02 22:48:21 +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
968747625e ICU-12187 Close resource to avoid memory leak
X-SVN-Rev: 38448
2016-03-01 18:32:00 +00:00
Michael Ow
bebd3e79ae ICU-12187 Fix memory leak in ICU4C 57
X-SVN-Rev: 38446
2016-03-01 07:37:31 +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
Markus Scherer
bb5f37a069 ICU-7457 replace MessageFormat with SimpleFormatter where easy; remove obsolete ChoiceFormat handling of currency names; move LocaleDisplayNames & ucurr from i18n to common
X-SVN-Rev: 38200
2016-01-26 22:56:59 +00:00
Fredrik Roubert
25f9110090 ICU-11985 Handle 'j' and 'J' in date time pattern skeletons.
R=mark.edward.davis@gmail.com, markus.icu@gmail.com, pedberg@apple.com

Review URL: https://codereview.appspot.com/279780043 .

X-SVN-Rev: 38089
2015-11-18 12:29:17 +00:00
Travis Keep
b7d18e518c ICU-11780 Reduce heap size for caching date formatters.
X-SVN-Rev: 37860
2015-09-01 20:13:27 +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
Steven R. Loomis
7e6c572256 ICU-10774 fix a knownissue: Collator::getAvailableLocales calculation.
Also, replace uhash_nextElement's parameter "-1" with UHASH_FIRST for clarity.
Also, improve service registration debugging code

X-SVN-Rev: 36836
2014-12-09 23:54:56 +00:00
Steven R. Loomis
9f5a68f08f ICU-11389 revert r36758 - re-checkin under r11139 once working?
X-SVN-Rev: 36761
2014-11-20 01:26:30 +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
Steven R. Loomis
7594250cc5 ICU-7653 changed uprv_lengthof to UPRV_LENGTHOF, also added apidoc
X-SVN-Rev: 36275
2014-08-28 22:13:45 +00:00
Tom Zhang
ee1f29b584 ICU-7653 move LENGTHOF(array) to common, internal header
X-SVN-Rev: 36265
2014-08-28 14:55:34 +00:00
Andy Heninger
dbcf79f57b ICU-10799 ICU initialization code, review & cleanup.
X-SVN-Rev: 35649
2014-04-23 23:22:13 +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
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
Peter Edberg
33c679b135 ICU-10065 Delete redundant LOW_K row in dtTypes[]
X-SVN-Rev: 34262
2013-09-10 21:29:14 +00:00
Peter Edberg
ebea161b11 ICU-10065 In DateTimePatternGenerator, add support for pattern chars K,O,X,x, adjust support for V
X-SVN-Rev: 34256
2013-09-10 07:51:38 +00:00
Peter Edberg
b862a59d5e ICU-10195 Fix CLDR_FIELD_NAME[] array so getting localized name for UDATPG_DAY_FIELD works
X-SVN-Rev: 33859
2013-06-27 07:41:56 +00:00
Peter Edberg
79b8f74642 ICU-9984 For DTPG, Y in skeleton should produce Y in pattern
X-SVN-Rev: 33562
2013-04-29 22:10:29 +00:00
Peter Edberg
bc29c28e46 ICU-9965 Don't skip availableFormats items from non-root locales if conflict only due to basePattern (C)
X-SVN-Rev: 33360
2013-03-04 11:10:20 +00:00