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

Issue 4125046: code review 4125046: regexp: add support for matching text read from things ... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by r
Modified:
14 years, 1 month ago
Reviewers:
CC:
rsc, golang-dev
Visibility:
Public.

Description

regexp: add support for matching text read from things that implement ReadRune. (If you have a Reader but not a RuneReader, use bufio.) The matching code is a few percent slower but significantly cleaner.

Patch Set 1 #

Total comments: 5

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -73 lines) Patch
M src/pkg/regexp/find_test.go View 3 chunks +13 lines, -0 lines 0 comments Download
M src/pkg/regexp/regexp.go View 1 2 23 chunks +223 lines, -73 lines 0 comments Download

Messages

Total messages: 6
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years, 1 month ago (2011-02-02 22:03:32 UTC) #1
rsc
LGTM http://codereview.appspot.com/4125046/diff/1/src/pkg/regexp/regexp.go File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/4125046/diff/1/src/pkg/regexp/regexp.go#newcode754 src/pkg/regexp/regexp.go:754: canPeek() bool // can we look ahead without ...
14 years, 1 month ago (2011-02-03 21:48:04 UTC) #2
r
http://codereview.appspot.com/4125046/diff/1/src/pkg/regexp/regexp.go File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/4125046/diff/1/src/pkg/regexp/regexp.go#newcode754 src/pkg/regexp/regexp.go:754: canPeek() bool // can we look ahead without losing ...
14 years, 1 month ago (2011-02-03 21:54:22 UTC) #3
r
14 years, 1 month ago (2011-02-03 21:57:13 UTC) #4
r
http://codereview.appspot.com/4125046/diff/1/src/pkg/regexp/regexp.go File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/4125046/diff/1/src/pkg/regexp/regexp.go#newcode772 src/pkg/regexp/regexp.go:772: return endOfText, 1 you're right after all. the 1 ...
14 years, 1 month ago (2011-02-03 21:58:06 UTC) #5
r
14 years, 1 month ago (2011-02-03 21:58:42 UTC) #6
*** Submitted as http://code.google.com/p/go/source/detail?r=f37c651d8774 ***

regexp: add support for matching text read from things that implement
ReadRune.  (If you have a Reader but not a RuneReader, use bufio.)

The matching code is a few percent slower but significantly cleaner.

R=rsc
CC=golang-dev
http://codereview.appspot.com/4125046
Sign in to reply to this message.

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