WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
98117
[Chromium-Win] Implement LocaleWin::dateFormat
https://bugs.webkit.org/show_bug.cgi?id=98117
Summary
[Chromium-Win] Implement LocaleWin::dateFormat
Kent Tamura
Reported
2012-10-01 22:53:33 PDT
[Chromium-Win] Implement LocaleWin::dateFormat
Attachments
Patch
(5.17 KB, patch)
2012-10-02 01:48 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch 2
(5.27 KB, patch)
2012-10-02 01:53 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Patch 3
(9.12 KB, patch)
2012-10-02 03:51 PDT
,
Kent Tamura
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Kent Tamura
Comment 1
2012-10-02 01:48:49 PDT
Created
attachment 166642
[details]
Patch
Kent Tamura
Comment 2
2012-10-02 01:53:42 PDT
Created
attachment 166644
[details]
Patch 2
Kentaro Hara
Comment 3
2012-10-02 02:13:22 PDT
Comment on
attachment 166644
[details]
Patch 2 View in context:
https://bugs.webkit.org/attachment.cgi?id=166644&action=review
> Source/WebCore/ChangeLog:13 > + No new tests. The function is not used yet.
Isn't there any way to add a test? At least I want a manual test.
> Source/WebCore/platform/text/LocaleWin.cpp:703 > + for (unsigned i = 0; i < literal.length(); ++i) { > + if (literal[i] == '\'') > + buffer.append("''"); > + else { > + String escaped = literal.substring(i); > + escaped.replace(ASCIILiteral("'"), ASCIILiteral("''")); > + buffer.append("'"); > + buffer.append(escaped); > + buffer.append("'"); > + return; > + } > + }
I don't fully understand the behavior: '' => '''''' 'abc' => '''abc''' a'bc' => 'a''bc''' ?
Kent Tamura
Comment 4
2012-10-02 03:51:27 PDT
Created
attachment 166657
[details]
Patch 3 Add test
Kent Tamura
Comment 5
2012-10-02 03:58:02 PDT
Comment on
attachment 166644
[details]
Patch 2 View in context:
https://bugs.webkit.org/attachment.cgi?id=166644&action=review
>> Source/WebCore/ChangeLog:13 >> + No new tests. The function is not used yet. > > Isn't there any way to add a test? At least I want a manual test.
I exposed a function of LocaleWin, and added a test to LocaleWinTest.cpp.
>> Source/WebCore/platform/text/LocaleWin.cpp:703 >> + } > > I don't fully understand the behavior: > > '' => '''''' > 'abc' => '''abc''' > a'bc' => 'a''bc''' > > ?
| '' => '''''' This should be: '' => '''' | 'abc' => '''abc''' | a'bc' => 'a''bc''' Right. - ' is always represented as '' - other letters are always quoted by ' and '. - If a source string starts with ', we need special handling. If the source string was ' and we replaced it with '' then wrap with ' and ', the function would produce '''', which will be recognized as two quotes.
Kentaro Hara
Comment 6
2012-10-02 04:08:14 PDT
Comment on
attachment 166657
[details]
Patch 3 Looks OK.
WebKit Review Bot
Comment 7
2012-10-02 18:17:04 PDT
Comment on
attachment 166657
[details]
Patch 3 Clearing flags on attachment: 166657 Committed
r130242
: <
http://trac.webkit.org/changeset/130242
>
WebKit Review Bot
Comment 8
2012-10-02 18:17:07 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug