| 875 |
else if (strcmp(argv[op], "-b") == 0) debug = 1; |
else if (strcmp(argv[op], "-b") == 0) debug = 1; |
| 876 |
else if (strcmp(argv[op], "-i") == 0) showinfo = 1; |
else if (strcmp(argv[op], "-i") == 0) showinfo = 1; |
| 877 |
else if (strcmp(argv[op], "-d") == 0) showinfo = debug = 1; |
else if (strcmp(argv[op], "-d") == 0) showinfo = debug = 1; |
| 878 |
else if (strcmp(argv[op], "-M") == 0) default_find_match_limit = TRUE; |
else if (strcmp(argv[op], "-M") == 0) default_find_match_limit = TRUE; |
| 879 |
#if !defined NODFA |
#if !defined NODFA |
| 880 |
else if (strcmp(argv[op], "-dfa") == 0) all_use_dfa = 1; |
else if (strcmp(argv[op], "-dfa") == 0) all_use_dfa = 1; |
| 881 |
#endif |
#endif |
| 928 |
else if (strcmp(argv[op], "-C") == 0) |
else if (strcmp(argv[op], "-C") == 0) |
| 929 |
{ |
{ |
| 930 |
int rc; |
int rc; |
| 931 |
unsigned long int lrc; |
unsigned long int lrc; |
| 932 |
printf("PCRE version %s\n", pcre_version()); |
printf("PCRE version %s\n", pcre_version()); |
| 933 |
printf("Compiled with\n"); |
printf("Compiled with\n"); |
| 934 |
(void)pcre_config(PCRE_CONFIG_UTF8, &rc); |
(void)pcre_config(PCRE_CONFIG_UTF8, &rc); |
| 937 |
printf(" %sUnicode properties support\n", rc? "" : "No "); |
printf(" %sUnicode properties support\n", rc? "" : "No "); |
| 938 |
(void)pcre_config(PCRE_CONFIG_NEWLINE, &rc); |
(void)pcre_config(PCRE_CONFIG_NEWLINE, &rc); |
| 939 |
/* Note that these values are always the ASCII values, even |
/* Note that these values are always the ASCII values, even |
| 940 |
in EBCDIC environments. CR is 13 and NL is 10. */ |
in EBCDIC environments. CR is 13 and NL is 10. */ |
| 941 |
printf(" Newline sequence is %s\n", (rc == 13)? "CR" : |
printf(" Newline sequence is %s\n", (rc == 13)? "CR" : |
| 942 |
(rc == 10)? "LF" : (rc == (13<<8 | 10))? "CRLF" : |
(rc == 10)? "LF" : (rc == (13<<8 | 10))? "CRLF" : |
| 943 |
(rc == -2)? "ANYCRLF" : |
(rc == -2)? "ANYCRLF" : |
| 2011 |
case 'S': |
case 'S': |
| 2012 |
show_malloc = 1; |
show_malloc = 1; |
| 2013 |
continue; |
continue; |
| 2014 |
|
|
| 2015 |
case 'Y': |
case 'Y': |
| 2016 |
options |= PCRE_NO_START_OPTIMIZE; |
options |= PCRE_NO_START_OPTIMIZE; |
| 2017 |
continue; |
continue; |
| 2018 |
|
|
| 2019 |
case 'Z': |
case 'Z': |
| 2020 |
options |= PCRE_NOTEOL; |
options |= PCRE_NOTEOL; |
| 2074 |
pmatch = (regmatch_t *)malloc(sizeof(regmatch_t) * use_size_offsets); |
pmatch = (regmatch_t *)malloc(sizeof(regmatch_t) * use_size_offsets); |
| 2075 |
if ((options & PCRE_NOTBOL) != 0) eflags |= REG_NOTBOL; |
if ((options & PCRE_NOTBOL) != 0) eflags |= REG_NOTBOL; |
| 2076 |
if ((options & PCRE_NOTEOL) != 0) eflags |= REG_NOTEOL; |
if ((options & PCRE_NOTEOL) != 0) eflags |= REG_NOTEOL; |
| 2077 |
if ((options & PCRE_NOTEMPTY) != 0) eflags |= REG_NOTEMPTY; |
if ((options & PCRE_NOTEMPTY) != 0) eflags |= REG_NOTEMPTY; |
| 2078 |
|
|
| 2079 |
rc = regexec(&preg, (const char *)bptr, use_size_offsets, pmatch, eflags); |
rc = regexec(&preg, (const char *)bptr, use_size_offsets, pmatch, eflags); |
| 2080 |
|
|