Make std.string.indexOf @safe
Mark std.string.indexOf as @safe
Replace trusted lambda block with trusted nested function
Add cast to Char*
Merge pull request #1486 from tom-tan/safe-string-indexOf

Make std.string.indexOf @safe