Sets of line positions.
This module implement sets of line positions. They allow to efficiently find the beginning of a line and to convert offset to line and column number.
Exception raised when trying to access a position outside the bounds of a set.
Type of sets of line positions.
line_index set ofs
returns the line number of the line
containing ofs
.
line_start set idx
returns the offset of the beginning of the
idx
th line of set
.
line_stop set idx
returns the offset of the end of the
idx
th line of set
.