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
qv4stringobject.cpp File Reference

(8b6a9403bf2e04d34b9b07d2780186029fab99d0)

#include "qv4stringobject_p.h"
#include "qv4regexp_p.h"
#include "qv4regexpobject_p.h"
#include <private/qv4mm_p.h>
#include "qv4scopedvalue_p.h"
#include "qv4symbol_p.h"
#include <private/qv4alloca_p.h>
#include "qv4jscall_p.h"
#include "qv4stringiterator_p.h"
#include <QtCore/QDateTime>
#include <QtCore/QDebug>
#include <QtCore/QStringList>
#include <QtQml/private/qv4runtime_p.h>
#include <cassert>
#include <time.h>
#include <sys/time.h>
+ Include dependency graph for qv4stringobject.cpp:

Go to the source code of this file.

Classes

struct  StringObjectOwnPropertyKeyIterator
 

Functions

 DEFINE_OBJECT_VTABLE (StringObject)
 
 DEFINE_OBJECT_VTABLE (StringCtor)
 
static Heap::StringthisAsString (ExecutionEngine *v4, const QV4::Value *thisObject)
 
static QString getThisString (ExecutionEngine *v4, const QV4::Value *thisObject)
 
static void appendReplacementString (QString *result, const QString &input, const QString &replaceValue, uint *matchOffsets, int captureCount)
 

Function Documentation

◆ appendReplacementString()

static void appendReplacementString ( QString * result,
const QString & input,
const QString & replaceValue,
uint * matchOffsets,
int captureCount )
static

Definition at line 684 of file qv4stringobject.cpp.

References ch, i, and QStringView::mid().

Referenced by QV4::StringPrototype::method_replace().

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

◆ DEFINE_OBJECT_VTABLE() [1/2]

DEFINE_OBJECT_VTABLE ( StringCtor )

◆ DEFINE_OBJECT_VTABLE() [2/2]

DEFINE_OBJECT_VTABLE ( StringObject )

◆ getThisString()

◆ thisAsString()

static Heap::String * thisAsString ( ExecutionEngine * v4,
const QV4::Value * thisObject )
static

Definition at line 296 of file qv4stringobject.cpp.

References QV4::Value::as(), QV4::Value::stringValue(), and QV4::Value::toString().

Referenced by QV4::StringPrototype::method_padEnd(), QV4::StringPrototype::method_padStart(), and QV4::StringPrototype::method_slice().

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