diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-10 19:10:20 +0200 |
commit | 284837daa07b29d6a63a748544a90b1f5842ac5c (patch) | |
tree | ecd258180bde91fe741e0cfd2638beb3c6da7e8e /Source/JavaScriptCore/yarr/YarrParser.h | |
parent | 2e2ba8ff45915f40ed3e014101269c175f2a89a0 (diff) | |
download | qtwebkit-284837daa07b29d6a63a748544a90b1f5842ac5c.tar.gz |
Imported WebKit commit 68645295d2e3e09af2c942f092556f06aa5f8b0d (http://svn.webkit.org/repository/webkit/trunk@128073)
New snapshot
Diffstat (limited to 'Source/JavaScriptCore/yarr/YarrParser.h')
-rw-r--r-- | Source/JavaScriptCore/yarr/YarrParser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/yarr/YarrParser.h b/Source/JavaScriptCore/yarr/YarrParser.h index 1182d7907..4bab1a090 100644 --- a/Source/JavaScriptCore/yarr/YarrParser.h +++ b/Source/JavaScriptCore/yarr/YarrParser.h @@ -26,9 +26,9 @@ #ifndef YarrParser_h #define YarrParser_h -#include <runtime/UString.h> #include "Yarr.h" #include <wtf/ASCIICType.h> +#include <wtf/text/WTFString.h> #include <wtf/unicode/Unicode.h> namespace JSC { namespace Yarr { @@ -47,7 +47,7 @@ template<class Delegate, typename CharType> class Parser { private: template<class FriendDelegate> - friend const char* parse(FriendDelegate& delegate, const UString& pattern, unsigned backReferenceLimit); + friend const char* parse(FriendDelegate&, const String& pattern, unsigned backReferenceLimit); enum ErrorCode { NoError, @@ -228,7 +228,7 @@ private: UChar m_character; }; - Parser(Delegate& delegate, const UString& pattern, unsigned backReferenceLimit) + Parser(Delegate& delegate, const String& pattern, unsigned backReferenceLimit) : m_delegate(delegate) , m_backReferenceLimit(backReferenceLimit) , m_err(NoError) @@ -868,7 +868,7 @@ private: */ template<class Delegate> -const char* parse(Delegate& delegate, const UString& pattern, unsigned backReferenceLimit = quantifyInfinite) +const char* parse(Delegate& delegate, const String& pattern, unsigned backReferenceLimit = quantifyInfinite) { if (pattern.is8Bit()) return Parser<Delegate, LChar>(delegate, pattern, backReferenceLimit).parse(); |