PositionMap
A PositionMap is a utility that stores the line separators to be able to resolve the Position of a character from its index to save memory
Since
0.1.0
Inheritors
Types
Link copied to clipboard
open class PositionMapImplementation(val source: CharacterSource, val lineSeparators: IntArray) : PositionMap
Simple implementation of PositionMap
Properties
Link copied to clipboard
The line separators of the PositionMap
Link copied to clipboard
The location of the PositionMap
Link copied to clipboard
The CharacterSource of the PositionMap
Functions
Link copied to clipboard
Get amount of characters after the Position in the line
Get amount of characters after the Position in the line Similar to getAfterInLine but with the index of the Position instead of the Position itself