Changeset 127191 in webkit for trunk/Source/JavaScriptCore/runtime/RegExp.h
- Timestamp:
- Aug 30, 2012, 2:23:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/RegExp.h
r112454 r127191 27 27 #include "RegExpKey.h" 28 28 #include "Structure.h" 29 #include "UString.h"30 29 #include "yarr/Yarr.h" 31 30 #include <wtf/Forward.h> 32 31 #include <wtf/RefCounted.h> 32 #include <wtf/text/WTFString.h> 33 33 34 34 #if ENABLE(YARR_JIT) … … 41 41 class JSGlobalData; 42 42 43 JS_EXPORT_PRIVATE RegExpFlags regExpFlags(const UString&);43 JS_EXPORT_PRIVATE RegExpFlags regExpFlags(const String&); 44 44 45 45 class RegExp : public JSCell { … … 47 47 typedef JSCell Base; 48 48 49 JS_EXPORT_PRIVATE static RegExp* create(JSGlobalData&, const UString& pattern, RegExpFlags);49 JS_EXPORT_PRIVATE static RegExp* create(JSGlobalData&, const String& pattern, RegExpFlags); 50 50 static void destroy(JSCell*); 51 51 … … 54 54 bool multiline() const { return m_flags & FlagMultiline; } 55 55 56 const UString& pattern() const { return m_patternString; }56 const String& pattern() const { return m_patternString; } 57 57 58 58 bool isValid() const { return !m_constructionError && m_flags != InvalidFlags; } 59 59 const char* errorMessage() const { return m_constructionError; } 60 60 61 JS_EXPORT_PRIVATE int match(JSGlobalData&, const UString&, unsigned startOffset, Vector<int, 32>& ovector);62 MatchResult match(JSGlobalData&, const UString&, unsigned startOffset);61 JS_EXPORT_PRIVATE int match(JSGlobalData&, const String&, unsigned startOffset, Vector<int, 32>& ovector); 62 MatchResult match(JSGlobalData&, const String&, unsigned startOffset); 63 63 unsigned numSubpatterns() const { return m_numSubpatterns; } 64 64 … … 88 88 private: 89 89 friend class RegExpCache; 90 RegExp(JSGlobalData&, const UString&, RegExpFlags);90 RegExp(JSGlobalData&, const String&, RegExpFlags); 91 91 92 static RegExp* createWithoutCaching(JSGlobalData&, const UString&, RegExpFlags);92 static RegExp* createWithoutCaching(JSGlobalData&, const String&, RegExpFlags); 93 93 94 94 enum RegExpState { … … 106 106 107 107 #if ENABLE(YARR_JIT_DEBUG) 108 void matchCompareWithInterpreter(const UString&, int startOffset, int* offsetVector, int jitResult);108 void matchCompareWithInterpreter(const String&, int startOffset, int* offsetVector, int jitResult); 109 109 #endif 110 110 111 UString m_patternString;111 String m_patternString; 112 112 RegExpFlags m_flags; 113 113 const char* m_constructionError;
Note:
See TracChangeset
for help on using the changeset viewer.