Changeset 18182 in webkit for trunk/JavaScriptCore/kjs/regexp.h
- Timestamp:
- Dec 12, 2006, 12:09:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/regexp.h
r17862 r18182 46 46 ~RegExp(); 47 47 48 int flags() const { return _flags; } 48 int flags() const { return m_flags; } 49 bool isValid() const { return !m_constructionError; } 50 const char* errorMessage() const { return m_constructionError; } 49 51 50 52 UString match(const UString &s, int i, int *pos = 0, int **ovector = 0); 51 unsigned subPatterns() const { return _numSubPatterns; }53 unsigned subPatterns() const { return m_numSubPatterns; } 52 54 53 55 private: 54 56 #if HAVE(PCREPOSIX) 55 pcre * _regex;57 pcre *m_regex; 56 58 #else 57 regex_t _regex;59 regex_t m_regex; 58 60 #endif 59 int _flags; 60 unsigned _numSubPatterns; 61 int m_flags; 62 char* m_constructionError; 63 unsigned m_numSubPatterns; 61 64 62 65 RegExp(const RegExp &);
Note:
See TracChangeset
for help on using the changeset viewer.