D-Programming-Language/dmd — pull request #837 by braddr (2012-03-25 01:40:51+00:00)
Title: restore original binary() function and re-fix the new version

The previous optimization isn't valid when the input string is longer than the search len.
Efficiency is important enough to avoid the extra if so not forwarding the original version since it has one less conditional.