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

Issue 5180044: code review 5180044: time: make month/day name comparisons case insenstive

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by borman
Modified:
12 years, 6 months ago
Reviewers:
r
CC:
r, r2, golang-dev
Visibility:
Public.

Description

time: make month/day name comparisons case insenstive Fixes issue 2324.

Patch Set 1 #

Patch Set 2 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 5 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Patch Set 6 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 7 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 8 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 9 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 10 : diff -r 76a6bff389d7 https://go.googlecode.com/hg/ #

Patch Set 11 : diff -r 110dde956bd9 https://go.googlecode.com/hg/ #

Patch Set 12 : diff -r 110dde956bd9 https://go.googlecode.com/hg/ #

Patch Set 13 : diff -r 110dde956bd9 https://go.googlecode.com/hg/ #

Patch Set 14 : diff -r de5179577ab4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -1 line) Patch
M src/pkg/time/format.go View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -1 line 0 comments Download
M src/pkg/time/time_test.go View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22
borman
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 7 months ago (2011-10-03 21:54:13 UTC) #1
bradfitz
Should have a test, otherwise you didn't really fix anything (at least long-term). On Mon, ...
12 years, 7 months ago (2011-10-03 21:55:18 UTC) #2
dsymonds
Add a test. Also, the CL description should just start with "time:", not "pkg/time:".
12 years, 7 months ago (2011-10-03 21:58:43 UTC) #3
rsc
R=r
12 years, 7 months ago (2011-10-03 22:09:50 UTC) #4
borman
On 2011/10/03 21:58:43, dsymonds wrote: > Add a test. > > Also, the CL description ...
12 years, 7 months ago (2011-10-03 22:10:35 UTC) #5
r
http://codereview.appspot.com/5180044/diff/7001/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5180044/diff/7001/src/pkg/time/format.go#newcode238 src/pkg/time/format.go:238: if len(val) >= len(v) && strings.EqualFold(val[0:len(v)], v) { this ...
12 years, 7 months ago (2011-10-03 22:29:51 UTC) #6
borman
PTAL I removed the dependency on the strings package. I didn't see much option but ...
12 years, 6 months ago (2011-10-04 16:22:25 UTC) #7
r
http://codereview.appspot.com/5180044/diff/14001/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5180044/diff/14001/src/pkg/time/format.go#newcode235 src/pkg/time/format.go:235: func strcaseeq(s1, s2 string) bool { this isn't C. ...
12 years, 6 months ago (2011-10-04 17:30:06 UTC) #8
r
or if you don't like "equal", go with "match".
12 years, 6 months ago (2011-10-04 17:30:28 UTC) #9
borman
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2011-10-04 17:34:34 UTC) #10
r
http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go#newcode238 src/pkg/time/format.go:238: for i, c1 := range s1 { the strings ...
12 years, 6 months ago (2011-10-04 17:40:44 UTC) #11
borman
On 2011/10/04 17:40:44, r wrote: > http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go > File src/pkg/time/format.go (right): > > http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go#newcode238 > ...
12 years, 6 months ago (2011-10-04 17:45:00 UTC) #12
borman
On 2011/10/04 17:45:00, borman wrote: > On 2011/10/04 17:40:44, r wrote: > > http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go > ...
12 years, 6 months ago (2011-10-04 17:46:55 UTC) #13
borman
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2011-10-04 17:47:11 UTC) #14
r
http://codereview.appspot.com/5180044/diff/10005/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5180044/diff/10005/src/pkg/time/format.go#newcode238 src/pkg/time/format.go:238: for i, c1 := range s1 { this is ...
12 years, 6 months ago (2011-10-04 17:59:46 UTC) #15
borman
http://codereview.appspot.com/5180044/diff/10005/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5180044/diff/10005/src/pkg/time/format.go#newcode238 src/pkg/time/format.go:238: for i, c1 := range s1 { On 2011/10/04 ...
12 years, 6 months ago (2011-10-04 18:14:53 UTC) #16
borman
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2011-10-04 18:15:10 UTC) #17
r
http://codereview.appspot.com/5180044/diff/19001/src/pkg/time/format.go File src/pkg/time/format.go (right): http://codereview.appspot.com/5180044/diff/19001/src/pkg/time/format.go#newcode242 src/pkg/time/format.go:242: // 'a' - 'A' is know to be a ...
12 years, 6 months ago (2011-10-04 18:19:23 UTC) #18
borman
Hello r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 6 months ago (2011-10-04 18:21:22 UTC) #19
r
LGTM
12 years, 6 months ago (2011-10-04 18:23:12 UTC) #20
r2
one last thing. please change the CL to read Fixes issue 2324. in exactly that ...
12 years, 6 months ago (2011-10-04 18:23:49 UTC) #21
r
12 years, 6 months ago (2011-10-04 19:52:35 UTC) #22
*** Submitted as http://code.google.com/p/go/source/detail?r=e631c2616d16 ***

time: make month/day name comparisons case insenstive

Fixes issue 2324.

R=r, r
CC=golang-dev
http://codereview.appspot.com/5180044

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

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