]> Cypherpunks repositories - gostls13.git/commit
regexp: add support for matching text read from things that implement
authorRob Pike <r@golang.org>
Thu, 3 Feb 2011 21:58:40 +0000 (13:58 -0800)
committerRob Pike <r@golang.org>
Thu, 3 Feb 2011 21:58:40 +0000 (13:58 -0800)
commit7db904c1f6e2d07d1aaa9b759c286cff627858a7
tree3ccc269d2bb9514bb0e1356678bfd4c7db752ce0
parent63457d089ea4aebe35223dc6b70feae804a6a926
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
https://golang.org/cl/4125046
src/pkg/regexp/find_test.go
src/pkg/regexp/regexp.go