Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1419)

Issue 180370043: ticket:11018: Support CLDR time separator (ICU4J) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by roubert (google)
Modified:
10 years ago
Reviewers:
tkeep
CC:
mark_macchiato.com
Base URL:
svn+ssh://source.icu-project.org/repos/icu/icu4j/trunk
Visibility:
Public.

Description

ticket:11018: Support CLDR time separator (ICU4J) 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. R=rocketman@google.com Committed: http://bugs.icu-project.org/trac/changeset/36898

Patch Set 1 #

Total comments: 39

Patch Set 2 : Code review. #

Patch Set 3 : Improved names and Javadoc. #

Patch Set 4 : Updated if-statements for char ranges. #

Patch Set 5 : Improved lenient mode parsing, using alternate separator. #

Total comments: 2

Patch Set 6 : Replace Vector<> with ArrayList<>. #

Patch Set 7 : http://unicode.org/cldr/trac/ticket/8073 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -45 lines) Patch
M main/classes/core/src/com/ibm/icu/text/DateFormat.java View 1 2 chunks +15 lines, -1 line 0 comments Download
M main/classes/core/src/com/ibm/icu/text/DateFormatSymbols.java View 1 2 3 4 8 chunks +59 lines, -9 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java View 1 2 3 4 5 17 chunks +51 lines, -21 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/util/Calendar.java View 1 5 chunks +23 lines, -2 lines 0 comments Download
M main/classes/core/src/com/ibm/icu/util/GregorianCalendar.java View 2 chunks +3 lines, -1 line 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java View 1 2 3 4 5 6 6 chunks +41 lines, -10 lines 0 comments Download
M main/tests/core/src/com/ibm/icu/dev/test/format/TestMessageFormat.java View 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 14
roubert (google)
10 years ago (2014-11-27 17:42:43 UTC) #1
tkeep
Thanks for doing this work. https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/text/DateFormat.java File main/classes/core/src/com/ibm/icu/text/DateFormat.java (right): https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/text/DateFormat.java#newcode442 main/classes/core/src/com/ibm/icu/text/DateFormat.java:442: */ New public API ...
10 years ago (2014-12-01 18:36:18 UTC) #2
roubert (google)
https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/text/DateFormat.java File main/classes/core/src/com/ibm/icu/text/DateFormat.java (right): https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/text/DateFormat.java#newcode442 main/classes/core/src/com/ibm/icu/text/DateFormat.java:442: */ On 2014/12/01 18:36:17, tkeep wrote: > Please make ...
10 years ago (2014-12-02 20:55:21 UTC) #3
roubert (google)
https://codereview.appspot.com/180370043/diff/1/main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java File main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java (right): https://codereview.appspot.com/180370043/diff/1/main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java#newcode2009 main/tests/core/src/com/ibm/icu/dev/test/format/DateFormatTest.java:2009: TimeZone tz = TimeZone.getTimeZone("CET"); On 2014/12/01 18:36:18, tkeep wrote: ...
10 years ago (2014-12-03 15:16:02 UTC) #4
tkeep
https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/util/Calendar.java File main/classes/core/src/com/ibm/icu/util/Calendar.java (right): https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/util/Calendar.java#newcode4221 main/classes/core/src/com/ibm/icu/util/Calendar.java:4221: case TIME_SEPARATOR: On 2014/12/02 20:55:20, roubert (google) wrote: > ...
10 years ago (2014-12-04 00:42:36 UTC) #5
roubert (google)
https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/util/Calendar.java File main/classes/core/src/com/ibm/icu/util/Calendar.java (right): https://codereview.appspot.com/180370043/diff/1/main/classes/core/src/com/ibm/icu/util/Calendar.java#newcode4221 main/classes/core/src/com/ibm/icu/util/Calendar.java:4221: case TIME_SEPARATOR: On 2014/12/04 00:42:36, tkeep wrote: > Some ...
10 years ago (2014-12-04 18:07:44 UTC) #6
tkeep
I marked this ticket as fixed. Thanks for the hard work. On 4 December 2014 ...
10 years ago (2014-12-04 20:55:17 UTC) #7
roubert (google)
On Thu, Dec 4, 2014 at 9:55 PM, Travis Keep <rocketman@google.com> wrote: > I marked ...
10 years ago (2014-12-05 01:36:04 UTC) #8
tkeep
On 2014/12/05 01:36:04, roubert (google) wrote: > On Thu, Dec 4, 2014 at 9:55 PM, ...
10 years ago (2014-12-08 20:00:33 UTC) #9
roubert (google)
I've now updated this change with new handling of the time separator in lenient parsing, ...
10 years ago (2014-12-12 17:03:00 UTC) #10
tkeep
https://codereview.appspot.com/180370043/diff/80001/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java File main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java (right): https://codereview.appspot.com/180370043/diff/80001/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java#newcode3251 main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java:3251: Vector<String> data = new Vector<String>(3); ArrayList<String> data? ArrayList is ...
10 years ago (2014-12-12 20:54:58 UTC) #11
roubert (google)
https://codereview.appspot.com/180370043/diff/80001/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java File main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java (right): https://codereview.appspot.com/180370043/diff/80001/main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java#newcode3251 main/classes/core/src/com/ibm/icu/text/SimpleDateFormat.java:3251: Vector<String> data = new Vector<String>(3); On 2014/12/12 20:54:57, tkeep ...
10 years ago (2014-12-15 12:49:28 UTC) #12
roubert (google)
Do you have any further comments about this change, or is it good to submit ...
10 years ago (2014-12-15 22:51:01 UTC) #13
roubert (google)
10 years ago (2014-12-19 07:20:23 UTC) #14
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as 36898 (presubmit successful).
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b