regexec(): add quick-fail test for anchored \G
authorDavid Mitchell <davem@iabyn.com>
Sun, 21 Jul 2013 10:57:22 +0000 (11:57 +0100)
committerDavid Mitchell <davem@iabyn.com>
Sun, 28 Jul 2013 09:33:40 +0000 (10:33 +0100)
commit2bfbe302c4540d7e5e2a37d691ba77622aa4c30d
tree5d17cad279c912098cf25408cf703ec7ca4416e7
parentfef7148b7be4215ac55d92d11249b95cf4f08d5d
regexec(): add quick-fail test for anchored \G

under anchored \G, e.g. /ab\G/, we know that the start of the match must
be at (ganch-gofs); so fail quickly if that's off the beginning of the
string; or use it as the start point otherwise.
regexec.c