xgboost
|
A json reader, currently error checking and utf-8 is not fully supported. More...
#include <json_io.h>
Classes | |
struct | SourceLocation |
Public Types | |
using | Char = std::int8_t |
Public Member Functions | |
JsonReader (StringView str) | |
virtual | ~JsonReader ()=default |
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 | |
constexpr static size_t | kMaxNumLength = std::numeric_limits<double>::max_digits10 + 1 |
A json reader, currently error checking and utf-8 is not fully supported.
using xgboost::JsonReader::Char = std::int8_t |
|
inlineexplicit |
|
virtualdefault |
|
protected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
virtual |
Reimplemented in xgboost::UBJReader.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
inlineprotected |
|
protected |
|
protected |
|
staticconstexprprotected |
|
protected |