imageworks/pystring — pull request #10 by cchrisman (2012-08-24 20:29:42+00:00)
Title: Current implementation of 'find' has a bug that causes it to infinite loop

I fixed the bug so that behavior matches python's implementation of find with an empty string as the source string, and added a small suite of unit tests for the find function (which includes cases for the fixed bugs).

I tried to keep the code style consistent with what's there already, but feel free to alter it in any way you see fit :)