Changeset 10818 in webkit for trunk/JavaScriptCore/kjs/regexp_object.h
- Timestamp:
- Oct 11, 2005, 1:43:49 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/regexp_object.h
r10456 r10818 66 66 class RegExpObjectImp : public InternalFunctionImp { 67 67 public: 68 enum { Dollar1, Dollar2, Dollar3, Dollar4, Dollar5, Dollar6, Dollar7, Dollar8, Dollar9, 69 Input, Multiline, LastMatch, LastParen, LeftContext, RightContext }; 70 68 71 RegExpObjectImp(ExecState *exec, 69 72 FunctionPrototypeImp *funcProto, … … 75 78 virtual ValueImp *callAsFunction(ExecState *exec, ObjectImp *thisObj, const List &args); 76 79 80 virtual void put(ExecState *, const Identifier &, ValueImp *, int attr = None); 81 void putValueProperty(ExecState *, int token, ValueImp *, int attr); 77 82 virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&); 78 int ** registerRegexp( const RegExp* re, const UString& s );79 void setSubPatterns(int num) { lastNrSubPatterns = num; }83 ValueImp *getValueProperty(ExecState *, int token) const; 84 UString performMatch(RegExp *, const UString&, int startOffset = 0, int *endOffset = 0, int **ovector = 0); 80 85 ObjectImp *arrayOfMatches(ExecState *exec, const UString &result) const; 86 87 virtual const ClassInfo *classInfo() const { return &info; } 81 88 private: 82 static ValueImp *backrefGetter(ExecState *exec, const Identifier&, const PropertySlot& slot); 83 84 UString lastString; 89 ValueImp *getBackref(unsigned) const; 90 ValueImp *getLastMatch() const; 91 ValueImp *getLastParen() const; 92 ValueImp *getLeftContext() const; 93 ValueImp *getRightContext() const; 94 95 // Global search cache / settings 96 bool multiline; 97 UString lastInput; 85 98 int *lastOvector; 86 unsigned lastNrSubPatterns; 99 unsigned lastNumSubPatterns; 100 101 static const ClassInfo info; 87 102 }; 88 103
Note:
See TracChangeset
for help on using the changeset viewer.