diff options
Diffstat (limited to 'JavaScriptCore/yarr/RegexParser.h')
| -rw-r--r-- | JavaScriptCore/yarr/RegexParser.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/JavaScriptCore/yarr/RegexParser.h b/JavaScriptCore/yarr/RegexParser.h index 64e8463..a5c0ba2 100644 --- a/JavaScriptCore/yarr/RegexParser.h +++ b/JavaScriptCore/yarr/RegexParser.h @@ -26,14 +26,10 @@ #ifndef RegexParser_h #define RegexParser_h -#include <wtf/Platform.h> - -#if ENABLE(YARR) - -#include <UString.h> +#include "UString.h" +#include <limits.h> #include <wtf/ASCIICType.h> #include <wtf/unicode/Unicode.h> -#include <limits.h> namespace JSC { namespace Yarr { @@ -195,8 +191,8 @@ private: : m_delegate(delegate) , m_backReferenceLimit(backReferenceLimit) , m_err(NoError) - , m_data(pattern.data()) - , m_size(pattern.size()) + , m_data(pattern.characters()) + , m_size(pattern.length()) , m_index(0) , m_parenthesesNestingDepth(0) { @@ -849,6 +845,4 @@ const char* parse(Delegate& delegate, const UString& pattern, unsigned backRefer } } // namespace JSC::Yarr -#endif - #endif // RegexParser_h |
