/[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 412 by ph10, Sat Apr 11 10:34:37 2009 UTC revision 426 by ph10, Wed Aug 26 15:38:32 2009 UTC
# Line 1326  while (!done) Line 1326  while (!done)
1326    
1327      {      {
1328      unsigned long int get_options;      unsigned long int get_options;
1329    
1330      if (timeit > 0)      if (timeit > 0)
1331        {        {
1332        register int i;        register int i;
# Line 1369  while (!done) Line 1369  while (!done)
1369          }          }
1370        goto CONTINUE;        goto CONTINUE;
1371        }        }
1372    
1373      /* Compilation succeeded. It is now possible to set the UTF-8 option from      /* Compilation succeeded. It is now possible to set the UTF-8 option from
1374      within the regex; check for this so that we know how to process the data      within the regex; check for this so that we know how to process the data
1375      lines. */      lines. */
1376    
1377      new_info(re, NULL, PCRE_INFO_OPTIONS, &get_options);      new_info(re, NULL, PCRE_INFO_OPTIONS, &get_options);
1378      if ((get_options & PCRE_UTF8) != 0) use_utf8 = 1;      if ((get_options & PCRE_UTF8) != 0) use_utf8 = 1;
1379    
# Line 1463  while (!done) Line 1463  while (!done)
1463        fprintf(outfile, "------------------------------------------------------------------\n");        fprintf(outfile, "------------------------------------------------------------------\n");
1464        pcre_printint(re, outfile, debug_lengths);        pcre_printint(re, outfile, debug_lengths);
1465        }        }
1466    
1467      /* We already have the options in get_options (see above) */      /* We already have the options in get_options (see above) */
1468    
1469      if (do_showinfo)      if (do_showinfo)
# Line 2363  while (!done) Line 2363  while (!done)
2363        else if (count == PCRE_ERROR_PARTIAL)        else if (count == PCRE_ERROR_PARTIAL)
2364          {          {
2365          fprintf(outfile, "Partial match");          fprintf(outfile, "Partial match");
2366  #if !defined NODFA          if (use_size_offsets > 1)
2367          if ((all_use_dfa || use_dfa) && use_size_offsets > 2)            {
2368            fprintf(outfile, ": %.*s", use_offsets[1] - use_offsets[0],            fprintf(outfile, ": ");
2369              bptr + use_offsets[0]);            pchars(bptr + use_offsets[0], use_offsets[1] - use_offsets[0],
2370  #endif              outfile);
2371              }
2372          fprintf(outfile, "\n");          fprintf(outfile, "\n");
2373          break;  /* Out of the /g loop */          break;  /* Out of the /g loop */
2374          }          }

Legend:
Removed from v.412  
changed lines
  Added in v.426

  ViewVC Help
Powered by ViewVC 1.1.5