findStart

fnint findStart(IStr str, IStr item) @safe nothrow @nogc

Finds the starting index of the first occurrence of the specified substring in the string, or returns -1 if not found.

fnint findStart(IStr str, char item) @safe nothrow @nogc

Finds the starting index of the first occurrence of the specified character in the string, or returns -1 if not found.