Changeset 34863 in webkit for trunk/JavaScriptCore/kjs/RegExpObject.h
- Timestamp:
- Jun 28, 2008, 5:09:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/RegExpObject.h
r34855 r34863 22 22 #define RegExpObject_h 23 23 24 #include "JSFunction.h"25 24 #include "JSObject.h" 26 25 #include "regexp.h" 27 26 28 27 namespace KJS { 29 30 class FunctionPrototype;31 class ObjectPrototype;32 struct RegExpConstructorPrivate;33 34 class RegExpPrototype : public JSObject {35 public:36 RegExpPrototype(ExecState*, ObjectPrototype*, FunctionPrototype*);37 38 virtual const ClassInfo* classInfo() const { return &info; }39 static const ClassInfo info;40 };41 28 42 29 class RegExpObject : public JSObject { … … 72 59 }; 73 60 74 class RegExpConstructor : public InternalFunction { 75 public: 76 enum { Dollar1, Dollar2, Dollar3, Dollar4, Dollar5, Dollar6, Dollar7, Dollar8, Dollar9, 77 Input, Multiline, LastMatch, LastParen, LeftContext, RightContext }; 61 } // namespace KJS 78 62 79 RegExpConstructor(ExecState*, FunctionPrototype*, RegExpPrototype*); 80 81 virtual void put(ExecState*, const Identifier&, JSValue*); 82 void putValueProperty(ExecState*, int token, JSValue*); 83 virtual bool getOwnPropertySlot(ExecState*, const Identifier&, PropertySlot&); 84 JSValue* getValueProperty(ExecState*, int token) const; 85 86 static const ClassInfo info; 87 88 void performMatch(RegExp*, const UString&, int startOffset, int& position, int& length, int** ovector = 0); 89 JSObject* arrayOfMatches(ExecState*) const; 90 const UString& input() const; 91 92 private: 93 virtual ConstructType getConstructData(ConstructData&); 94 virtual CallType getCallData(CallData&); 95 virtual const ClassInfo* classInfo() const { return &info; } 96 97 JSValue* getBackref(ExecState*, unsigned) const; 98 JSValue* getLastParen(ExecState*) const; 99 JSValue* getLeftContext(ExecState*) const; 100 JSValue* getRightContext(ExecState*) const; 101 102 OwnPtr<RegExpConstructorPrivate> d; 103 }; 104 105 } // namespace 106 107 #endif 63 #endif // RegExpObject_h
Note:
See TracChangeset
for help on using the changeset viewer.