findEnd

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

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

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

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