libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Line and column numbers of a location in a JSON source string. More...
#include <donut/json.hpp>
Public Member Functions | |
constexpr bool | operator== (const SourceLocation &other) const =default |
Compare this source location to another for equality. More... | |
Public Attributes | |
std::size_t | lineNumber |
Line number, starting at 1 for the first line. More... | |
std::size_t | columnNumber |
Column number, starting at 1 for the first column. More... | |
Line and column numbers of a location in a JSON source string.
|
constexprdefault |
Compare this source location to another for equality.
other | the source location to compare this one to. |
std::size_t donut::json::SourceLocation::lineNumber |
Line number, starting at 1 for the first line.
A value of 0 means no particular line.
std::size_t donut::json::SourceLocation::columnNumber |
Column number, starting at 1 for the first column.
A value of 0 means no particular column.