pjson 1.0.0
A small, owning JSON value for C++11
Loading...
Searching...
No Matches
ByteDance::pjson::ParseError Struct Reference

Filled in by the error-reporting parse() overloads. ok is true when parsing succeeded; otherwise offset is the zero-based byte position, line is one-based, column is a one-based byte column, and message describes the first failure. Reporting parse APIs reset all fields on entry and leave this success state after a successful parse. More...

#include <pjson.h>

Public Member Functions

 ParseError ()
 Public API member ParseError; see the API overview for its contract.
 

Public Attributes

bool ok
 Public API member ok; see the API overview for its contract.
 
size_t offset
 Public API member offset; see the API overview for its contract.
 
size_t line
 Public API member line; see the API overview for its contract.
 
size_t column
 Public API member column; see the API overview for its contract.
 
std::string message
 Public API member message; see the API overview for its contract. / Constructs a success state at the beginning of an input.
 

Detailed Description

Filled in by the error-reporting parse() overloads. ok is true when parsing succeeded; otherwise offset is the zero-based byte position, line is one-based, column is a one-based byte column, and message describes the first failure. Reporting parse APIs reset all fields on entry and leave this success state after a successful parse.

Definition at line 139 of file pjson.h.

Constructor & Destructor Documentation

◆ ParseError()

ByteDance::pjson::ParseError::ParseError ( )

Public API member ParseError; see the API overview for its contract.

Member Data Documentation

◆ column

size_t ByteDance::pjson::ParseError::column

Public API member column; see the API overview for its contract.

Definition at line 143 of file pjson.h.

◆ line

size_t ByteDance::pjson::ParseError::line

Public API member line; see the API overview for its contract.

Definition at line 142 of file pjson.h.

◆ message

std::string ByteDance::pjson::ParseError::message

Public API member message; see the API overview for its contract. / Constructs a success state at the beginning of an input.

Definition at line 144 of file pjson.h.

◆ offset

size_t ByteDance::pjson::ParseError::offset

Public API member offset; see the API overview for its contract.

Definition at line 141 of file pjson.h.

◆ ok

bool ByteDance::pjson::ParseError::ok

Public API member ok; see the API overview for its contract.

Definition at line 140 of file pjson.h.


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