summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-06-17 16:26:44 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-06-17 16:26:44 +0000
commit42a19af33b46e32374f99578a2e4eb454aece59c (patch)
treeddd53c1e23d06e7c1b095dda77850d64b2e183a0 /testdata
parent508eef833c4a634d331e0d54e505fd18a300de6a (diff)
downloadpcre2-42a19af33b46e32374f99578a2e4eb454aece59c.tar.gz
Another extension to minimum length calculation.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1108 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput102
-rw-r--r--testdata/testinput122
-rw-r--r--testdata/testinput216
-rw-r--r--testdata/testoutput109
-rw-r--r--testdata/testoutput12-168
-rw-r--r--testdata/testoutput12-328
-rw-r--r--testdata/testoutput263
7 files changed, 108 insertions, 0 deletions
diff --git a/testdata/testinput10 b/testdata/testinput10
index 2029c44..5e8458f 100644
--- a/testdata/testinput10
+++ b/testdata/testinput10
@@ -557,4 +557,6 @@
# -------------------------------------
+/(*UTF)(?=\x{123})/I
+
# End of testinput10
diff --git a/testdata/testinput12 b/testdata/testinput12
index b1af30a..1f68732 100644
--- a/testdata/testinput12
+++ b/testdata/testinput12
@@ -447,4 +447,6 @@
# ----------------------------------------------------
+/(*UTF)(?=\x{123})/I
+
# End of testinput12
diff --git a/testdata/testinput2 b/testdata/testinput2
index bfec80c..3c1e589 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -5607,4 +5607,20 @@ a)"xI
/(*:\Q \E){5}/alt_verbnames
+/(?=abc)/I
+
+/(?|(X)|(XY))\1abc/I
+
+/(?|(a)|(bcde))(c)\2/I
+
+/(?|(a)|(bcde))(c)\1/I
+
+/(?|(?'A'a)|(?'A'bcde))(?'B'c)\k'B'(?'A')/I,dupnames
+
+/(?|(?'A'a)|(?'A'bcde))(?'B'c)\k'A'(?'A')/I,dupnames
+
+/((a|)+)+Z/I
+
+/((?=a))[abcd]/I
+
# End of testinput2
diff --git a/testdata/testoutput10 b/testdata/testoutput10
index 0a336d8..e5b7c13 100644
--- a/testdata/testoutput10
+++ b/testdata/testoutput10
@@ -1757,4 +1757,13 @@ No match
# -------------------------------------
+/(*UTF)(?=\x{123})/I
+Capture group count = 0
+May match empty string
+Compile options: <none>
+Overall options: utf
+First code unit = \xc4
+Last code unit = \xa3
+Subject length lower bound = 1
+
# End of testinput10
diff --git a/testdata/testoutput12-16 b/testdata/testoutput12-16
index fd6eef7..9b11b62 100644
--- a/testdata/testoutput12-16
+++ b/testdata/testoutput12-16
@@ -1579,4 +1579,12 @@ No match
# ----------------------------------------------------
+/(*UTF)(?=\x{123})/I
+Capture group count = 0
+May match empty string
+Compile options: <none>
+Overall options: utf
+First code unit = \x{123}
+Subject length lower bound = 1
+
# End of testinput12
diff --git a/testdata/testoutput12-32 b/testdata/testoutput12-32
index 768fd7e..9b1b38b 100644
--- a/testdata/testoutput12-32
+++ b/testdata/testoutput12-32
@@ -1577,4 +1577,12 @@ No match
# ----------------------------------------------------
+/(*UTF)(?=\x{123})/I
+Capture group count = 0
+May match empty string
+Compile options: <none>
+Overall options: utf
+First code unit = \x{123}
+Subject length lower bound = 1
+
# End of testinput12
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 9c1dc50..6a93525 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -16963,6 +16963,69 @@ Failed: error 109 at offset 5: quantifier does not follow a repeatable item
/(*:\Q \E){5}/alt_verbnames
Failed: error 109 at offset 11: quantifier does not follow a repeatable item
+/(?=abc)/I
+Capture group count = 0
+May match empty string
+First code unit = 'a'
+Last code unit = 'c'
+Subject length lower bound = 2
+
+/(?|(X)|(XY))\1abc/I
+Capture group count = 1
+Max back reference = 1
+First code unit = 'X'
+Last code unit = 'c'
+Subject length lower bound = 4
+
+/(?|(a)|(bcde))(c)\2/I
+Capture group count = 2
+Max back reference = 2
+Starting code units: a b
+Last code unit = 'c'
+Subject length lower bound = 3
+
+/(?|(a)|(bcde))(c)\1/I
+Capture group count = 2
+Max back reference = 1
+Starting code units: a b
+Last code unit = 'c'
+Subject length lower bound = 2
+
+/(?|(?'A'a)|(?'A'bcde))(?'B'c)\k'B'(?'A')/I,dupnames
+Capture group count = 3
+Max back reference = 2
+Named capture groups:
+ A 1
+ A 3
+ B 2
+Options: dupnames
+Starting code units: a b
+Last code unit = 'c'
+Subject length lower bound = 3
+
+/(?|(?'A'a)|(?'A'bcde))(?'B'c)\k'A'(?'A')/I,dupnames
+Capture group count = 3
+Max back reference = 3
+Named capture groups:
+ A 1
+ A 3
+ B 2
+Options: dupnames
+Starting code units: a b
+Last code unit = 'c'
+Subject length lower bound = 2
+
+/((a|)+)+Z/I
+Capture group count = 2
+Starting code units: Z a
+Last code unit = 'Z'
+Subject length lower bound = 1
+
+/((?=a))[abcd]/I
+Capture group count = 1
+First code unit = 'a'
+Subject length lower bound = 1
+
# End of testinput2
Error -70: PCRE2_ERROR_BADDATA (unknown error number)
Error -62: bad serialized data