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
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
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
> > File src/pkg/time/format.go (right):
> >
> >
>
http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go#newco...
> > src/pkg/time/format.go:238: for i, c1 := range s1 {
> > the strings are ascii and the rest of the code assumes they are. might as
well
> > loop on bytes and avoid the conversions.
> >
> >
>
http://codereview.appspot.com/5180044/diff/10002/src/pkg/time/format.go#newco...
> > src/pkg/time/format.go:242: if c1 < 'a' || c1 > 'z' || (c2|' ') != c1 {
> > i'm a fan of or'ing with ' ' but i've been yelled at too often for being
> > obscure. today's programmers don't know what a bit is, let alone have ascii
> > memorized, so just write the addition.
> >
> > sorry. sniff.
>
> Well, I guess it is confusing to EBCDIC users...
I don't think you are going to like the "fix". You can't use addition, but I
did get rid of the ' '.
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
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
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
*** Submitted as http://code.google.com/p/go/source/detail?r=e631c2616d16 *** time: make month/day name comparisons case insenstive Fixes issue 2324. ...
12 years, 6 months ago
(2011-10-04 19:52:35 UTC)
#22
Issue 5180044: code review 5180044: time: make month/day name comparisons case insenstive
Created 12 years, 7 months ago by borman
Modified 12 years, 6 months ago
Reviewers:
Base URL:
Comments: 11