parse_error_value_t

Defined in header: <orcus/types.hpp>

struct parse_error_value_t

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.

Public Functions

parse_error_value_t()
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_t &operator=(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 Members

std::string_view str

error message associated with the parse error.

std::ptrdiff_t offset

offset in stream where the error occurred.