Location

Represents a location in an input range/file.

The indices are zero based and the column is represented in code units of the input (i.e. in bytes in case of a UTF-8 input string).

Members

Functions

toString
string toString()

Returns a string representation of the location.

Variables

column
size_t column;

The zero based code unit index of the referenced line.

file
string file;

Optional file name.

line
size_t line;

The zero based line of the input file.

Meta