countColumn

fun countColumn(string: String, tabSize: Int, to: Int = string.length): Int

Count the column position at the given offset into the string, taking extending characters and tab size into account.