Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QJsonPrivate::Parser Class Reference

#include <qjsonparser_p.h>

+ Collaboration diagram for QJsonPrivate::Parser:

Public Member Functions

 Parser (const char *json, int length)
 
QCborValue parse (QJsonParseError *error)
 

Detailed Description

Definition at line 26 of file qjsonparser_p.h.

Constructor & Destructor Documentation

◆ Parser()

Parser::Parser ( const char *  json,
int  length 
)

Definition at line 193 of file qjsonparser.cpp.

Member Function Documentation

◆ parse()

QCborValue Parser::parse ( QJsonParseError error)

Definition at line 293 of file qjsonparser.cpp.

References QCborValue::Array, BeginArray, BeginObject, DEBUG, END, error, QJsonParseError::GarbageAtEnd, Qt::hex(), QJsonParseError::IllegalValue, QCborContainerPrivate::makeValue(), QCborValue::Map, QCborContainerPrivate::MoveContainer, QJsonParseError::NoError, qDebug, QExplicitlySharedDataPointer< T >::reset(), QExplicitlySharedDataPointer< T >::take(), and token.

Referenced by QJsonDocument::fromJson().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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