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

Issue 13647043: code review 13647043: go.text/language: A few small changes: (Closed)

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

Description

go.text/language: A few small changes: - Added Tag methods to Base, Script and Region types to convert them in a proper tag. - Factored out part of Canonicalize that does not remake the string (used in upcoming matcher code). - Added "nb" -> "no" conversion in the tables to allow more consistency for code using these tables directly. - changed to short name used in some methods for type Base so that it consistenly appears as "b" in the documentation.

Patch Set 1 #

Patch Set 2 : diff -r 68d276672887 https://code.google.com/p/go.text #

Patch Set 3 : diff -r 68d276672887 https://code.google.com/p/go.text #

Total comments: 4

Patch Set 4 : diff -r b3dac2b11740 https://code.google.com/p/go.text #

Patch Set 5 : diff -r 16d486c27e4b https://code.google.com/p/go.text #

Patch Set 6 : diff -r 934ce010ce91 https://code.google.com/p/go.text #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -28 lines) Patch
M language/language.go View 1 2 3 6 chunks +31 lines, -10 lines 0 comments Download
M language/language_test.go View 1 3 chunks +18 lines, -3 lines 0 comments Download
M language/lookup.go View 1 2 3 4 5 3 chunks +14 lines, -12 lines 0 comments Download
M language/maketables.go View 1 1 chunk +5 lines, -0 lines 0 comments Download
M language/tables.go View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 7
mpvl
Hello r@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.text
10 years, 7 months ago (2013-09-10 15:10:13 UTC) #1
r
chunk mismatch; please upload again
10 years, 7 months ago (2013-09-13 01:34:12 UTC) #2
mpvl
Done. On Fri, Sep 13, 2013 at 3:34 AM, <r@golang.org> wrote: > chunk mismatch; please ...
10 years, 7 months ago (2013-09-13 10:20:24 UTC) #3
r
LGTM after tweaks. https://codereview.appspot.com/13647043/diff/15001/language/language.go File language/language.go (right): https://codereview.appspot.com/13647043/diff/15001/language/language.go#newcode169 language/language.go:169: // Canonicalize replaces the tag with ...
10 years, 7 months ago (2013-09-16 03:06:37 UTC) #4
mpvl
https://codereview.appspot.com/13647043/diff/15001/language/language.go File language/language.go (right): https://codereview.appspot.com/13647043/diff/15001/language/language.go#newcode169 language/language.go:169: // Canonicalize replaces the tag with its canonical equivalent. ...
10 years, 7 months ago (2013-09-16 06:17:17 UTC) #5
r
i'll leave the renaming decision up to you. in the CL it just looked odd.
10 years, 7 months ago (2013-09-16 06:18:27 UTC) #6
mpvl
10 years, 7 months ago (2013-09-23 09:03:25 UTC) #7
*** Submitted as
https://code.google.com/p/go/source/detail?r=b453ef7b57ca&repo=text ***

go.text/language: A few small changes:
- Added Tag methods to Base, Script and Region types to convert them in a proper
tag.
- Factored out part of Canonicalize that does not remake the string (used in
upcoming matcher code).
- Added "nb" -> "no" conversion in the tables to allow more consistency for code
using these tables directly.
- changed to short name used in some methods for type Base so that it
consistenly appears as "b" in the documentation.

R=r
CC=golang-dev
https://codereview.appspot.com/13647043
Sign in to reply to this message.

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