Orcus
Loading...
Searching...
No Matches
orcus::parse_error_value_t Struct Reference

#include <types.hpp>

Public Member Functions

 parse_error_value_t (const parse_error_value_t &other)
 
 parse_error_value_t (std::string_view _str, std::ptrdiff_t _offset)
 
parse_error_value_toperator= (const parse_error_value_t &other)
 
bool operator== (const parse_error_value_t &other) const
 
bool operator!= (const parse_error_value_t &other) const
 

Public Attributes

std::string_view str
 
std::ptrdiff_t offset
 

Detailed Description

Parser token that represents the state of a parse error, used by threaded_json_parser and threaded_sax_token_parser when transferring parse status between threads.

Member Data Documentation

◆ offset

std::ptrdiff_t orcus::parse_error_value_t::offset

offset in stream where the error occurred.

◆ str

std::string_view orcus::parse_error_value_t::str

error message associated with the parse error.