findColumn

fun findColumn(string: String, col: Int, tabSize: Int, strict: Boolean = false): Int

Find the offset that corresponds to the given column position in a string, taking extending characters and tab size into account. By default, the string length is returned when it is too short to reach the column. Pass strict true to make it return -1 in that situation.