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

Issue 4526095: code review 4526095: unicode: add the first few property tests for printing. (Closed)

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

Description

unicode: add the first few property tests for printing. The long-term goal is that %q will use IsPrint to decide what to show natively vs. as hexadecimal.

Patch Set 1 #

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

Patch Set 3 : diff -r 88bcc11652b9 https://go.googlecode.com/hg/ #

Total comments: 8

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

Total comments: 5

Patch Set 5 : diff -r 99d7ca029214 https://go.googlecode.com/hg/ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1561 lines, -342 lines) Patch
M src/pkg/unicode/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/unicode/digit.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/unicode/digit_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A src/pkg/unicode/graphic.go View 1 2 3 4 1 chunk +132 lines, -0 lines 2 comments Download
A src/pkg/unicode/graphic_test.go View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
M src/pkg/unicode/letter.go View 1 2 3 4 6 chunks +13 lines, -30 lines 0 comments Download
M src/pkg/unicode/letter_test.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/unicode/maketables.go View 1 2 3 4 9 chunks +87 lines, -18 lines 0 comments Download
M src/pkg/unicode/script_test.go View 1 2 4 chunks +12 lines, -5 lines 0 comments Download
M src/pkg/unicode/tables.go View 1 2 3 4 9 chunks +1191 lines, -286 lines 0 comments Download

Messages

Total messages: 12
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 10 months ago (2011-06-01 04:44:44 UTC) #1
r
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-06-02 07:43:24 UTC) #2
rsc
The Latin-1 table looks fine, but I don't think isOneOf is the right thing to ...
13 years, 10 months ago (2011-06-02 14:29:39 UTC) #3
r
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-06-03 05:13:30 UTC) #4
rsc
LGTM http://codereview.appspot.com/4526095/diff/8001/src/pkg/unicode/graphic.go File src/pkg/unicode/graphic.go (right): http://codereview.appspot.com/4526095/diff/8001/src/pkg/unicode/graphic.go#newcode14 src/pkg/unicode/graphic.go:14: pU // an upper-case letter. pLu, pLl? http://codereview.appspot.com/4526095/diff/8001/src/pkg/unicode/graphic.go#newcode26 ...
13 years, 10 months ago (2011-06-03 05:29:30 UTC) #5
r
Hello rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 10 months ago (2011-06-03 07:34:47 UTC) #6
r2
This is now ready for proper review. -rob
13 years, 10 months ago (2011-06-03 07:36:38 UTC) #7
rsc
LGTM http://codereview.appspot.com/4526095/diff/13001/src/pkg/unicode/graphic.go File src/pkg/unicode/graphic.go (right): http://codereview.appspot.com/4526095/diff/13001/src/pkg/unicode/graphic.go#newcode14 src/pkg/unicode/graphic.go:14: pUl // an upper-case letter. s/pUl/pLu/ http://codereview.appspot.com/4526095/diff/13001/src/pkg/unicode/graphic.go#newcode100 src/pkg/unicode/graphic.go:100: ...
13 years, 10 months ago (2011-06-03 15:08:34 UTC) #8
r
*** Submitted as http://code.google.com/p/go/source/detail?r=23c4961fcea2 *** unicode: add the first few property tests for printing. The ...
13 years, 10 months ago (2011-06-03 21:46:30 UTC) #9
peterGo
http://codereview.appspot.com/4526095/diff/5002/src/pkg/unicode/graphic.go File src/pkg/unicode/graphic.go (right): http://codereview.appspot.com/4526095/diff/5002/src/pkg/unicode/graphic.go#newcode1 src/pkg/unicode/graphic.go:1: // Copyright 2011 The Go Authors. All rights reserved. ...
13 years, 10 months ago (2011-06-03 21:56:24 UTC) #10
rsc
> http://codereview.appspot.com/4526095/diff/5002/src/pkg/unicode/graphic.go#newcode43 > src/pkg/unicode/graphic.go:43: // IsPrint reports whether the rune is > defined as printable ...
13 years, 10 months ago (2011-06-03 21:58:20 UTC) #11
r2
13 years, 10 months ago (2011-06-03 22:04:57 UTC) #12
On 04/06/2011, at 7:56 AM, go.peter.90@gmail.com wrote:

> 
> http://codereview.appspot.com/4526095/diff/5002/src/pkg/unicode/graphic.go
> File src/pkg/unicode/graphic.go (right):
> 
>
http://codereview.appspot.com/4526095/diff/5002/src/pkg/unicode/graphic.go#ne...
> src/pkg/unicode/graphic.go:1: // Copyright 2011 The Go Authors. All
> rights reserved.
> The file name graphic.go is no longer an accurate name, it does a lot
> more than the IsGraphic function. It's more about about the Unicode
> basic types in Table 2-3.

perhaps, but the reason it exists is to implement IsGraphic and IsPrint.

the package is still evolving. things may get rearranged.

>
http://codereview.appspot.com/4526095/diff/5002/src/pkg/unicode/graphic.go#ne...
> src/pkg/unicode/graphic.go:43: // IsPrint reports whether the rune is
> defined as printable by Go. Such
> Whether or not the rune is actually printed or displayed depends on the
> glyphs in the font.

true, but that has nothing to do with whether Go defines it as printable.

-rob


Sign in to reply to this message.

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