From c2a2128c4117207e051e8a46f40ae1caa9e7e789 Mon Sep 17 00:00:00 2001 From: ph10 Date: Fri, 24 Feb 2012 18:54:43 +0000 Subject: Add support for PCRE_INFO_MAXLOOKBEHIND. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@932 2f5784b3-3f2a-0410-8824-cb99058d5e15 --- pcretest.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pcretest.c') diff --git a/pcretest.c b/pcretest.c index 80e58a8..8b7bc57 100644 --- a/pcretest.c +++ b/pcretest.c @@ -3099,7 +3099,7 @@ while (!done) { unsigned long int all_options; int count, backrefmax, first_char, need_char, okpartial, jchanged, - hascrorlf; + hascrorlf, maxlookbehind; int nameentrysize, namecount; const pcre_uint8 *nametable; @@ -3113,7 +3113,8 @@ while (!done) new_info(re, NULL, PCRE_INFO_NAMETABLE, (void *)&nametable) + new_info(re, NULL, PCRE_INFO_OKPARTIAL, &okpartial) + new_info(re, NULL, PCRE_INFO_JCHANGED, &jchanged) + - new_info(re, NULL, PCRE_INFO_HASCRORLF, &hascrorlf) + new_info(re, NULL, PCRE_INFO_HASCRORLF, &hascrorlf) + + new_info(re, NULL, PCRE_INFO_MAXLOOKBEHIND, &maxlookbehind) != 0) goto SKIP_DATA; @@ -3252,6 +3253,9 @@ while (!done) fprintf(outfile, "%s\n", caseless); } } + + if (maxlookbehind > 0) + fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind); /* Don't output study size; at present it is in any case a fixed value, but it varies, depending on the computer architecture, and -- cgit v1.2.1