--- embedaddon/pcre/testdata/testoutput12 2012/02/21 23:50:25 1.1.1.2 +++ embedaddon/pcre/testdata/testoutput12 2013/07/22 08:25:57 1.1.1.4 @@ -11,12 +11,20 @@ Subject length lower bound = 3 No set of starting bytes JIT study was successful -/ab(*COMMIT)/S+I +/(?(?C1)(?=a)a)/S+I Capturing subpattern count = 0 No options First char = 'a' -Need char = 'b' -Subject length lower bound = 2 +No need char +Study returned NULL +JIT study was not successful + +/(?(?C1)(?=a)a)/S!+I +Capturing subpattern count = 0 +No options +First char = 'a' +No need char +Subject length lower bound = -1 No set of starting bytes JIT study was not successful @@ -47,5 +55,122 @@ Study returned NULL /(?(R)a*(?1)|((?R))b)/S+ aaaabcde Error -27 (JIT stack limit reached) + +/-- Test various compile modes --/ + +/abcd/S++ + abcd + 0: abcd (JIT) + xyz +No match (JIT) + +/abcd/S+ + abcd + 0: abcd (JIT) + ab\P +Partial match: ab (JIT) + ab\P\P +Partial match: ab (JIT) + xyz +No match (JIT) + +/abcd/S++ + abcd + 0: abcd (JIT) + ab\P +Partial match: ab (JIT) + ab\P\P +Partial match: ab (JIT) + xyz +No match (JIT) + +/abcd/S++1 + abcd + 0: abcd (JIT) + ab\P +Partial match: ab + ab\P\P +Partial match: ab + xyz +No match (JIT) + xyz\P +No match + +/abcd/S++2 + abcd + 0: abcd + ab\P +Partial match: ab (JIT) + ab\P\P +Partial match: ab + xyz +No match + +/abcd/S++3 + abcd + 0: abcd (JIT) + ab\P +Partial match: ab (JIT) + ab\P\P +Partial match: ab + xyz +No match (JIT) + +/abcd/S++4 + abcd + 0: abcd + ab\P +Partial match: ab + ab\P\P +Partial match: ab (JIT) + xyz +No match + +/abcd/S++5 + abcd + 0: abcd (JIT) + ab\P +Partial match: ab + ab\P\P +Partial match: ab (JIT) + xyz +No match (JIT) + +/abcd/S++6 + abcd + 0: abcd + ab\P +Partial match: ab (JIT) + ab\P\P +Partial match: ab (JIT) + xyz +No match + +/abcd/S++7 + abcd + 0: abcd (JIT) + ab\P +Partial match: ab (JIT) + ab\P\P +Partial match: ab (JIT) + xyz +No match (JIT) + +/abcd/S++2I +Capturing subpattern count = 0 +No options +First char = 'a' +Need char = 'd' +Subject length lower bound = 4 +No set of starting bytes +JIT study was successful + +/(*NO_START_OPT)a(*:m)b/KS++ + a +No match, mark = m (JIT) + +/^12345678abcd/mS++ + 12345678abcd + 0: 12345678abcd (JIT) /-- End of testinput12 --/