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

Issue 180610043: ticket:11018: Support CLDR time separator (ICU4C) (Closed)

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

Description

ticket: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 Committed: http://bugs.icu-project.org/trac/changeset/36897

Patch Set 1 #

Total comments: 22

Patch Set 2 : Code review. #

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -32 lines) Patch
M source/i18n/calendar.cpp View 1 3 chunks +5 lines, -2 lines 0 comments Download
M source/i18n/dtfmtsym.cpp View 1 9 chunks +49 lines, -3 lines 0 comments Download
M source/i18n/gregocal.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M source/i18n/smpdtfmt.cpp View 1 2 13 chunks +60 lines, -15 lines 0 comments Download
M source/i18n/unicode/dtfmtsym.h View 1 2 3 2 chunks +35 lines, -0 lines 0 comments Download
M source/i18n/unicode/ucal.h View 1 chunk +12 lines, -1 line 0 comments Download
M source/i18n/unicode/udat.h View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M source/test/cintltst/cdattst.c View 1 chunk +1 line, -1 line 0 comments Download
M source/test/intltest/dtfmrgts.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M source/test/intltest/dtfmttst.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M source/test/intltest/dtfmttst.cpp View 1 2 3 6 chunks +45 lines, -6 lines 0 comments Download
M source/tools/toolutil/udbgutil.cpp View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 13
roubert (google)
9 years, 11 months ago (2014-12-05 23:23:10 UTC) #1
tkeep
Ok, I've started reviewing, but got to go because of holiday party. On 5 December ...
9 years, 11 months ago (2014-12-06 00:11:41 UTC) #2
tkeep
More to come. https://codereview.appspot.com/180610043/diff/1/source/i18n/dtfmtsym.cpp File source/i18n/dtfmtsym.cpp (right): https://codereview.appspot.com/180610043/diff/1/source/i18n/dtfmtsym.cpp#newcode770 source/i18n/dtfmtsym.cpp:770: static const UnicodeString defaultTimeSeparator(':'); Not sure ...
9 years, 11 months ago (2014-12-06 00:12:46 UTC) #3
tkeep
https://codereview.appspot.com/180610043/diff/1/source/i18n/dtfmtsym.cpp File source/i18n/dtfmtsym.cpp (right): https://codereview.appspot.com/180610043/diff/1/source/i18n/dtfmtsym.cpp#newcode1627 source/i18n/dtfmtsym.cpp:1627: if (U_SUCCESS(tempStatus) && ns.isValid()) { It should be enough ...
9 years, 11 months ago (2014-12-08 17:46:54 UTC) #4
roubert (google)
https://codereview.appspot.com/180610043/diff/1/source/i18n/dtfmtsym.cpp File source/i18n/dtfmtsym.cpp (right): https://codereview.appspot.com/180610043/diff/1/source/i18n/dtfmtsym.cpp#newcode770 source/i18n/dtfmtsym.cpp:770: static const UnicodeString defaultTimeSeparator(':'); On 2014/12/06 00:12:46, tkeep wrote: ...
9 years, 11 months ago (2014-12-10 22:54:21 UTC) #5
roubert (google)
I've now updated this change with new handling of the time separator in lenient parsing, ...
9 years, 11 months ago (2014-12-12 17:02:59 UTC) #6
roubert (google)
Do you have any further comments about this change, or is it good to submit ...
9 years, 11 months ago (2014-12-15 22:51:02 UTC) #7
tkeep
I only wish I understood how your unit tests test the functionality you added. I ...
9 years, 11 months ago (2014-12-16 15:15:49 UTC) #8
roubert (google)
On 2014/12/16 15:15:49, tkeep wrote: > I only wish I understood how your unit tests ...
9 years, 11 months ago (2014-12-16 15:47:11 UTC) #9
tkeep
Sound good. At least put a TODO / comment stating that your functionality is tested ...
9 years, 11 months ago (2014-12-16 17:52:44 UTC) #10
roubert (google)
On 2014/12/16 17:52:44, tkeep wrote: > At least put a TODO / comment stating that ...
9 years, 11 months ago (2014-12-16 19:26:16 UTC) #11
tkeep
LGTM On 16 December 2014 at 11:26, <roubert@google.com> wrote: > > On 2014/12/16 17:52:44, tkeep ...
9 years, 11 months ago (2014-12-18 21:55:30 UTC) #12
roubert (google)
9 years, 11 months ago (2014-12-19 07:19:50 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as 36897 (presubmit successful).
Sign in to reply to this message.

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