/[pcre]/code/trunk/pcretest.c
ViewVC logotype

Diff of /code/trunk/pcretest.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 455 by ph10, Sat Sep 26 19:12:32 2009 UTC revision 461 by ph10, Mon Oct 5 10:59:35 2009 UTC
# Line 1305  while (!done) Line 1305  while (!done)
1305      if ((options & PCRE_DOTALL) != 0) cflags |= REG_DOTALL;      if ((options & PCRE_DOTALL) != 0) cflags |= REG_DOTALL;
1306      if ((options & PCRE_NO_AUTO_CAPTURE) != 0) cflags |= REG_NOSUB;      if ((options & PCRE_NO_AUTO_CAPTURE) != 0) cflags |= REG_NOSUB;
1307      if ((options & PCRE_UTF8) != 0) cflags |= REG_UTF8;      if ((options & PCRE_UTF8) != 0) cflags |= REG_UTF8;
1308      if ((options & PCRE_UNGREEDY) != 0) cflags |= REG_UNGREEDY;      if ((options & PCRE_UNGREEDY) != 0) cflags |= REG_UNGREEDY;
1309    
1310      rc = regcomp(&preg, (char *)p, cflags);      rc = regcomp(&preg, (char *)p, cflags);
1311    
# Line 1630  while (!done) Line 1630  while (!done)
1630            {            {
1631            uschar *start_bits = NULL;            uschar *start_bits = NULL;
1632            int minlength;            int minlength;
1633    
1634            new_info(re, extra, PCRE_INFO_MINLENGTH, &minlength);            new_info(re, extra, PCRE_INFO_MINLENGTH, &minlength);
1635            fprintf(outfile, "Subject length lower bound = %d\n", minlength);            fprintf(outfile, "Subject length lower bound = %d\n", minlength);
1636    
1637            new_info(re, extra, PCRE_INFO_FIRSTTABLE, &start_bits);            new_info(re, extra, PCRE_INFO_FIRSTTABLE, &start_bits);
1638            if (start_bits == NULL)            if (start_bits == NULL)
1639              fprintf(outfile, "No set of starting bytes\n");              fprintf(outfile, "No set of starting bytes\n");
# Line 1977  while (!done) Line 1977  while (!done)
1977          case 'N':          case 'N':
1978          if ((options & PCRE_NOTEMPTY) != 0)          if ((options & PCRE_NOTEMPTY) != 0)
1979            options = (options & ~PCRE_NOTEMPTY) | PCRE_NOTEMPTY_ATSTART;            options = (options & ~PCRE_NOTEMPTY) | PCRE_NOTEMPTY_ATSTART;
1980          else          else
1981            options |= PCRE_NOTEMPTY;            options |= PCRE_NOTEMPTY;
1982          continue;          continue;
1983    
# Line 2001  while (!done) Line 2001  while (!done)
2001          continue;          continue;
2002    
2003          case 'P':          case 'P':
2004          options |= ((options & PCRE_PARTIAL_SOFT) == 0)?          options |= ((options & PCRE_PARTIAL_SOFT) == 0)?
2005            PCRE_PARTIAL_SOFT : PCRE_PARTIAL_HARD;            PCRE_PARTIAL_SOFT : PCRE_PARTIAL_HARD;
2006          continue;          continue;
2007    
# Line 2377  while (!done) Line 2377  while (!done)
2377            {            {
2378            fprintf(outfile, ": ");            fprintf(outfile, ": ");
2379            pchars(bptr + use_offsets[0], use_offsets[1] - use_offsets[0],            pchars(bptr + use_offsets[0], use_offsets[1] - use_offsets[0],
2380              outfile);              outfile);
2381            }            }
2382          fprintf(outfile, "\n");          fprintf(outfile, "\n");
2383          break;  /* Out of the /g loop */          break;  /* Out of the /g loop */
2384          }          }

Legend:
Removed from v.455  
changed lines
  Added in v.461

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12