LineCounter

Processor keeping track of the current line and column in a stream of incoming characters.

See also

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
open fun getColumn(): Int
The column of the currently processed input character.
Link copied to clipboard
open fun getLine(): Int
The line of the currently processed input character.
Link copied to clipboard
open fun getPosition(): Position
The current position.
Link copied to clipboard
open fun process(ch: Int): Int
Analyzes the given character for line feed.