nxt.line_column

Conversions from string/file offset to line and column.

Members

Aliases

Column
alias Column = uint

Source Column.

Line
alias Line = uint

Source Line.

Functions

scanLineColumnToOffset
LineColumn scanLineColumnToOffset(char[] txt, Offset offset)

Convert byte offset offset in txt to (line, column) byte offsets.

Structs

LineColumn
struct LineColumn

Line and column, both 0-based byte offsets.

Offset (from nxt.offset)
struct Offset via public import nxt.offset : Offset;

File|Data Offset (in bytes).

See Also

Meta