Medial Code Documentation
Loading...
Searching...
No Matches
Data Structures | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
xgboost::JsonReader Class Reference

A json reader, currently error checking and utf-8 is not fully supported. More...

#include <json_io.h>

Inheritance diagram for xgboost::JsonReader:
xgboost::UBJReader

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
 

Detailed Description

A json reader, currently error checking and utf-8 is not fully supported.


The documentation for this class was generated from the following files: