]> Cypherpunks repositories - gostls13.git/commit
strings: add LastIndexAny
authorBenny Siegert <bsiegert@gmail.com>
Fri, 12 Nov 2010 20:47:50 +0000 (12:47 -0800)
committerRob Pike <r@golang.org>
Fri, 12 Nov 2010 20:47:50 +0000 (12:47 -0800)
commit8530e8ef6566c2345866a1e42b484dbf24c64264
tree721f327556136368ce2d973c29e3e2063770e17a
parentf0d174b776fd0312c6e92193e6a27c516a0b2da6
strings: add LastIndexAny

The need for a LastIndexAny function has come up in the discussion
for https://golang.org/cl/3008041/. This function is
implemented analogously to lastIndexFunc, using functions from
the utf8 package.

R=r, rsc, PeterGo
CC=golang-dev
https://golang.org/cl/3057041
src/pkg/bytes/bytes.go
src/pkg/bytes/bytes_test.go
src/pkg/strings/strings.go
src/pkg/strings/strings_test.go