runLengthOf

fun runLengthOf(source: CharSequence, index: Int, char: Char): Int

Return

the length of the run of char starting at index, possibly zero

Parameters

source

text to inspect

index

index the run must start at

char

the run's character