/[pcre]/code/branches/pcre16/pcre_printint.src
ViewVC logotype

Diff of /code/branches/pcre16/pcre_printint.src

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

revision 767 by zherczeg, Sat Nov 26 12:48:56 2011 UTC revision 769 by zherczeg, Sun Nov 27 17:40:33 2011 UTC
# Line 364  for(;;) Line 364  for(;;)
364      case OP_MINUPTO:      case OP_MINUPTO:
365      case OP_POSUPTO:      case OP_POSUPTO:
366      fprintf(f, " %s ", flag);      fprintf(f, " %s ", flag);
367      extra = print_char(f, code+3, utf8);      extra = print_char(f, code + 1 + IMM2_SIZE, utf8);
368      fprintf(f, "{");      fprintf(f, "{");
369      if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,");      if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,");
370      fprintf(f, "%d}", GET2(code,1));      fprintf(f, "%d}", GET2(code,1));
# Line 376  for(;;) Line 376  for(;;)
376      case OP_TYPEUPTO:      case OP_TYPEUPTO:
377      case OP_TYPEMINUPTO:      case OP_TYPEMINUPTO:
378      case OP_TYPEPOSUPTO:      case OP_TYPEPOSUPTO:
379      fprintf(f, "    %s", OP_names[code[3]]);      fprintf(f, "    %s", OP_names[code[1 + IMM2_SIZE]]);
380      if (code[3] == OP_PROP || code[3] == OP_NOTPROP)      if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP)
381        {        {
382        fprintf(f, " %s ", get_ucpname(code[4], code[5]));        fprintf(f, " %s ", get_ucpname(code[1 + IMM2_SIZE + 1],
383            code[1 + IMM2_SIZE + 2]));
384        extra = 2;        extra = 2;
385        }        }
386      fprintf(f, "{");      fprintf(f, "{");
# Line 436  for(;;) Line 437  for(;;)
437      case OP_NOTUPTO:      case OP_NOTUPTO:
438      case OP_NOTMINUPTO:      case OP_NOTMINUPTO:
439      case OP_NOTPOSUPTO:      case OP_NOTPOSUPTO:
440      c = code[3];      c = code[1 + IMM2_SIZE];
441      if (PRINTABLE(c)) fprintf(f, " %s [^%c]{", flag, c);      if (PRINTABLE(c)) fprintf(f, " %s [^%c]{", flag, c);
442        else fprintf(f, " %s [^\\x%02x]{", flag, c);        else fprintf(f, " %s [^\\x%02x]{", flag, c);
443      if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");      if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");
# Line 576  for(;;) Line 577  for(;;)
577          case OP_CRRANGE:          case OP_CRRANGE:
578          case OP_CRMINRANGE:          case OP_CRMINRANGE:
579          min = GET2(ccode,1);          min = GET2(ccode,1);
580          max = GET2(ccode,3);          max = GET2(ccode,1 + IMM2_SIZE);
581          if (max == 0) fprintf(f, "{%d,}", min);          if (max == 0) fprintf(f, "{%d,}", min);
582          else fprintf(f, "{%d,%d}", min, max);          else fprintf(f, "{%d,%d}", min, max);
583          if (*ccode == OP_CRMINRANGE) fprintf(f, "?");          if (*ccode == OP_CRMINRANGE) fprintf(f, "?");

Legend:
Removed from v.767  
changed lines
  Added in v.769

  ViewVC Help
Powered by ViewVC 1.1.5