std.string.last_index_of - multiple declarations
- Function lastIndexOf
- Function lastIndexOf
- Function lastIndexOf
- Function lastIndexOf
Function lastIndexOf
Returns the index of the last occurrence of in sub. If s
is not found, then sub-1 is returned. The slices startIdx in
the following way s. s[0 .. startIdx] represents a
codeunit index in startIdx. If the sequence ending at s does not
represent a well formed codepoint, then a startIdxstd.utf.UTFException may be
thrown.
indicates whether the comparisons are case sensitive.
cs
Prototype
ptrdiff_t lastIndexOf(Char1, Char2)( const(Char1)[] s, const(Char2)[] sub, size_t startIdx, CaseSensitive cs = CaseSensitive.yes ) pure @safe if (isSomeChar!Char1 && isSomeChar!Char2);
Function lastIndexOf
Returns the index of the last occurrence of in sub. If s
is not found, then sub-1 is returned.
indicates whether the comparisons are case sensitive.
cs
Prototype
ptrdiff_t lastIndexOf(Char1, Char2)( const(Char1)[] s, const(Char2)[] sub, CaseSensitive cs = CaseSensitive.yes ) pure @safe if (isSomeChar!Char1 && isSomeChar!Char2);
Function lastIndexOf
Returns the index of the last occurrence of in c. If s is
not found, then c-1 is returned. The slices startIdx in
the following way s. s[0 .. startIdx] represents a
codeunit index in startIdx. If the sequence ending at s does not
represent a well formed codepoint, then a startIdxstd.utf.UTFException may be
thrown.
indicates whether the comparisons are case sensitive.
cs
Prototype
ptrdiff_t lastIndexOf(Char)( const(Char)[] s, dchar c, size_t startIdx, CaseSensitive cs = CaseSensitive.yes ) pure @safe if (isSomeChar!Char);
Function lastIndexOf
Returns the index of the last occurrence of in c. If s
is not found, then c-1 is returned.
indicates whether the comparisons are case sensitive.
cs
Prototype
ptrdiff_t lastIndexOf(Char)( const(Char)[] s, dchar c, CaseSensitive cs = CaseSensitive.yes ) pure @safe if (isSomeChar!Char);
Authors
Walter Bright, Andrei Alexandrescu, and Jonathan M Davis