Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qv4jsonobject.cpp File Reference

(152e6716baeffd22c381df8c37c188b8eab7d9df)

#include <qv4jsonobject_p.h>
#include <qv4objectproto_p.h>
#include <qv4numberobject_p.h>
#include <qv4stringobject_p.h>
#include <qv4booleanobject_p.h>
#include <qv4objectiterator_p.h>
#include <qv4scopedvalue_p.h>
#include <qv4runtime_p.h>
#include <qv4variantobject_p.h>
#include "qv4jscall_p.h"
#include <qv4symbol_p.h>
#include <qstack.h>
#include <qstringlist.h>
#include <wtf/MathExtras.h>
+ Include dependency graph for qv4jsonobject.cpp:

Go to the source code of this file.

Classes

struct  Stringify
 
class  CallDepthAndCycleChecker
 

Macros

#define BEGIN   if (1) ; else qDebug()
 
#define END   do {} while (0)
 
#define DEBUG   if (1) ; else qDebug()
 

Enumerations

enum  {
  Space = 0x20 , Tab = 0x09 , LineFeed = 0x0a , Return = 0x0d ,
  BeginArray = 0x5b , BeginObject = 0x7b , EndArray = 0x5d , EndObject = 0x7d ,
  NameSeparator = 0x3a , ValueSeparator = 0x2c , Quote = 0x22
}
 

Functions

 DEFINE_OBJECT_VTABLE (JsonObject)
 
static bool addHexDigit (QChar digit, uint *result)
 
static bool scanEscapeSequence (const QChar *&json, const QChar *end, uint *ch)
 
static QString quote (const QString &str)
 

Variables

static const int nestingLimit = 1024
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   if (1) ; else qDebug()

Definition at line 29 of file qv4jsonobject.cpp.

◆ DEBUG

#define DEBUG   if (1) ; else qDebug()

Definition at line 31 of file qv4jsonobject.cpp.

◆ END

#define END   do {} while (0)

Definition at line 30 of file qv4jsonobject.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Space 
Tab 
LineFeed 
Return 
BeginArray 
BeginObject 
EndArray 
EndObject 
NameSeparator 
ValueSeparator 
Quote 

Definition at line 74 of file qv4jsonobject.cpp.

Function Documentation

◆ addHexDigit()

static bool addHexDigit ( QChar digit,
uint * result )
inlinestatic

Definition at line 490 of file qv4jsonobject.cpp.

References d.

◆ DEFINE_OBJECT_VTABLE()

DEFINE_OBJECT_VTABLE ( JsonObject )

◆ quote()

static QString quote ( const QString & str)
static

Definition at line 635 of file qv4jsonobject.cpp.

References QString::at(), i, QString::size(), and str.

Referenced by QODBCDriver::escapeIdentifier(), QQmlJS::Dom::Path::fromString(), QODBCDriver::isIdentifierEscaped(), Stringify::makeMember(), QAuthenticatorPrivate::parseDigestAuthenticationChallenge(), QDateTimeParser::parseFormat(), putEscapedString(), quotedValue(), QtPrivate::QCalendarDateValidator::setFormat(), Stringify::Str(), and unquote().

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

◆ scanEscapeSequence()

static bool scanEscapeSequence ( const QChar *& json,
const QChar * end,
uint * ch )
inlinestatic

Definition at line 505 of file qv4jsonobject.cpp.

References addHexDigit(), ch, DEBUG, and i.

+ Here is the call graph for this function:

Variable Documentation

◆ nestingLimit

const int nestingLimit = 1024
static

Definition at line 37 of file qv4jsonobject.cpp.