Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::base::parser::FileOffset::LineInfo Struct Reference

Represents line information within a file, including the line number and the character offset on that line. More...

#include "donner/base/parser/FileOffset.h"

Public Member Functions

bool operator<=> (const LineInfo &) const =default
 Equality operator.
 

Public Attributes

size_t line
 Line number in the file, 1-based.
 
size_t offsetOnLine
 Character offset on the line (i.e. column index), 0-based.
 

Friends

std::ostream & operator<< (std::ostream &os, const LineInfo &value)
 Ostream operator for printing the line information, prints line:offset.
 

Detailed Description

Represents line information within a file, including the line number and the character offset on that line.


The documentation for this struct was generated from the following file: