X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..refs/heads/master:/yarr/Yarr.h diff --git a/yarr/Yarr.h b/yarr/Yarr.h index de64fdd..463623e 100644 --- a/yarr/Yarr.h +++ b/yarr/Yarr.h @@ -43,6 +43,7 @@ namespace JSC { namespace Yarr { #define YarrStackSpaceForBackTrackInfoParentheses 2 static const unsigned quantifyInfinite = UINT_MAX; +static const unsigned offsetNoMatch = std::numeric_limits::max(); // The below limit restricts the number of "recursive" match calls in order to // avoid spending exponential time on complex regular expressions. @@ -57,8 +58,10 @@ enum JSRegExpResult { JSRegExpErrorInternal = -4 }; -PassOwnPtr byteCompile(YarrPattern&, BumpPointerAllocator*); -int interpret(BytecodePattern*, const UChar* input, unsigned start, unsigned length, int* output); +enum YarrCharSize { + Char8, + Char16 +}; } } // namespace JSC::Yarr