![]() |
Qt 6.x
The Qt SDK
|
#include <qv4regexpobject_p.h>
Static Public Member Functions | |
static ReturnedValue | method_exec (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_flags (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_global (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_ignoreCase (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_match (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_multiline (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_replace (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_search (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_source (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_split (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_sticky (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_test (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_toString (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_unicode (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_compile (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
template<uint index> | |
static ReturnedValue | method_get_lastMatch_n (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_lastParen (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_input (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_leftContext (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | method_get_rightContext (const FunctionObject *, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | execFirstMatch (const FunctionObject *b, const Value *thisObject, const Value *argv, int argc) |
static ReturnedValue | exec (ExecutionEngine *engine, const Object *o, const String *s) |
![]() | |
static ReturnedValue | getValue (const Value *thisObject, const Value &v, PropertyAttributes attrs) |
static ReturnedValue | getValueAccessor (const Value *thisObject, const Value &v, PropertyAttributes attrs) |
static ReturnedValue | checkedInstanceOf (ExecutionEngine *engine, const FunctionObject *typeObject, const Value &var) |
![]() | |
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 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) |
Definition at line 139 of file qv4regexpobject_p.h.
|
static |
Definition at line 417 of file qv4regexpobject.cpp.
References QV4::Managed::engine(), QV4::Scope::engine, exec(), QV4::Scope::hasException(), QV4::ExecutionEngine::newString(), o, QStringLiteral, RETURN_UNDEFINED, and QV4::ExecutionEngine::throwTypeError().
|
static |
Definition at line 372 of file qv4regexpobject.cpp.
References QV4::MemoryManager::alloc(), QV4::Value::as(), QV4::StaticValue::asReturnedValue(), QV4::Scope::engine, QV4::RegExpCtor::lastInput(), QV4::EngineBase::memoryManager, QV4::Encode::null(), Q_ALLOCA_VAR, Q_ASSERT, QV4::ExecutionEngine::regExpCtor(), RETURN_RESULT, str, QV4::Encode::undefined(), and QV4::Value::undefinedValue().
void RegExpPrototype::init | ( | ExecutionEngine * | engine, |
Object * | ctor | ||
) |
Definition at line 320 of file qv4regexpobject.cpp.
References QV4::Object::defineAccessorProperty(), QV4::Object::defineDefaultProperty(), QV4::Managed::engine(), QV4::Scope::engine, QV4::Value::fromInt32(), QV4::ExecutionEngine::id_flags(), QV4::ExecutionEngine::id_global(), QV4::ExecutionEngine::id_ignoreCase(), QV4::ExecutionEngine::id_length(), QV4::ExecutionEngine::id_multiline(), QV4::ExecutionEngine::id_prototype(), QV4::ExecutionEngine::id_source(), QV4::ExecutionEngine::id_sticky(), QV4::ExecutionEngine::id_toString(), QV4::ExecutionEngine::id_unicode(), method_compile(), method_exec(), method_get_flags(), method_get_global(), method_get_ignoreCase(), method_get_input(), method_get_lastParen(), method_get_leftContext(), method_get_multiline(), method_get_rightContext(), method_get_source(), method_get_sticky(), method_get_unicode(), method_match(), method_replace(), method_search(), method_split(), method_test(), method_toString(), o, QStringLiteral, QV4::ExecutionEngine::symbol_match(), QV4::ExecutionEngine::symbol_replace(), QV4::ExecutionEngine::symbol_search(), and QV4::ExecutionEngine::symbol_split().
|
static |
Definition at line 900 of file qv4regexpobject.cpp.
References QV4::Value::as(), QV4::FunctionObject::callAsConstructor(), QV4::Scope::engine, QV4::ExecutionEngine::regExpCtor(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 436 of file qv4regexpobject.cpp.
References arg, QV4::Value::as(), QV4::Scope::engine, QV4::Scope::hasException(), RETURN_UNDEFINED, str, QV4::ExecutionEngine::throwTypeError(), and QV4::Value::undefinedValue().
Referenced by init(), and method_test().
|
static |
Definition at line 451 of file qv4regexpobject.cpp.
References QV4::Heap::Base::asReturnedValue(), QV4::Scope::engine, QV4::Scope::hasException(), QV4::ExecutionEngine::id_global(), QV4::ExecutionEngine::id_ignoreCase(), QV4::ExecutionEngine::id_multiline(), QV4::ExecutionEngine::id_sticky(), QV4::ExecutionEngine::id_unicode(), QV4::ExecutionEngine::newString(), o, QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 488 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QV4::CompiledData::RegExp::RegExp_Global, QV4::ExecutionEngine::regExpPrototype(), QV4::Value::sameValue(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 502 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QV4::CompiledData::RegExp::RegExp_IgnoreCase, QV4::ExecutionEngine::regExpPrototype(), QV4::Value::sameValue(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 934 of file qv4regexpobject.cpp.
References QV4::StaticValue::asReturnedValue().
Referenced by init().
|
static |
Definition at line 914 of file qv4regexpobject.cpp.
References QV4::Heap::Base::asReturnedValue(), QV4::Scope::engine, QV4::RegExpCtor::lastMatch(), QV4::ExecutionEngine::newString(), QV4::ExecutionEngine::regExpCtor(), and QV4::Encode::undefined().
|
static |
Definition at line 924 of file qv4regexpobject.cpp.
References QV4::Heap::Base::asReturnedValue(), QV4::Scope::engine, QV4::RegExpCtor::lastMatch(), QV4::ExecutionEngine::newString(), QV4::ExecutionEngine::regExpCtor(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 939 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QString::left(), QV4::ExecutionEngine::newString(), and QV4::ExecutionEngine::regExpCtor().
Referenced by init().
|
static |
Definition at line 583 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QV4::CompiledData::RegExp::RegExp_Multiline, QV4::ExecutionEngine::regExpPrototype(), QV4::Value::sameValue(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 947 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QString::mid(), QV4::ExecutionEngine::newString(), and QV4::ExecutionEngine::regExpCtor().
Referenced by init().
|
static |
Definition at line 736 of file qv4regexpobject.cpp.
References QV4::Heap::Base::asReturnedValue(), QV4::Scope::engine, QV4::ExecutionEngine::newString(), QStringLiteral, QV4::ExecutionEngine::regExpPrototype(), QV4::Value::sameValue(), and QV4::ExecutionEngine::throwTypeError().
Referenced by init().
|
static |
Definition at line 845 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QV4::CompiledData::RegExp::RegExp_Sticky, QV4::ExecutionEngine::regExpPrototype(), QV4::Value::sameValue(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 886 of file qv4regexpobject.cpp.
References QV4::Scope::engine, QV4::CompiledData::RegExp::RegExp_Unicode, QV4::ExecutionEngine::regExpPrototype(), QV4::Value::sameValue(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().
|
static |
Definition at line 539 of file qv4regexpobject.cpp.
References advanceLastIndexOnEmptyMatch(), QV4::Scope::engine, exec(), QV4::PropertyKey::fromArrayIndex(), QV4::Value::fromInt32(), QV4::Object::get(), global, QV4::Scope::hasException(), QV4::ExecutionEngine::id_global(), QV4::ExecutionEngine::id_lastIndex(), QV4::ExecutionEngine::id_unicode(), match(), QV4::ExecutionEngine::newArrayObject(), QV4::Encode::null(), Q_ASSERT, rx(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toBoolean(), QV4::toString(), QV4::Encode::undefined(), and QV4::Value::undefinedValue().
Referenced by init().
|
static |
Definition at line 597 of file qv4regexpobject.cpp.
References advanceLastIndexOnEmptyMatch(), QV4::JSCallArguments::args, QV4::Heap::Base::asReturnedValue(), QV4::Scope::engine, exec(), QV4::PropertyKey::fromArrayIndex(), QV4::Value::fromInt32(), QV4::Object::get(), QV4::RegExp::getSubstitution(), global, QV4::Scope::hasException(), i, QV4::ExecutionEngine::id_global(), QV4::ExecutionEngine::id_index(), QV4::ExecutionEngine::id_lastIndex(), QV4::ExecutionEngine::id_unicode(), match(), QStringView::mid(), QV4::ExecutionEngine::newArrayObject(), QV4::ExecutionEngine::newString(), position(), QList< T >::push_back(), qMax(), qMin(), results, rx(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toBoolean(), QV4::Value::toQString(), QV4::Value::toString(), QV4::toString(), QV4::Encode::undefined(), and QV4::Value::undefinedValue().
Referenced by init().
|
static |
Definition at line 701 of file qv4regexpobject.cpp.
References QV4::Scope::engine, exec(), QV4::Value::fromInt32(), QV4::Scope::hasException(), QV4::ExecutionEngine::id_index(), QV4::ExecutionEngine::id_lastIndex(), o, Q_ASSERT, rx(), QV4::Value::sameValue(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toNumber(), QV4::toString(), QV4::Encode::undefined(), and QV4::Value::undefinedValue().
Referenced by init().
|
static |
Definition at line 749 of file qv4regexpobject.cpp.
References A, advanceStringIndex(), QV4::Scope::alloc(), args, QV4::FunctionObject::callAsConstructor(), QString::contains(), e, QV4::Scope::engine, exec(), QV4::PropertyKey::fromArrayIndex(), QV4::Value::fromInt32(), QV4::Scope::hasException(), i, QV4::ExecutionEngine::id_flags(), QV4::ExecutionEngine::id_lastIndex(), QV4::ExecutionEngine::newArrayObject(), QV4::ExecutionEngine::newString(), qMax(), qMin(), QV4::ExecutionEngine::regExpCtor(), rx(), QV4::ExecutionEngine::throwTypeError(), QV4::Value::toString(), QV4::toString(), QV4::Value::toUInt32(), QV4::Encode::undefined(), and QV4::Value::undefinedValue().
Referenced by init().
|
static |
Definition at line 859 of file qv4regexpobject.cpp.
References QV4::Value::fromReturnedValue(), and method_exec().
Referenced by init().
|
static |
Definition at line 865 of file qv4regexpobject.cpp.
References QV4::Value::as(), QV4::Scope::engine, QV4::Scope::hasException(), QV4::ExecutionEngine::id_flags(), QV4::ExecutionEngine::id_source(), QV4::ExecutionEngine::newString(), QV4::ExecutionEngine::throwTypeError(), and QV4::Encode::undefined().
Referenced by init().