hoshi-lang dev
Yet another programming language
Loading...
Searching...
No Matches
position_t Struct Reference

struct to capture the start position of the current token More...

#include <json.hpp>

Public Member Functions

constexpr operator size_t () const
 conversion to size_t to preserve SAX interface
 

Public Attributes

std::size_t chars_read_total = 0
 the total number of characters read
 
std::size_t chars_read_current_line = 0
 the number of characters read in the current line
 
std::size_t lines_read = 0
 the number of lines read
 

Detailed Description

struct to capture the start position of the current token

Definition at line 3162 of file json.hpp.

Member Function Documentation

◆ operator size_t()

constexpr operator size_t ( ) const
inlineconstexpr

conversion to size_t to preserve SAX interface

Definition at line 3172 of file json.hpp.

References position_t::chars_read_total.

Member Data Documentation

◆ chars_read_current_line

std::size_t chars_read_current_line = 0

the number of characters read in the current line

Definition at line 3167 of file json.hpp.

Referenced by lexer< BasicJsonType, InputAdapterType >::get(), parse_error::position_string(), and lexer< BasicJsonType, InputAdapterType >::unget().

◆ chars_read_total

◆ lines_read

std::size_t lines_read = 0

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