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

Issue 6493063: code review 6493063: exp/locale/collate: first changes that introduce implem... (Closed)

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

Description

exp/locale/collate: first changes that introduce implementation of tailorings: - Elements in the array are now sorted as a linked list. This makes it easier to apply tailorings. - Added code to sort entries by collation elements. - Added logical reset points. This is used for tailoring relative to certain properties, rather than characters. NOTE: all code for type entry should now be in order.go. To keep the diffs for this CL reasonable, though, the existing code is left in builder.go. I'll move this in a separate CL.

Patch Set 1 #

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

Total comments: 7

Patch Set 3 : diff -r 827bc3cff650 https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+651 lines, -72 lines) Patch
M src/pkg/exp/locale/collate/build/builder.go View 1 2 11 chunks +46 lines, -62 lines 0 comments Download
M src/pkg/exp/locale/collate/build/builder_test.go View 1 7 chunks +13 lines, -9 lines 0 comments Download
M src/pkg/exp/locale/collate/build/colelem.go View 1 2 2 chunks +50 lines, -0 lines 0 comments Download
M src/pkg/exp/locale/collate/build/colelem_test.go View 1 2 chunks +115 lines, -1 line 0 comments Download
A src/pkg/exp/locale/collate/build/order.go View 1 2 1 chunk +230 lines, -0 lines 0 comments Download
A src/pkg/exp/locale/collate/build/order_test.go View 1 2 1 chunk +197 lines, -0 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
13 years, 9 months ago (2012-08-30 16:54:09 UTC) #1
r
LGTM http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/build/builder.go File src/pkg/exp/locale/collate/build/builder.go (right): http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/build/builder.go#newcode46 src/pkg/exp/locale/collate/build/builder.go:46: noindex bool // do not include in table ...
13 years, 9 months ago (2012-08-31 22:30:10 UTC) #2
mpvl
13 years, 9 months ago (2012-09-01 12:13:58 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=fd6591baff51 ***

exp/locale/collate: first changes that introduce implementation of tailorings:
- Elements in the array are now sorted as a linked list.  This makes it easier
to
  apply tailorings.
- Added code to sort entries by collation elements.
- Added logical reset points.  This is used for tailoring relative to certain
  properties, rather than characters.

NOTE: all code for type entry should now be in order.go.  To keep the diffs for
this CL reasonable, though, the existing code is left in builder.go.  I'll move
this in a separate CL.

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

http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/bu...
File src/pkg/exp/locale/collate/build/builder.go (right):

http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/bu...
src/pkg/exp/locale/collate/build/builder.go:46: noindex   bool // do not include
in table
Changed to exclude.

On 2012/08/31 22:30:10, r wrote:
> maybe noIndex but i'm not a fan of negative true, so i'd go with doIndex. but
if
> you need the zero value to be false, maybe "exclude", so at least we avoid the
> "no"?

http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/bu...
File src/pkg/exp/locale/collate/build/colelem.go (right):

http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/bu...
src/pkg/exp/locale/collate/build/colelem.go:247: ib++
Yes, both need to advance. nextVal only advances on zero values.

On 2012/08/31 22:30:10, r wrote:
> you're double-advancing here. i think it's right but just be sure.

http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/bu...
File src/pkg/exp/locale/collate/build/order.go (right):

http://codereview.appspot.com/6493063/diff/1002/src/pkg/exp/locale/collate/bu...
src/pkg/exp/locale/collate/build/order.go:130: // cannot be derived, i.e. str
represents more than one rune.
On 2012/08/31 22:30:10, r wrote:
> s/i.e./that is, if/

Done.
Sign in to reply to this message.

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