|
Medial Code Documentation
|
A json reader, currently error checking and utf-8 is not fully supported. More...
#include <json_io.h>
Data Structures | |
| struct | SourceLocation |
Public Types | |
| using | Char = std::int8_t |
Public Member Functions | |
| JsonReader (StringView str) | |
| virtual Json | Load () |
Protected Member Functions | |
| void | SkipSpaces () |
| Char | GetNextChar () |
| Char | PeekNextChar () |
| Char | GetNextNonSpaceChar () |
| Char | GetConsecutiveChar (char expected_char) |
| void | Error (std::string msg) const |
| void | Expect (Char c, Char got) |
| virtual Json | ParseString () |
| virtual Json | ParseObject () |
| virtual Json | ParseArray () |
| virtual Json | ParseNumber () |
| virtual Json | ParseBoolean () |
| virtual Json | ParseNull () |
| Json | Parse () |
Protected Attributes | |
| struct xgboost::JsonReader::SourceLocation | cursor_ |
| StringView | raw_str_ |
Static Protected Attributes | |
| size_t static constexpr | kMaxNumLength = std::numeric_limits<double>::max_digits10 + 1 |
A json reader, currently error checking and utf-8 is not fully supported.