lastIndexOf
Returns the index within this char sequence of the last occurrence of the specified character, starting from the specified startIndex.
Since Kotlin
1.1Return
An index of the last occurrence of char or -1 if none is found.
Parameters
The index of character to start searching at. The search proceeds backward toward the beginning of the string.
true
to ignore character case when matching a character. By default false
.
Returns the index within this char sequence of the last occurrence of the specified string, starting from the specified startIndex.
Since Kotlin
1.1Return
An index of the last occurrence of string or -1 if none is found.
Parameters
The index of character to start searching at. The search proceeds backward toward the beginning of the string.
true
to ignore character case when matching a string. By default false
.
Returns the index within this char sequence of the last occurrence of the specified character, starting from the specified startIndex.
Since Kotlin
1.0Return
An index of the last occurrence of char or -1 if none is found.
Parameters
The index of character to start searching at. The search proceeds backward toward the beginning of the string.
true
to ignore character case when matching a character. By default false
.
Returns the index within this char sequence of the last occurrence of the specified string, starting from the specified startIndex.
Since Kotlin
1.0Return
An index of the last occurrence of string or -1 if none is found.
Parameters
The index of character to start searching at. The search proceeds backward toward the beginning of the string.
true
to ignore character case when matching a string. By default false
.