kotlin.text.lastIndexOf

lastIndexOf

fun CharSequence.lastIndexOf(
    char: Char, 
    startIndex: Int = lastIndex, 
    ignoreCase: Boolean = false
): Int

Returns the index within this char sequence of the last occurrence of the specified character, starting from the specified startIndex.

Parameters

startIndex - The index of character to start searching at. The search proceeds backward toward the beginning of the string.

ignoreCase - 登录查看完整内容