Peter Edberg
7d74634fa5
ICU-11433 BRS, no U_HIDE conditionals around impl code or private fields; fix comment typos
...
X-SVN-Rev: 37234
2015-03-16 04:15:28 +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
Peter Edberg
c56a20e796
ICU-11539 C: Delete Calendar fields TIME_SEPARATOR, RELATED_YEAR; adjust accordingly
...
X-SVN-Rev: 37091
2015-02-27 09:01:31 +00:00
Yoshito Umaoka
72a0e9b14f
ICU-11294 Fixed a compiler warning, and a typo in the previous commit.
...
X-SVN-Rev: 37068
2015-02-26 00:08:39 +00:00
Yoshito Umaoka
ebe09a9e69
ICU-11294 Changed SimpleDateFormat and other implementation to reduce malloc calls for common date formatting/parsing operations.
...
X-SVN-Rev: 37064
2015-02-25 03:24:19 +00:00
Michael Ow
7dff411df7
ICU-11452 Improve null check
...
X-SVN-Rev: 36981
2015-01-22 19:26:09 +00:00
Michael Ow
c7cd5c468b
ICU-11452 Change reference to pointer to avoid null reference problems in SimpleDateFormat
...
X-SVN-Rev: 36942
2015-01-12 19:02:31 +00:00
Fredrik Roubert
60087d06a1
ICU-11018 Refactor date format string mapping code (ICU4C)
...
To make this code more maintainable: Make mapping tables zero based, add
a table to tell if a character can be used to define a field in a format
string (instead of now rather long-winded character range expressions)
and make all lookup tables accessed through helper functions.
R=rocketman@google.com
Review URL: https://codereview.appspot.com/190080043
X-SVN-Rev: 36899
2014-12-19 07:27:58 +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
Andy Heninger
ea29e154b5
ICU-11452 Remove NULL check causing a compile warning. An alternate check is still needed.
...
X-SVN-Rev: 36896
2014-12-19 02:34:24 +00:00
Michael Ow
f61f05e5f5
ICU-11313 Fix some no data test failures
...
X-SVN-Rev: 36865
2014-12-12 04:34:51 +00:00
Travis Keep
00c6bb79bf
ICU-11295 Fix getNumberFormatForField so that it returns either a valid pointer or NULL.
...
X-SVN-Rev: 36822
2014-12-08 19:35:38 +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
Steven R. Loomis
11462b188e
ICU-11131 revert to r36481
...
X-SVN-Rev: 36484
2014-09-11 22:55:13 +00:00
Steven R. Loomis
482e90080c
ICU-11131 re-checking in due to conflicts with r36481..
...
X-SVN-Rev: 36483
2014-09-11 22:47:47 +00:00
Yoshito Umaoka
f7ee04ba38
ICU-11131 Updates based on review feedback.
...
X-SVN-Rev: 36481
2014-09-11 22:36:46 +00:00
Steven R. Loomis
9e20f6ebb2
ICU-11131 on low memory situations, return U_MEMORY_ALLOCATION_ERROR instead of crash
...
X-SVN-Rev: 36430
2014-09-10 15:39:02 +00:00
Tom Zhang
2c1c85aee8
ICU-10320 fix compiler warning & solaris error
...
X-SVN-Rev: 36119
2014-08-01 21:33:16 +00:00
Tom Zhang
26063a3454
ICU-10320 API for getting/setting number format override in date formatting
...
X-SVN-Rev: 36097
2014-07-29 18:42:07 +00:00
Scott Russell
0711da6b18
ICU-10906 prevent SimpleDateFormat from trying to parse when ParsePosition is less than 0
...
X-SVN-Rev: 35874
2014-06-13 14:36:05 +00:00
Scott Russell
68c893b2f1
ICU-10855 fix handling of partial match leniency to not falsely pass literals that should fail
...
X-SVN-Rev: 35720
2014-05-16 17:38:08 +00:00
Michael Ow
3daf54af40
ICU-10740 Fix uconfig test errors
...
X-SVN-Rev: 35480
2014-03-15 06:08:42 +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
Scott Russell
8791b26095
ICU-10625 address data checks in DateFormatTest::TestDateFormatLeniency not checking expected results
...
X-SVN-Rev: 35340
2014-03-05 00:52:30 +00:00
Scott Russell
eb0fd12224
ICU-10336 add leniency controls for lenient like behavior
...
X-SVN-Rev: 35319
2014-03-04 14:40:36 +00:00
Peter Edberg
27cfaed4d8
ICU-10681 Lazily get and cache BreakIterator for titlecasing; lazily get contextTransform info if possible (C)
...
X-SVN-Rev: 35287
2014-03-02 00:44:35 +00:00
George Rhoten
4397b041e3
ICU-10622 Fix warnings and errors when DEBUG is accidentally defined.
...
X-SVN-Rev: 35007
2014-01-28 04:25:46 +00:00
Yoshito Umaoka
48c55b449e
ICU-10653 Fixed a thread safety problem in SimpleDateFormat.
...
X-SVN-Rev: 34992
2014-01-27 14:53:26 +00:00
Scott Russell
c7677154e6
ICU-10619 Improve usability of DateFormat's leniency control & promote BooleanAttribute control to draft for v53
...
X-SVN-Rev: 34888
2014-01-14 17:26:35 +00:00
Peter Edberg
9cf4a2acd5
ICU-10591 Hoist setContext from SimpleDateFormat/RelativeDateFormat to DateFormat
...
X-SVN-Rev: 34881
2014-01-12 05:23:30 +00:00
Scott Russell
37e74533a6
ICU-10334 C vs. J differences when in lenient mode
...
X-SVN-Rev: 34792
2013-12-18 20:03:44 +00:00
Scott Russell
41d2876025
ICU-10261 give DateFormat more granular leniency control
...
X-SVN-Rev: 34327
2013-09-16 12:45:41 +00:00
Peter Edberg
ec6a2c8696
ICU-10186 Need special numeric era format/parse for dangi too (C)
...
X-SVN-Rev: 33734
2013-05-23 01:28:21 +00:00
Andy Heninger
3b379f4c28
ICU-7468 Use C++ "using" in Format class hierarchy, so inheritance of format() and parse() functions works normally, without unwanted function hiding.
...
X-SVN-Rev: 33457
2013-03-21 22:09:06 +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
Peter Edberg
93632b56f2
ICU-9781 Parsing fractional seconds should truncate (not round) to 3 places (C)
...
X-SVN-Rev: 33044
2013-01-13 18:54:09 +00:00
Scott Russell
c54b40f7dc
ICU-9836 C/Java mismatch parsing years with pattern "yyyy"
...
X-SVN-Rev: 33011
2013-01-04 17:16:07 +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
Peter Edberg
20af3447f4
ICU-9633 Adjust to UDisplayContext[Type] updates
...
X-SVN-Rev: 32570
2012-10-09 03:48:24 +00:00
Peter Edberg
b6053b4240
ICU-9633 Adapt date fmt display context APIs to tentative new UDisplayContext
...
X-SVN-Rev: 32549
2012-10-08 16:52:35 +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
Peter Edberg
8db60a2d2b
ICU-9399 return correct parse index when an era is expected but something else is found
...
X-SVN-Rev: 32262
2012-08-28 03:40:07 +00:00
Peter Edberg
00b9ba863a
ICU-9256 For he@calendar=hebrew, offset the years within the current millenium down to 1-999
...
X-SVN-Rev: 32236
2012-08-27 05:58:17 +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
a1b5c33222
ICU-9237 Fixed copy constructor and assignment operator implementation problem in SimpleDateFormat. Also added a test case demonstrates the issue.
...
X-SVN-Rev: 31664
2012-03-30 21:07:56 +00:00
Michael Ow
2e9b4064b7
ICU-9168 Add some more fix for uconfig and header test failures
...
X-SVN-Rev: 31577
2012-03-02 20:18:40 +00:00
Michael Ow
782387a888
ICU-9168 Fix some uconfig test errors
...
X-SVN-Rev: 31574
2012-03-02 17:59:56 +00:00
Michael Ow
76444a4b71
ICU-8716 Fix errors in cintltst and intltest when data is missing
...
X-SVN-Rev: 31552
2012-03-01 05:27:43 +00:00