Commit Graph

150 Commits

Author SHA1 Message Date
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
kazède king
f713c0687c ICU-11872 new time formatting pattern chars b/B
Merging from the branch.

X-SVN-Rev: 38370
2016-02-25 19:51:53 +00:00
Jungshik Shin
f7de66ef4e ICU-12129 fix C4138 warning from MSVC
X-SVN-Rev: 38362
2016-02-25 01:49:48 +00:00
Fredrik Roubert
7f4b8d106b ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
R=markus.icu@gmail.com

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

X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Peter Edberg
49d4ab5ee6 ICU-11773 Withdraw COLON as pattern char, leave support for UDAT_TIME_SEPARATOR_FIELD (C)
X-SVN-Rev: 37898
2015-09-07 22:39:49 +00:00
Peter Edberg
3076cb2149 ICU-11510 C: Support narrow AM/PM "aaaaa" for date format and parse
X-SVN-Rev: 37124
2015-03-04 05:43:28 +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
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
e46b2b3c83 ICU-9385 DateFormatSymbols/udat getters/setters for yearNames, zodiacNames (C)
X-SVN-Rev: 36386
2014-09-08 04:52:23 +00:00
Peter Edberg
92a7528223 ICU-11173 CLDR tags/release-26-d03 into ICU4C trunk, remove logKnownIssue 11219, fix test for cldrbug:7868
X-SVN-Rev: 36377
2014-09-06 06:15:08 +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
Yoshito Umaoka
87158d4fba ICU-9867 New time zone pattern letters/types support for CLDR 23/ICU 51.
X-SVN-Rev: 33159
2013-02-11 00:23:55 +00:00
Peter Edberg
54098be451 ICU-9497 Add support for short weekday names: format, parse, get/set symbols (C)
X-SVN-Rev: 33047
2013-01-14 04:48:51 +00:00
Markus Scherer
af439c67de ICU-9789 lenient date/time parsing: accept missing or added trailing dot after non-numeric fields; refactor isNumeric() logic
X-SVN-Rev: 32962
2012-12-14 06:35:11 +00:00
Andy Heninger
803ac8f33c ICU-9461 Mutex Implementation Rework, merge from devel branch.
X-SVN-Rev: 32530
2012-10-05 21:22:02 +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
Yoshito Umaoka
1641940f00 ICU-8513 Merging TimeZoneNames/TimeZoneFormat APIs (as 49 technology preview) into trunk.
X-SVN-Rev: 31469
2012-02-21 11:06:50 +00:00
Peter Edberg
60152763f3 ICU-9110 Add date format functions to set/get context, use when formatting
X-SVN-Rev: 31458
2012-02-21 01:29:50 +00:00
Peter Edberg
0ab713c4fb ICU-8959 Add UDAT_YEAR_NAME_FIELD for pattern char 'U', implement format/parse for it (C)
X-SVN-Rev: 31215
2012-01-17 08:06:29 +00:00
Peter Edberg
122a779de8 ICU-8958 Review fixes - better handling of error conditions
X-SVN-Rev: 31099
2011-12-12 20:03:05 +00:00
Michael Ow
9cc995e9cd ICU-8718 Fix missing fLeapMonthPatterns when using copy constructor
X-SVN-Rev: 31098
2011-12-12 19:29:27 +00:00
Michael Ow
579059e902 ICU-8718 Fix memory leak caused by not deleting fLeapMonthPatterns
X-SVN-Rev: 31096
2011-12-12 17:18:19 +00:00
Peter Edberg
6dbcc24060 ICU-8958 integrate changes from cldrbug 4130:; add monthPatterns support to
DateFormatSymbols, use it to format leap months; ignore pattern char 'l'; add tests.

