Result of parsing (wraps ParseErrorCode)
More...
Result of parsing (wraps ParseErrorCode)
if (!ok) {
fprintf(stderr, "JSON parse error: %s (%u)",
}
- See Also
- GenericReader::Parse, GenericDocument::Parse
ParseResult::ParseResult |
( |
| ) |
|
|
inline |
Default constructor, no error.
Constructor to set an error.
void ParseResult::Clear |
( |
| ) |
|
|
inline |
bool ParseResult::IsError |
( |
| ) |
const |
|
inline |
Whether the result is an error.
size_t ParseResult::Offset |
( |
| ) |
const |
|
inline |
Get the error offset, if IsError(), 0 otherwise.
ParseResult::operator bool |
( |
| ) |
const |
|
inline |
Conversion to bool
, returns true
, iff !IsError().
bool ParseResult::operator== |
( |
const ParseResult & |
that | ) |
const |
|
inline |
Update error code and offset.
The documentation for this struct was generated from the following file: