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

Diff of /code/trunk/pcre_printint.c

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

revision 906 by zherczeg, Tue Jan 24 09:55:16 2012 UTC revision 924 by zherczeg, Wed Feb 22 10:23:56 2012 UTC
# Line 477  for(;;) Line 477  for(;;)
477      flag = "/i";      flag = "/i";
478      /* Fall through */      /* Fall through */
479      case OP_NOT:      case OP_NOT:
480      c = code[1];      fprintf(f, " %s [^", flag);
481      if (PRINTABLE(c)) fprintf(f, " %s [^%c]", flag, c);      extra = print_char(f, code + 1, utf);
482      else if (utf || c > 0xff)      fprintf(f, "]");
       fprintf(f, " %s [^\\x{%02x}]", flag, c);  
     else  
       fprintf(f, " %s [^\\x%02x]", flag, c);  
483      break;      break;
484    
485      case OP_NOTSTARI:      case OP_NOTSTARI:
# Line 506  for(;;) Line 503  for(;;)
503      case OP_NOTQUERY:      case OP_NOTQUERY:
504      case OP_NOTMINQUERY:      case OP_NOTMINQUERY:
505      case OP_NOTPOSQUERY:      case OP_NOTPOSQUERY:
506      c = code[1];      fprintf(f, " %s [^", flag);
507      if (PRINTABLE(c)) fprintf(f, " %s [^%c]", flag, c);      extra = print_char(f, code + 1, utf);
508        else fprintf(f, " %s [^\\x%02x]", flag, c);      fprintf(f, "]%s", priv_OP_names[*code]);
     fprintf(f, "%s", priv_OP_names[*code]);  
509      break;      break;
510    
511      case OP_NOTEXACTI:      case OP_NOTEXACTI:
# Line 523  for(;;) Line 519  for(;;)
519      case OP_NOTUPTO:      case OP_NOTUPTO:
520      case OP_NOTMINUPTO:      case OP_NOTMINUPTO:
521      case OP_NOTPOSUPTO:      case OP_NOTPOSUPTO:
522      c = code[1 + IMM2_SIZE];      fprintf(f, " %s [^", flag);
523      if (PRINTABLE(c)) fprintf(f, " %s [^%c]{", flag, c);      extra = print_char(f, code + 1 + IMM2_SIZE, utf);
524        else fprintf(f, " %s [^\\x%02x]{", flag, c);      fprintf(f, "]{");
525      if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");      if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");
526      fprintf(f, "%d}", GET2(code,1));      fprintf(f, "%d}", GET2(code,1));
527      if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?");      if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?");

Legend:
Removed from v.906  
changed lines
  Added in v.924

  ViewVC Help
Powered by ViewVC 1.1.5