diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-06-04 15:34:50 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2012-06-04 15:34:50 +0200 |
commit | 08bd3ea09ada7c867255500a3dcf1207b81259ef (patch) | |
tree | dc89425a67547c0e0d9e418a10a8636893fcf979 /qv4ecmaobjects_p.h | |
parent | e1f20b85545805e1fefe69423a245883e2c93947 (diff) |
Initial work on the RegExp object
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r-- | qv4ecmaobjects_p.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qv4ecmaobjects_p.h b/qv4ecmaobjects_p.h index 6517ad1ea8..38164fc2aa 100644 --- a/qv4ecmaobjects_p.h +++ b/qv4ecmaobjects_p.h @@ -235,6 +235,24 @@ struct DatePrototype: DateObject static void method_toUTCString(Context *ctx); }; +struct RegExpCtor: FunctionObject +{ + RegExpCtor(Context *scope); + + virtual void construct(Context *ctx); + virtual void call(Context *ctx); +}; + +struct RegExpPrototype: RegExpObject +{ + RegExpPrototype(): RegExpObject(Value::fromNumber(qSNaN())) {} + void init(Context *ctx, const Value &ctor); + + static void method_exec(Context *ctx); + static void method_test(Context *ctx); + static void method_toString(Context *ctx); +}; + struct MathObject: Object { MathObject(Context *ctx); |