Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
Json::Reader Class Reference

Classes

class  Token
class  ErrorInfo

Public Types

enum class  TokenType : int {
  TokenEndOfStream = 0 , TokenObjectBegin = 1 , TokenObjectEnd = 2 , TokenArrayBegin = 3 ,
  TokenArrayEnd = 4 , TokenString = 5 , TokenNumber = 6 , TokenTrue = 7 ,
  TokenFalse = 8 , TokenNull = 9 , TokenArraySeparator = 10 , TokenMemberSeparator = 11 ,
  TokenComment = 12 , TokenError = 13
}
using Char = char
using Errors = ::std::deque<::Json::Reader::ErrorInfo>
using Location = char const*
using Nodes = ::std::stack<::Json::Value*, ::std::deque<::Json::Value*>>

Public Member Functions

MCAPI Reader (::Json::Features const &features)
MCAPI bool addError (::std::string const &message, ::Json::Reader::Token &token, char const *extra)
MCAPI::Json::Value decodeDouble (::Json::Reader::Token &token, bool &successful)
MCAPI::Json::Value decodeNumber (::Json::Reader::Token &token, bool &successful)
MCAPI bool decodeString (::Json::Reader::Token &token, char *decoded)
MCAPI::Json::Value::CZString decodeString (::Json::Reader::Token &token, bool &successful)
MCAPI bool decodeUnicodeCodePoint (::Json::Reader::Token &token, char const *&current, char const *end, uint &unicode)
MCAPI bool decodeUnicodeEscapeSequence (::Json::Reader::Token &token, char const *&current, char const *end, uint &unicode)
MCAPI::std::string getFormattedErrorMessages () const
MCAPI::std::string getLocationLineAndColumn (char const *location) const
MCAPI bool parse (::std::string const &document, ::Json::Value &root, bool collectComments)
MCAPI bool parse (::std::istream &sin, ::Json::Value &root, bool collectComments)
MCAPI bool parse (char const *beginDoc, char const *endDoc, ::Json::Value &root, bool)
MCAPI bool parse (char const *originalBegin, uint64 length, ::Json::Value &root, bool collectComments)
MCAPI::Json::Value readArray (::Json::Reader::Token &, bool &ok)
MCAPI::Json::Value readObject (::Json::Reader::Token &, bool &successful)
MCAPI bool readToken (::Json::Reader::Token &token)
MCAPI::Json::Value readValue (bool &successful)
MCAPI bool recoverFromError (::Json::Reader::TokenType skipUntilToken)
MCAPI void * $ctor ()
MCAPI void * $ctor (::Json::Features const &features)
MCAPI void $dtor ()

Public Attributes

::ll::TypedStorage< 8, 40, ::std::stack<::Json::Value *, ::std::deque<::Json::Value * > > > nodes_
::ll::TypedStorage< 8, 40, ::std::deque<::Json::Reader::ErrorInfo > > errors_
::ll::TypedStorage< 8, 32, ::std::string > document_
::ll::TypedStorage< 8, 8, char const * > begin_
::ll::TypedStorage< 8, 8, char const * > end_
::ll::TypedStorage< 8, 8, char const * > current_
::ll::TypedStorage< 8, 8, char const * > lastValueEnd_
::ll::TypedStorage< 8, 8, ::Json::Value * > lastValue_
::ll::TypedStorage< 8, 32, ::std::string > commentsBefore_
::ll::TypedStorage< 1, 2, ::Json::Features > features_
::ll::TypedStorage< 1, 1, bool > collectComments_

Constructor & Destructor Documentation

◆ Reader()

MCAPI Json::Reader::Reader ( ::Json::Features const & features)
explicit
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ addError()

MCAPI bool Json::Reader::addError ( ::std::string const & message,
::Json::Reader::Token & token,
char const * extra )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ decodeDouble()

MCAPI::Json::Value Json::Reader::decodeDouble ( ::Json::Reader::Token & token,
bool & successful )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ decodeNumber()

MCAPI::Json::Value Json::Reader::decodeNumber ( ::Json::Reader::Token & token,
bool & successful )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ decodeString() [1/2]

MCAPI bool Json::Reader::decodeString ( ::Json::Reader::Token & token,
char * decoded )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ decodeString() [2/2]

MCAPI::Json::Value::CZString Json::Reader::decodeString ( ::Json::Reader::Token & token,
bool & successful )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ decodeUnicodeCodePoint()

MCAPI bool Json::Reader::decodeUnicodeCodePoint ( ::Json::Reader::Token & token,
char const *& current,
char const * end,
uint & unicode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ decodeUnicodeEscapeSequence()

MCAPI bool Json::Reader::decodeUnicodeEscapeSequence ( ::Json::Reader::Token & token,
char const *& current,
char const * end,
uint & unicode )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ getLocationLineAndColumn()

MCAPI::std::string Json::Reader::getLocationLineAndColumn ( char const * location) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ parse() [1/3]

MCAPI bool Json::Reader::parse ( ::std::istream & sin,
::Json::Value & root,
bool collectComments )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ parse() [2/3]

MCAPI bool Json::Reader::parse ( char const * beginDoc,
char const * endDoc,
::Json::Value & root,
bool  )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ parse() [3/3]

MCAPI bool Json::Reader::parse ( char const * originalBegin,
uint64 length,
::Json::Value & root,
bool collectComments )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ readArray()

MCAPI::Json::Value Json::Reader::readArray ( ::Json::Reader::Token & ,
bool & ok )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ readObject()

MCAPI::Json::Value Json::Reader::readObject ( ::Json::Reader::Token & ,
bool & successful )
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ readToken()

MCAPI bool Json::Reader::readToken ( ::Json::Reader::Token & token)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ readValue()

MCAPI::Json::Value Json::Reader::readValue ( bool & successful)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ recoverFromError()

MCAPI bool Json::Reader::recoverFromError ( ::Json::Reader::TokenType skipUntilToken)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $ctor()

MCAPI void * Json::Reader::$ctor ( ::Json::Features const & features)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

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