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

Issue 6202062: code review 6202062: exp/locale/collate: implementation of main collation fu... (Closed)

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

Description

exp/locale/collate: implementation of main collation functionality for key and simple comparisson. Search is not yet implemented in this CL. Changed some of the types of table_test.go to allow reuse in the new test. Also reduced number of primary values for illegal runes to 1 (both map to the same).

Patch Set 1 #

Patch Set 2 : diff -r 9182664c616f https://go.googlecode.com/hg #

Patch Set 3 : diff -r 9182664c616f https://go.googlecode.com/hg #

Total comments: 18

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+750 lines, -89 lines) Patch
M src/pkg/exp/locale/collate/build/colelem.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/exp/locale/collate/colelem.go View 1 2 chunks +3 lines, -1 line 0 comments Download
M src/pkg/exp/locale/collate/collate.go View 1 2 3 4 chunks +200 lines, -8 lines 0 comments Download
A src/pkg/exp/locale/collate/collate_test.go View 1 2 3 1 chunk +422 lines, -0 lines 0 comments Download
M src/pkg/exp/locale/collate/export_test.go View 1 2 chunks +50 lines, -7 lines 0 comments Download
M src/pkg/exp/locale/collate/table_test.go View 1 11 chunks +74 lines, -72 lines 0 comments Download

Messages

Total messages: 3
mpvl
Hello r@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg
12 years, 10 months ago (2012-05-09 13:10:20 UTC) #1
r
LGTM nice http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/collate.go File src/pkg/exp/locale/collate/collate.go (right): http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/collate.go#newcode127 src/pkg/exp/locale/collate/collate.go:127: // Compares calls ResetKeys, thereby invalidating keys ...
12 years, 10 months ago (2012-05-10 18:59:17 UTC) #2
mpvl
12 years, 10 months ago (2012-05-17 17:49:04 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=0581aafd0aaf ***

exp/locale/collate: implementation of main collation functionality for
key and simple comparisson. Search is not yet implemented in this CL.
Changed some of the types of table_test.go to allow reuse in the new test.
Also reduced number of primary values for illegal runes to 1 (both map to
the same).

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

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
File src/pkg/exp/locale/collate/collate.go (right):

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate.go:127: // Compares calls ResetKeys, thereby
invalidating keys
On 2012/05/10 18:59:17, r wrote:
> s/Compares/Compare/

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate.go:143: // Compares calls ResetKeys, thereby
invalidating keys
On 2012/05/10 18:59:17, r wrote:
> s/Compares/CompareString/

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate.go:171: // The returned slice will point to
an allocation in Buffer and will retain
On 2012/05/10 18:59:17, r wrote:
> s/retain/remain/

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
File src/pkg/exp/locale/collate/collate_test.go (right):

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate_test.go:33: }
On 2012/05/10 18:59:17, r wrote:
> add blank line

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate_test.go:202: t.Errorf("%d: len(ws) was %d;
want %d (%v vs %v)", i, len(res), len(tt.out), res, tt.out)
On 2012/05/10 18:59:17, r wrote:
> s/vs/should be/

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate_test.go:307: t.Errorf("%d: len(ws) was %d;
want %d (%X vs %X)", i, len(res), len(tt.out), res, tt.out)
On 2012/05/10 18:59:17, r wrote:
> ditto

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate_test.go:319: fmt.Printf("\n")
On 2012/05/10 18:59:17, r wrote:
> d

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate_test.go:417: t.Errorf(`%d: Compare("%s",
"%s") == %d; want %d`, i, tt.a, tt.b, res, tt.res)
On 2012/05/10 18:59:17, r wrote:
> use %q on these string args?

Done.

http://codereview.appspot.com/6202062/diff/4001/src/pkg/exp/locale/collate/co...
src/pkg/exp/locale/collate/collate_test.go:420: t.Errorf(`%d:
CompareString("%s", "%s") == %d; want %d`, i, tt.a, tt.b, res, tt.res)
On 2012/05/10 18:59:17, r wrote:
> ditto

Done.
Sign in to reply to this message.

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