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>.
|
#include <qv4regexp_p.h>
Public Member Functions | |
V4_NEEDS_DESTROY QString | pattern () const |
JSC::Yarr::BytecodePattern * | byteCode () |
RegExpCache * | cache () const |
int | subPatternCount () const |
bool | ignoreCase () const |
bool | multiLine () const |
bool | global () const |
bool | unicode () const |
bool | sticky () const |
bool | isValid () const |
uint | match (const QString &string, int start, uint *matchOffsets) |
int | captureCount () const |
Public Member Functions inherited from QV4::Managed | |
Heap::InternalClass * | internalClass () const |
const VTable * | vtable () const |
ExecutionEngine * | engine () const |
bool | isV4SequenceType () const |
bool | isQmlListPropertyType () const |
bool | isArrayLike () const |
bool | isArrayObject () const |
bool | isStringObject () const |
bool | isSymbolObject () const |
QString | className () const |
bool | isEqualTo (const Managed *other) const |
bool | inUse () const |
bool | markBit () const |
void | mark (MarkStack *markStack) |
Q_ALWAYS_INLINE Heap::Base * | heapObject () const |
template<typename T > | |
T * | cast () |
template<typename T > | |
const T * | cast () const |
Public Member Functions inherited from QV4::Value | |
Value ()=default | |
constexpr | Value (quint64 val) |
bool | isString () const |
bool | isStringOrSymbol () const |
bool | isSymbol () const |
bool | isObject () const |
bool | isFunctionObject () const |
QML_NEARLY_ALWAYS_INLINE String * | stringValue () const |
QML_NEARLY_ALWAYS_INLINE StringOrSymbol * | stringOrSymbolValue () const |
QML_NEARLY_ALWAYS_INLINE Symbol * | symbolValue () const |
QML_NEARLY_ALWAYS_INLINE Object * | objectValue () const |
QML_NEARLY_ALWAYS_INLINE ManagedPtr | managed () const |
QML_NEARLY_ALWAYS_INLINE Value::HeapBasePtr | heapObject () const |
int | toUInt16 () const |
int | toInt32 () const |
unsigned int | toUInt32 () const |
qint64 | toLength () const |
qint64 | toIndex () const |
bool | toBoolean () const |
double | toInteger () const |
ReturnedValue | convertedToNumber () const |
double | toNumber () const |
double | toNumberImpl () const |
QString | toQStringNoThrow () const |
QString | toQString () const |
QString | toQString (bool *ok) const |
Heap::String * | toString (ExecutionEngine *e) const |
QV4::PropertyKey | toPropertyKey (ExecutionEngine *e) const |
Heap::Object * | toObject (ExecutionEngine *e) const |
bool | isPrimitive () const |
template<typename T > | |
const T * | as () const |
template<typename T > | |
T * | as () |
template<typename T > | |
T * | cast () |
template<typename T > | |
const T * | cast () const |
uint | asArrayLength (bool *ok) const |
bool | sameValue (Value other) const |
bool | sameValueZero (Value other) const |
void | mark (MarkStack *markStack) |
Value & | operator= (const ScopedValue &v) |
Value & | operator= (ReturnedValue v) |
Value & | operator= (ManagedPtr m) |
Value & | operator= (HeapBasePtr o) |
template<typename T > | |
Value & | operator= (const Scoped< T > &t) |
template<> | |
const DateObject * | as () const |
template<> | |
const ErrorObject * | as () const |
template<> | |
const FunctionObject * | as () const |
template<> | |
const Managed * | as () const |
template<> | |
const Object * | as () const |
template<> | |
const ArrayObject * | as () const |
template<> | |
const StringOrSymbol * | as () const |
template<> | |
const String * | as () const |
template<> | |
const UrlObject * | as () const |
template<> | |
const UrlSearchParamsObject * | as () const |
Public Member Functions inherited from QV4::StaticValue | |
StaticValue ()=default | |
constexpr | StaticValue (quint64 val) |
StaticValue & | operator= (ReturnedValue v) |
template<typename Value > | |
StaticValue & | operator= (const Value &) |
template<typename Value > | |
const Value & | asValue () const |
template<typename Value > | |
Value & | asValue () |
QV4_NEARLY_ALWAYS_INLINE constexpr quint64 & | rawValueRef () |
QV4_NEARLY_ALWAYS_INLINE constexpr quint64 | rawValue () const |
QV4_NEARLY_ALWAYS_INLINE constexpr void | setRawValue (quint64 raw) |
QV4_NEARLY_ALWAYS_INLINE constexpr void | setTagValue (quint32 tag, quint32 value) |
QV4_NEARLY_ALWAYS_INLINE constexpr quint32 | value () const |
QV4_NEARLY_ALWAYS_INLINE constexpr quint32 | tag () const |
QV4_NEARLY_ALWAYS_INLINE constexpr void | setTag (quint32 tag) |
QV4_NEARLY_ALWAYS_INLINE constexpr int | int_32 () const |
QV4_NEARLY_ALWAYS_INLINE constexpr void | setInt_32 (int i) |
QV4_NEARLY_ALWAYS_INLINE uint | uint_32 () const |
QV4_NEARLY_ALWAYS_INLINE constexpr void | setEmpty () |
Type | type () const |
quint64 | quickType () const |
bool | isEmpty () const |
bool | isNull () const |
bool | isBoolean () const |
bool | isInteger () const |
bool | isNullOrUndefined () const |
bool | isUndefined () const |
bool | isDouble () const |
bool | isNumber () const |
bool | isManagedOrUndefined () const |
bool | isManaged () const |
bool | isIntOrBool () const |
bool | integerCompatible () const |
bool | isNaN () const |
bool | isPositiveInt () const |
QV4_NEARLY_ALWAYS_INLINE double | doubleValue () const |
QV4_NEARLY_ALWAYS_INLINE void | setDouble (double d) |
bool | isInt32 () |
double | asDouble () const |
bool | booleanValue () const |
int | integerValue () const |
bool | tryIntegerConversion () |
bool | toBoolean () const |
int | toInt32 () const |
ReturnedValue * | data_ptr () |
constexpr ReturnedValue | asReturnedValue () const |
template<> | |
StaticValue & | operator= (const Value &value) |
template<typename Managed > | |
StaticValue & | operator= (const Managed &m) |
template<> | |
Value & | asValue () |
template<> | |
const Value & | asValue () const |
Static Public Member Functions | |
static Heap::RegExp * | create (ExecutionEngine *engine, const QString &pattern, uint flags=CompiledData::RegExp::RegExp_NoFlags) |
static QString | getSubstitution (const QString &matched, const QString &str, int position, const Value *captures, int nCaptures, const QString &replacement) |
Static Public Member Functions inherited from QV4::Value | |
static constexpr Value | fromStaticValue (StaticValue staticValue) |
static Value | fromHeapObject (HeapBasePtr m) |
static bool | toBooleanImpl (Value val) |
static double | toNumberImpl (Value v) |
static Heap::String * | toString (ExecutionEngine *e, Value val) |
static Heap::Object * | toObject (ExecutionEngine *e, Value val) |
static constexpr Value | fromReturnedValue (ReturnedValue val) |
static double | toInteger (double d) |
static int | toInt32 (double d) |
static unsigned int | toUInt32 (double d) |
static constexpr Value | emptyValue () |
static constexpr Value | fromBoolean (bool b) |
static constexpr Value | fromInt32 (int i) |
static constexpr Value | undefinedValue () |
static constexpr Value | nullValue () |
static Value | fromDouble (double d) |
static Value | fromUInt32 (uint i) |
Static Public Member Functions inherited from QV4::StaticValue | |
static int | valueOffset () |
static int | tagOffset () |
static constexpr quint64 | tagValue (quint32 tag, quint32 value) |
static constexpr quint64 | tagBitMask (TagBit bit) |
static bool | integerCompatible (StaticValue a, StaticValue b) |
static bool | bothDouble (StaticValue a, StaticValue b) |
static QV4_NEARLY_ALWAYS_INLINE bool | isInt32 (double d) |
static constexpr StaticValue | fromReturnedValue (ReturnedValue val) |
static constexpr StaticValue | emptyValue () |
static constexpr StaticValue | fromBoolean (bool b) |
static constexpr StaticValue | fromInt32 (int i) |
static constexpr StaticValue | undefinedValue () |
static constexpr StaticValue | nullValue () |
static StaticValue | fromDouble (double d) |
static StaticValue | fromUInt32 (uint i) |
static double | toInteger (double d) |
static int | toInt32 (double d) |
static unsigned int | toUInt32 (double d) |
Friends | |
class | RegExpCache |
Definition at line 79 of file qv4regexp_p.h.
|
inline |
Definition at line 87 of file qv4regexp_p.h.
References d.
Referenced by match().
|
inline |
Definition at line 91 of file qv4regexp_p.h.
References d.
|
inline |
Definition at line 105 of file qv4regexp_p.h.
References subPatternCount().
Referenced by QV4::RegExpObject::builtinExec().
|
static |
Definition at line 191 of file qv4regexp.cpp.
References QV4::WeakValue::as(), QV4::Heap::RegExp::cache, engine, and QV4::WeakValue::set().
Referenced by QV4::ExecutionEngine::newRegExpObject(), QV4::ExecutableCompilationUnit::populate(), and QV4::RegExpCtor::virtualCallAsConstructor().
|
static |
Definition at line 121 of file qv4regexp.cpp.
References QString::at(), ch, i, j, QString::left(), QString::mid(), position(), Q_ASSERT, QString::size(), str, QV4::Value::stringValue(), and QV4::String::toQString().
Referenced by QV4::RegExpPrototype::method_replace().
|
inline |
Definition at line 95 of file qv4regexp_p.h.
References d.
|
inline |
Definition at line 93 of file qv4regexp_p.h.
References d.
|
inline |
Definition at line 101 of file qv4regexp_p.h.
References d.
Referenced by match().
Definition at line 42 of file qv4regexp.cpp.
References byteCode(), d, error, isValid(), jscFlags(), priv(), Q_ASSERT, and ret.
|
inline |
Definition at line 94 of file qv4regexp_p.h.
References d.
|
inline |
Definition at line 86 of file qv4regexp_p.h.
References d.
Referenced by QV4::RegExpObject::toString().
|
inline |
Definition at line 97 of file qv4regexp_p.h.
References d.
|
inline |
Definition at line 92 of file qv4regexp_p.h.
References d.
Referenced by captureCount().
|
inline |
Definition at line 96 of file qv4regexp_p.h.
References d.
|
friend |
Definition at line 109 of file qv4regexp_p.h.