X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/1df5f87f1309a8daa30dabdee855f48ae40d14ab..6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174:/yarr/Yarr.h diff --git a/yarr/Yarr.h b/yarr/Yarr.h index de64fdd..d393e9f 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 = (unsigned)-1; // 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