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

Issue 5234041: code review 5234041: utf8: add Valid and ValidString (Closed)

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

Description

utf8: add Valid and ValidString

Patch Set 1 #

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

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

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

Total comments: 7

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

Total comments: 1

Patch Set 6 : diff -r 48caa9c4edf8 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -0 lines) Patch
M src/pkg/utf8/utf8.go View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
M src/pkg/utf8/utf8_test.go View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 13
bradfitz
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, 5 months ago (2011-10-07 01:43:24 UTC) #1
rsc
The correct test is r == RuneError && size == 1. "a\uFFFDb" is a valid ...
13 years, 5 months ago (2011-10-07 01:50:48 UTC) #2
bradfitz
Hello r@golang.org, rsc@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-07 01:55:00 UTC) #3
bradfitz
Done & done. On Thu, Oct 6, 2011 at 6:50 PM, Russ Cox <rsc@golang.org> wrote: ...
13 years, 5 months ago (2011-10-07 01:55:07 UTC) #4
rsc
The code looks fine. I will leave the API question for Rob. What is this ...
13 years, 5 months ago (2011-10-07 01:59:42 UTC) #5
bradfitz
I asked Rob if this existed already. He said no, but it should, and he ...
13 years, 5 months ago (2011-10-07 02:01:33 UTC) #6
brainman
http://codereview.appspot.com/5234041/diff/7001/src/pkg/utf8/utf8_test.go File src/pkg/utf8/utf8_test.go (right): http://codereview.appspot.com/5234041/diff/7001/src/pkg/utf8/utf8_test.go#newcode287 src/pkg/utf8/utf8_test.go:287: {"ЖбрэдЖ", true}, That is not your name, "Брэд" is.
13 years, 5 months ago (2011-10-07 02:43:08 UTC) #7
r
http://codereview.appspot.com/5234041/diff/7001/src/pkg/utf8/utf8.go File src/pkg/utf8/utf8.go (right): http://codereview.appspot.com/5234041/diff/7001/src/pkg/utf8/utf8.go#newcode358 src/pkg/utf8/utf8.go:358: // Valid reports whether p consists entirely of valid ...
13 years, 5 months ago (2011-10-07 03:24:10 UTC) #8
bradfitz
http://codereview.appspot.com/5234041/diff/7001/src/pkg/utf8/utf8.go File src/pkg/utf8/utf8.go (right): http://codereview.appspot.com/5234041/diff/7001/src/pkg/utf8/utf8.go#newcode358 src/pkg/utf8/utf8.go:358: // Valid reports whether p consists entirely of valid ...
13 years, 5 months ago (2011-10-07 03:41:22 UTC) #9
bradfitz
Hello r@golang.org, rsc@golang.org, alex.brainman@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 5 months ago (2011-10-07 03:41:24 UTC) #10
r
LGTM modulo Russian http://codereview.appspot.com/5234041/diff/6002/src/pkg/utf8/utf8_test.go File src/pkg/utf8/utf8_test.go (right): http://codereview.appspot.com/5234041/diff/6002/src/pkg/utf8/utf8_test.go#newcode287 src/pkg/utf8/utf8_test.go:287: {"ЖбрэдЖ", true}, did you want to ...
13 years, 5 months ago (2011-10-07 04:30:33 UTC) #11
bradfitz
*** Submitted as http://code.google.com/p/go/source/detail?r=06199863489f *** utf8: add Valid and ValidString R=r, rsc, alex.brainman CC=golang-dev http://codereview.appspot.com/5234041
13 years, 5 months ago (2011-10-07 05:47:30 UTC) #12
brainman
13 years, 5 months ago (2011-10-07 05:50:11 UTC) #13
ЛГТМ
Sign in to reply to this message.

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