LineColumnIndex

class LineColumnIndex(content: String)(source)

The index is 1-based. The first character also begins in line 1 and column 1.

Author

Alexander Weigl

Constructors

Link copied to clipboard
constructor(content: String)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun positionToOffset(line: Int, column: Int): Int
Link copied to clipboard
fun substring(range: Range): String
fun substring(beginLine: Int, beginColumn: Int, endLine: Int, endColumn: Int): String