X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/14957cd040308e3eeec43d26bae5d76da13fcd85..1981f5dfe8d77d97469d20652f712a09400c48ed:/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