Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qv4globalobject.cpp File Reference

(22df353c14800d2e9b6d57a9a0cb9c6baa337999)

#include "qv4globalobject_p.h"
#include <private/qv4alloca_p.h>
#include <private/qv4codegen_p.h>
#include <private/qv4context_p.h>
#include <private/qv4function_p.h>
#include <private/qv4mm_p.h>
#include <private/qv4scopedvalue_p.h>
#include <private/qv4script_p.h>
#include <private/qv4stackframe_p.h>
#include <private/qv4string_p.h>
#include <private/qv4value_p.h>
#include <wtf/MathExtras.h>
#include <QtCore/private/qlocale_tools_p.h>
#include <QtCore/private/qtools_p.h>
#include <QtCore/qdebug.h>
#include <QtCore/qstring.h>
#include <iostream>
Include dependency graph for qv4globalobject.cpp:

Go to the source code of this file.

Enumerations

enum  DecodeMode { DecodeAll , DecodeNonReserved , DecodeAll , DecodeNonReserved }
enum  DecodeMode { DecodeAll , DecodeNonReserved , DecodeAll , DecodeNonReserved }

Functions

static QString escape (const QString &input)
static QString unescape (const QString &input)
static void addEscapeSequence (QString &output, uchar ch)
static QString encode (const QString &input, const char *unescapedSet, bool *ok)
static QString decode (const QString &input, DecodeMode decodeMode, bool *ok)
 DEFINE_OBJECT_VTABLE (EvalFunction)
static ExecutionContextevalContext (QV4::ExecutionEngine *v4, bool directCall)
static int toInt (const QChar &qc, int R)
constexpr char toHexUpper (char32_t value) noexcept
constexpr int fromHex (char32_t c) noexcept
constexpr char toHexUpper (char32_t value) noexcept
constexpr int fromHex (char32_t c) noexcept

Variables

static const char uriReserved [] = ";/?:@&=+$,#"
static const char uriUnescaped [] = "-_.!~*'()"
static const char uriUnescapedReserved [] = "-_.!~*'();/?:@&=+$,#"

Enumeration Type Documentation

◆ DecodeMode [1/2]

enum DecodeMode
Enumerator
DecodeAll 
DecodeNonReserved 
DecodeAll 
DecodeNonReserved 

Definition at line 182 of file qv4globalobject.cpp.

◆ DecodeMode [2/2]

enum DecodeMode
Enumerator
DecodeAll 
DecodeNonReserved 
DecodeAll 
DecodeNonReserved 

Definition at line 182 of file qv4globalobject.cpp.

Function Documentation

◆ addEscapeSequence()

void addEscapeSequence ( QString & output,
uchar ch )
static

Definition at line 106 of file qv4globalobject.cpp.

◆ decode()

QString decode ( const QString & input,
DecodeMode decodeMode,
bool * ok )
static

Definition at line 187 of file qv4globalobject.cpp.

References DecodeNonReserved, and uriReserved.

◆ DEFINE_OBJECT_VTABLE()

DEFINE_OBJECT_VTABLE ( EvalFunction )

◆ encode()

QString encode ( const QString & input,
const char * unescapedSet,
bool * ok )
static

Definition at line 113 of file qv4globalobject.cpp.

◆ escape()

QString escape ( const QString & input)
static

Definition at line 32 of file qv4globalobject.cpp.

◆ evalContext()

ExecutionContext * evalContext ( QV4::ExecutionEngine * v4,
bool directCall )
static

Definition at line 302 of file qv4globalobject.cpp.

◆ fromHex() [1/2]

int QtMiscUtils::fromHex ( char32_t c)
inlinenodiscardconstexprnoexcept

Definition at line 44 of file qtools_p.h.

◆ fromHex() [2/2]

int QtMiscUtils::fromHex ( char32_t c)
inlinenodiscardconstexprnoexcept

Definition at line 44 of file qtools_p.h.

◆ toHexUpper() [1/2]

char QtMiscUtils::toHexUpper ( char32_t value)
inlinenodiscardconstexprnoexcept

Definition at line 27 of file qtools_p.h.

◆ toHexUpper() [2/2]

char QtMiscUtils::toHexUpper ( char32_t value)
inlinenodiscardconstexprnoexcept

Definition at line 27 of file qtools_p.h.

◆ toInt()

int toInt ( const QChar & qc,
int R )
inlinestatic

Definition at line 366 of file qv4globalobject.cpp.

◆ unescape()

QString unescape ( const QString & input)
static

Definition at line 64 of file qv4globalobject.cpp.

Variable Documentation

◆ uriReserved

const char uriReserved = ";/?:@&=+$,#"
static

Definition at line 102 of file qv4globalobject.cpp.

Referenced by decode().

◆ uriUnescaped

const char uriUnescaped = "-_.!~*'()"
static

Definition at line 103 of file qv4globalobject.cpp.

◆ uriUnescapedReserved

const char uriUnescapedReserved = "-_.!~*'();/?:@&=+$,#"
static

Definition at line 104 of file qv4globalobject.cpp.