X-SVN-Rev: 31039
2011-12-06 08:00:44 +00:00
Yoshito Umaoka
4d7569c743 ICU-8342 Refactoring ZoneStringFormat into TimeZoneNames and TimeZoneFormat (all internal APIs for now). Also supporting localized GMT zero format and fallback region format for generic names.
X-SVN-Rev: 29984
2011-05-03 14:59:01 +00:00
Doug Felt
d62a45c0bc ICU-7232 merge branch/dougfelt/datasplit at revision 26862 into trunk
X-SVN-Rev: 26884
2009-11-12 21:53:42 +00:00
Michael Ow
b4853d0331 ICU-7222 Remove Windows x64 warnings by casting explicitly.
X-SVN-Rev: 26870
2009-11-11 15:47:22 +00:00
Peter Edberg
1e9adc5dc1 ICU-6072 Add DateFormatSymbols support for NarrowEras, use it to format & parse with GGGGG
X-SVN-Rev: 24709
2008-10-03 07:47:57 +00:00
Yoshito Umaoka
4e15257201 ICU-6256 Fix some GMT format problems revealed by the new locale data.
X-SVN-Rev: 23916
2008-05-16 19:50:26 +00:00
George Rhoten
60a75139f7 ICU-6205 Allow UCONFIG_NO_CONVERSION to work in the library code.
X-SVN-Rev: 23544
2008-03-10 20:09:55 +00:00
George Rhoten
de6512a9c1 ICU-6132 Undo some unneccessary changes. Remove some tabs. Make sure that the UErrorCode is propagated when possible. When a UErrorCode is available, don't check for a NULL return value.
X-SVN-Rev: 23479
2008-02-23 19:15:18 +00:00
Michael Ow
d357fc8b07 ICU-6132 Add memory allocation error checking in createZoneStrings().
X-SVN-Rev: 23205
2008-01-11 19:07:49 +00:00
George Rhoten
0dda41de85 ICU-5966 Fix some compiler warnings.
X-SVN-Rev: 23017
2007-12-05 05:37:54 +00:00
Yoshito Umaoka
7e51ed7330 ICU-5990 Merging time zone formatting/parsing changes from yoshito's working branch to the trunk.
X-SVN-Rev: 22978
2007-11-28 20:49:58 +00:00
John Emmons
1f0933a1df ICU-5965 Update metazone transition info to be GMT
X-SVN-Rev: 22723
2007-10-01 15:00:26 +00:00
John Emmons
96dbf4b17d ICU-5861 Implement new date formatting symbols from tr35
X-SVN-Rev: 22451
2007-08-21 16:57:21 +00:00
George Rhoten
4bb6b2f380 ICU-5708 Fix a memory leak.
X-SVN-Rev: 22301
2007-08-07 09:23:46 +00:00
George Rhoten
0977182319 ICU-5708 Fix a memory leak.
X-SVN-Rev: 22300
2007-08-07 09:01:12 +00:00
John Emmons
fc28f366f6 ICU-5708 Generic time zone support - clean up code
X-SVN-Rev: 22286
2007-08-06 21:12:34 +00:00
John Emmons
a2d03cc0fb ICU-5708 Generic time zone support
X-SVN-Rev: 22283
2007-08-06 15:17:35 +00:00
John Emmons
8988a12e7b ICU-5676 clean up supplementalBundle - make local
X-SVN-Rev: 21611
2007-05-31 23:13:56 +00:00
John Emmons
faee4af533 ICU-5676 Use supplemental data for resolving parsed metazone data
X-SVN-Rev: 21567
2007-05-21 21:07:01 +00:00
George Rhoten
a0d0218ded ICU-5566 Fix a typo
X-SVN-Rev: 21262
2007-03-15 15:38:56 +00:00
George Rhoten
4a76d92dd2 ICU-5566 Fix memory leaks.
X-SVN-Rev: 21259
2007-03-15 07:00:02 +00:00
George Rhoten
5d2448808c ICU-5566 Fix a potential double mutex lock.
X-SVN-Rev: 21257
2007-03-14 21:47:04 +00:00
George Rhoten
7b1b840ef1 ICU-5566 Fix some memory leaks.
X-SVN-Rev: 21256
2007-03-14 21:35:13 +00:00
George Rhoten
4ce697b02c ICU-5566 Fix some buffer overflow problems in new code. Add fixes when UCONFIG_NO_CONVERSION=1. Fix compiler warning.
X-SVN-Rev: 21255
2007-03-14 18:50:23 +00:00