|
pjson 2.0.0
A small, owning JSON value for C++11
|
Structured result for DOM and SAX parsing. More...
#include <pjson_parser.h>
Public Types | |
| enum | Code { None = 0 , Syntax , InvalidEncoding , DuplicateKey , NumberRange , DepthLimit , InputLimit , NodeLimit , AllocationFailure , StreamError , CallbackError , InvalidArgument } |
| Stable categories for programmatic parse-failure handling. More... | |
Public Attributes | |
| bool | ok |
| True when the most recent parse succeeded. | |
| Code | code |
| Stable machine-facing result category. | |
| size_t | offset |
| Zero-based input byte offset. | |
| size_t | line |
| One-based source line. | |
| size_t | column |
| One-based byte column. | |
| std::string | message |
| Human-readable diagnostic; wording is not stable. Constructs the successful start-of-input state. | |
Structured result for DOM and SAX parsing.
Definition at line 41 of file pjson_parser.h.
Stable categories for programmatic parse-failure handling.
Definition at line 43 of file pjson_parser.h.
| Code ByteDance::pJsonParser::Error::code |
Stable machine-facing result category.
Definition at line 59 of file pjson_parser.h.
| size_t ByteDance::pJsonParser::Error::column |
One-based byte column.
Definition at line 62 of file pjson_parser.h.
| size_t ByteDance::pJsonParser::Error::line |
One-based source line.
Definition at line 61 of file pjson_parser.h.
| std::string ByteDance::pJsonParser::Error::message |
Human-readable diagnostic; wording is not stable. Constructs the successful start-of-input state.
Definition at line 63 of file pjson_parser.h.
| size_t ByteDance::pJsonParser::Error::offset |
Zero-based input byte offset.
Definition at line 60 of file pjson_parser.h.
| bool ByteDance::pJsonParser::Error::ok |
True when the most recent parse succeeded.
Definition at line 58 of file pjson_parser.h.