| 1442 |
int do_g = 0; |
int do_g = 0; |
| 1443 |
int do_showinfo = showinfo; |
int do_showinfo = showinfo; |
| 1444 |
int do_showrest = 0; |
int do_showrest = 0; |
| 1445 |
|
int do_showcaprest = 0; |
| 1446 |
int do_flip = 0; |
int do_flip = 0; |
| 1447 |
int erroroffset, len, delimiter, poffset; |
int erroroffset, len, delimiter, poffset; |
| 1448 |
|
|
| 1608 |
case 's': options |= PCRE_DOTALL; break; |
case 's': options |= PCRE_DOTALL; break; |
| 1609 |
case 'x': options |= PCRE_EXTENDED; break; |
case 'x': options |= PCRE_EXTENDED; break; |
| 1610 |
|
|
| 1611 |
case '+': do_showrest = 1; break; |
case '+': |
| 1612 |
|
if (do_showrest) do_showcaprest = 1; else do_showrest = 1; |
| 1613 |
|
break; |
| 1614 |
|
|
| 1615 |
case 'A': options |= PCRE_ANCHORED; break; |
case 'A': options |= PCRE_ANCHORED; break; |
| 1616 |
case 'B': do_debug = 1; break; |
case 'B': do_debug = 1; break; |
| 1617 |
case 'C': options |= PCRE_AUTO_CALLOUT; break; |
case 'C': options |= PCRE_AUTO_CALLOUT; break; |
| 2591 |
(void)pchars(dbuffer + pmatch[i].rm_so, |
(void)pchars(dbuffer + pmatch[i].rm_so, |
| 2592 |
pmatch[i].rm_eo - pmatch[i].rm_so, outfile); |
pmatch[i].rm_eo - pmatch[i].rm_so, outfile); |
| 2593 |
fprintf(outfile, "\n"); |
fprintf(outfile, "\n"); |
| 2594 |
if (i == 0 && do_showrest) |
if (do_showcaprest || (i == 0 && do_showrest)) |
| 2595 |
{ |
{ |
| 2596 |
fprintf(outfile, " 0+ "); |
fprintf(outfile, "%2d+ ", (int)i); |
| 2597 |
(void)pchars(dbuffer + pmatch[i].rm_eo, len - pmatch[i].rm_eo, |
(void)pchars(dbuffer + pmatch[i].rm_eo, len - pmatch[i].rm_eo, |
| 2598 |
outfile); |
outfile); |
| 2599 |
fprintf(outfile, "\n"); |
fprintf(outfile, "\n"); |
| 2745 |
(void)pchars(bptr + use_offsets[i], |
(void)pchars(bptr + use_offsets[i], |
| 2746 |
use_offsets[i+1] - use_offsets[i], outfile); |
use_offsets[i+1] - use_offsets[i], outfile); |
| 2747 |
fprintf(outfile, "\n"); |
fprintf(outfile, "\n"); |
| 2748 |
if (i == 0) |
if (do_showcaprest || (i == 0 && do_showrest)) |
| 2749 |
{ |
{ |
| 2750 |
if (do_showrest) |
fprintf(outfile, "%2d+ ", i/2); |
| 2751 |
{ |
(void)pchars(bptr + use_offsets[i+1], len - use_offsets[i+1], |
| 2752 |
fprintf(outfile, " 0+ "); |
outfile); |
| 2753 |
(void)pchars(bptr + use_offsets[i+1], len - use_offsets[i+1], |
fprintf(outfile, "\n"); |
|
outfile); |
|
|
fprintf(outfile, "\n"); |
|
|
} |
|
| 2754 |
} |
} |
| 2755 |
} |
} |
| 2756 |
} |
} |