Changeset 36977 in webkit for trunk/JavaScriptCore/kjs/RegExpObject.h
- Timestamp:
- Sep 26, 2008, 7:36:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/RegExpObject.h
r36726 r36977 29 29 class RegExpObject : public JSObject { 30 30 public: 31 enum { Global, IgnoreCase, Multiline, Source, LastIndex };32 33 31 RegExpObject(PassRefPtr<StructureID>, PassRefPtr<RegExp>); 34 32 virtual ~RegExpObject(); … … 37 35 RegExp* regExp() const { return d->regExp.get(); } 38 36 37 void setLastIndex(double lastIndex) { d->lastIndex = lastIndex; } 38 double lastIndex() const { return d->lastIndex; } 39 39 40 JSValue* test(ExecState*, const ArgList&); 40 41 JSValue* exec(ExecState*, const ArgList&); 41 42 42 bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 43 JSValue* getValueProperty(ExecState*, int token) const; 44 void put(ExecState*, const Identifier& propertyName, JSValue*, PutPropertySlot&); 45 void putValueProperty(ExecState*, int token, JSValue*); 43 virtual bool getOwnPropertySlot(ExecState*, const Identifier& propertyName, PropertySlot&); 44 virtual void put(ExecState*, const Identifier& propertyName, JSValue*, PutPropertySlot&); 46 45 47 46 virtual const ClassInfo* classInfo() const { return &info; } 48 47 static const ClassInfo info; 49 50 void setLastIndex(double lastIndex) { d->lastIndex = lastIndex; }51 48 52 49 private: … … 54 51 55 52 virtual CallType getCallData(CallData&); 56 53 57 54 struct RegExpObjectData { 58 RegExpObjectData(PassRefPtr<RegExp> regExp _, double lastIndex_)59 : regExp(regExp _)60 , lastIndex(lastIndex _)55 RegExpObjectData(PassRefPtr<RegExp> regExp, double lastIndex) 56 : regExp(regExp) 57 , lastIndex(lastIndex) 61 58 { 62 59 } … … 65 62 double lastIndex; 66 63 }; 67 64 68 65 OwnPtr<RegExpObjectData> d; 69 66 };
Note:
See TracChangeset
for help on using the changeset viewer.