6 #ifndef CPPTL_JSON_READER_H_INCLUDED 7 # define CPPTL_JSON_READER_H_INCLUDED 9 #if !defined(JSON_IS_AMALGAMATION) 12 #endif // if !defined(JSON_IS_AMALGAMATION) 50 bool collectComments =
true );
64 bool parse(
const char *beginDoc,
const char *endDoc,
66 bool collectComments =
true );
72 bool collectComments =
true );
81 std::
string getFormatedErrorMessages()
const;
88 std::
string getFormattedErrorMessages() const;
104 tokenMemberSeparator,
125 typedef std::deque<ErrorInfo> Errors;
127 bool expectToken( TokenType
type, Token &token,
const char *
message );
128 bool readToken( Token &token );
130 bool match( Location pattern,
133 bool readCStyleComment();
134 bool readCppStyleComment();
138 bool readObject( Token &token );
139 bool readArray( Token &token );
140 bool decodeNumber( Token &token );
141 bool decodeString( Token &token );
143 bool decodeDouble( Token &token );
144 bool decodeUnicodeCodePoint( Token &token,
147 unsigned int &unicode );
148 bool decodeUnicodeEscapeSequence( Token &token,
151 unsigned int &unicode );
154 Location extra = 0 );
155 bool recoverFromError( TokenType skipUntilToken );
158 TokenType skipUntilToken );
159 void skipUntilSpace();
160 Value ¤tValue();
162 void getLocationLineAndColumn( Location
location,
166 void addComment( Location begin,
169 void skipCommentTokens( Token &token );
171 typedef std::stack<Value *> Nodes;
178 Location lastValueEnd_;
182 bool collectComments_;
213 #endif // CPPTL_JSON_READER_H_INCLUDED Definition: IWebViewPrivate.idl:301
line
Definition: buildtests.py:37
def root
Definition: pyjsontestrunner.py:60
GLuint GLuint end
Definition: gl2ext.h:323
std::istream & operator>>(std::istream &sin, Value &root)
Read from 'sin' into 'root'.
Definition: json_reader.cpp:904
char Char
Definition: reader.h:25
Definition: videoengine_unittest.h:62
Definition: WebCryptoAPI.idl:27
Frame decoded
Definition: plotReceiveTrace.m:6
GLint location
Definition: gl2.h:455
CommentPlacement
Definition: value.h:42
const Char * Location
Definition: reader.h:26
def match(pattern, string)
Definition: diff_parser.py:43
JSON (JavaScript Object Notation).
Definition: value.h:26
#define JSONCPP_DEPRECATED(message)
Definition: config.h:72
GenericReader< UTF8<>, UTF8<> > Reader
Reader with UTF8 encoding and default allocator.
Definition: reader.h:1432
EGLenum type
Definition: eglext.h:63
GLsizei const GLchar *const * string
Definition: gl2.h:479
Represents a JSON value.
Definition: value.h:118
bool is(Ref< ArgType > &source)
Definition: Ref.h:220
Unserialize a JSON document into a Value.
Definition: reader.h:22
const
Definition: upload.py:398
std::unique_ptr< ParsedNode > parse(VM *vm, const SourceCode &source, const Identifier &name, JSParserBuiltinMode builtinMode, JSParserStrictMode strictMode, JSParserScriptMode scriptMode, SourceParseMode parseMode, SuperBinding superBinding, ParserError &error, JSTextPosition *positionBeforeLastNewline=nullptr, ConstructorKind defaultConstructorKind=ConstructorKind::None, DerivedContextType derivedContextType=DerivedContextType::None, EvalContextType evalContextType=EvalContextType::None, DebuggerParseData *debuggerParseData=nullptr)
Definition: Parser.h:1887
Definition: FetchRequest.idl:30
#define JSON_API
Definition: config.h:53
Configuration passed to reader and writer. This configuration object can be used to force the Reader ...
Definition: features.h:19
GLuint GLsizei const GLchar * message
Definition: gl2ext.h:137