lastIndexOfAny
Finds the index of the last occurrence of any of the specified chars in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Since Kotlin
1.1Return
An index of the last occurrence of matched character from chars or -1 if none of chars are 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
.
Finds the index of the last occurrence of any of the specified strings in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Since Kotlin
1.1Return
An index of the last occurrence of matched string from strings or -1 if none of strings are found.
To avoid ambiguous results when strings in strings have characters in common, this method proceeds from the end toward the beginning of this string, and finds at each position the first element in strings that matches this string at that position.
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
.
Finds the index of the last occurrence of any of the specified chars in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Since Kotlin
1.0Return
An index of the last occurrence of matched character from chars or -1 if none of chars are 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
.
Finds the index of the last occurrence of any of the specified strings in this char sequence, starting from the specified startIndex and optionally ignoring the case.
Since Kotlin
1.0Return
An index of the last occurrence of matched string from strings or -1 if none of strings are found.
To avoid ambiguous results when strings in strings have characters in common, this method proceeds from the end toward the beginning of this string, and finds at each position the first element in strings that matches this string at that position.
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
.