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

Issue 3057041: code review 3057041: strings: add LastIndexAny (Closed)

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

Description

strings: add LastIndexAny The need for a LastIndexAny function has come up in the discussion for http://codereview.appspot.com/3008041/. This function is implemented analogously to lastIndexFunc, using functions from the utf8 package.

Patch Set 1 #

Patch Set 2 : code review 3057041: strings: add LastIndexAny #

Patch Set 3 : code review 3057041: strings: add LastIndexAny #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -6 lines) Patch
M src/pkg/bytes/bytes.go View 1 chunk +19 lines, -0 lines 0 comments Download
M src/pkg/bytes/bytes_test.go View 2 chunks +23 lines, -6 lines 0 comments Download
M src/pkg/strings/strings.go View 1 chunk +18 lines, -0 lines 0 comments Download
M src/pkg/strings/strings_test.go View 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 7
bsiegert
Hello r, rsc (cc: golang-dev@googlegroups.com), I'd like you to review this change.
16 years ago (2010-11-12 10:55:18 UTC) #1
r
this is good but there should be a bytes version too
16 years ago (2010-11-12 19:13:32 UTC) #2
peterGo
Benny, This is a patch for the string.LastIndexAny() function that I use. Good performance was ...
16 years ago (2010-11-12 19:44:49 UTC) #3
bsiegert
Hello r, rsc, PeterGo (cc: golang-dev@googlegroups.com), Please take another look.
16 years ago (2010-11-12 20:13:10 UTC) #4
r
LGTM
16 years ago (2010-11-12 20:26:46 UTC) #5
r
this version encodes nasty UTF-8 knowledge into this function, which is out of place. the ...
16 years ago (2010-11-12 20:28:30 UTC) #6
r
16 years ago (2010-11-12 20:47:55 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=b0343e4560e7 ***

strings: add LastIndexAny

The need for a LastIndexAny function has come up in the discussion
for http://codereview.appspot.com/3008041/. This function is
implemented analogously to lastIndexFunc, using functions from
the utf8 package.

R=r, rsc, PeterGo
CC=golang-dev
http://codereview.appspot.com/3057041

Committer: Rob Pike <r@golang.org>
Sign in to reply to this message.

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