UriParser.indexOfFirst

ptrdiff_t indexOfFirst(char c) const @safe

Return the index of the first occurrence of c in the input, or -1.

Parameters

cCharacter to search for.

Returns

The index of c in the input, or -1 if not present.