#include <json.h>
◆ ~CharReader() [1/2]
virtual Json::CharReader::~CharReader |
( |
| ) |
|
|
inlinevirtual |
◆ ~CharReader() [2/2]
virtual Json::CharReader::~CharReader |
( |
| ) |
|
|
inlinevirtual |
◆ parse() [1/2]
virtual bool Json::CharReader::parse |
( |
char const * |
beginDoc, |
|
|
char const * |
endDoc, |
|
|
Value * |
root, |
|
|
std::string * |
errs |
|
) |
| |
|
pure virtual |
Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.
- Parameters
-
beginDoc | Pointer on the beginning of the UTF-8 encoded string of the document to read. |
endDoc | Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc. |
root | [out] Contains the root value of the document if it was successfully parsed. |
errs | [out] Formatted error messages (if not NULL) a user friendly string that lists errors in the parsed document. |
- Returns
true
if the document was successfully parsed, false
if an error occurred.
Implemented in Json::OurCharReader, and Json::OurCharReader.
◆ parse() [2/2]
virtual bool Json::CharReader::parse |
( |
char const * |
beginDoc, |
|
|
char const * |
endDoc, |
|
|
Value * |
root, |
|
|
std::string * |
errs |
|
) |
| |
|
pure virtual |
Read a Value from a JSON document. The document must be a UTF-8 encoded string containing the document to read.
- Parameters
-
beginDoc | Pointer on the beginning of the UTF-8 encoded string of the document to read. |
endDoc | Pointer on the end of the UTF-8 encoded string of the document to read. Must be >= beginDoc. |
root | [out] Contains the root value of the document if it was successfully parsed. |
errs | [out] Formatted error messages (if not NULL) a user friendly string that lists errors in the parsed document. |
- Returns
true
if the document was successfully parsed, false
if an error occurred.
Implemented in Json::OurCharReader, and Json::OurCharReader.
The documentation for this class was generated from the following file: