diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/RegExp.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/RegExp.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/JavaScriptCore/runtime/RegExp.h b/Source/JavaScriptCore/runtime/RegExp.h index ad1020376..287444b95 100644 --- a/Source/JavaScriptCore/runtime/RegExp.h +++ b/Source/JavaScriptCore/runtime/RegExp.h @@ -26,10 +26,10 @@ #include "MatchResult.h" #include "RegExpKey.h" #include "Structure.h" -#include "UString.h" #include "yarr/Yarr.h" #include <wtf/Forward.h> #include <wtf/RefCounted.h> +#include <wtf/text/WTFString.h> #if ENABLE(YARR_JIT) #include "yarr/YarrJIT.h" @@ -40,26 +40,26 @@ namespace JSC { struct RegExpRepresentation; class JSGlobalData; - JS_EXPORT_PRIVATE RegExpFlags regExpFlags(const UString&); + JS_EXPORT_PRIVATE RegExpFlags regExpFlags(const String&); class RegExp : public JSCell { public: typedef JSCell Base; - JS_EXPORT_PRIVATE static RegExp* create(JSGlobalData&, const UString& pattern, RegExpFlags); + JS_EXPORT_PRIVATE static RegExp* create(JSGlobalData&, const String& pattern, RegExpFlags); static void destroy(JSCell*); bool global() const { return m_flags & FlagGlobal; } bool ignoreCase() const { return m_flags & FlagIgnoreCase; } bool multiline() const { return m_flags & FlagMultiline; } - const UString& pattern() const { return m_patternString; } + const String& pattern() const { return m_patternString; } bool isValid() const { return !m_constructionError && m_flags != InvalidFlags; } const char* errorMessage() const { return m_constructionError; } - JS_EXPORT_PRIVATE int match(JSGlobalData&, const UString&, unsigned startOffset, Vector<int, 32>& ovector); - MatchResult match(JSGlobalData&, const UString&, unsigned startOffset); + JS_EXPORT_PRIVATE int match(JSGlobalData&, const String&, unsigned startOffset, Vector<int, 32>& ovector); + MatchResult match(JSGlobalData&, const String&, unsigned startOffset); unsigned numSubpatterns() const { return m_numSubpatterns; } bool hasCode() @@ -87,9 +87,9 @@ namespace JSC { private: friend class RegExpCache; - RegExp(JSGlobalData&, const UString&, RegExpFlags); + RegExp(JSGlobalData&, const String&, RegExpFlags); - static RegExp* createWithoutCaching(JSGlobalData&, const UString&, RegExpFlags); + static RegExp* createWithoutCaching(JSGlobalData&, const String&, RegExpFlags); enum RegExpState { ParseError, @@ -105,10 +105,10 @@ namespace JSC { void compileIfNecessaryMatchOnly(JSGlobalData&, Yarr::YarrCharSize); #if ENABLE(YARR_JIT_DEBUG) - void matchCompareWithInterpreter(const UString&, int startOffset, int* offsetVector, int jitResult); + void matchCompareWithInterpreter(const String&, int startOffset, int* offsetVector, int jitResult); #endif - UString m_patternString; + String m_patternString; RegExpFlags m_flags; const char* m_constructionError; unsigned m_numSubpatterns; |