String>>indexOf:startingAt:

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

String>>indexOf:startingAt:

Stefan Schmiedl
I was gently reminded that this method does not exist. But there are
quite a few ...:startingAt: methods in class string, so adding one
should not be that hard, I thought. Then I found that it was "almost"
there already.

indexOf: target startingAt: anInteger
        ^self nextIndexOf: target from: anInteger to: self size

How about unifying the String API by adding this method to String?

s.