Indentation

Column arithmetic over raw source text.

Functions

Link copied to clipboard
fun endOfColumns(source: CharSequence, start: Int, end: Int, columns: Int): Int

Skips leading whitespace for as long as it spans fewer than columns columns, counting a tab up to the next TAB_WIDTH stop. A tab is never split: it is taken whole or not at all, which is why the limit is reached exactly when it is a multiple of TAB_WIDTH.