Lines Matching defs:code
15 * Redistributions of source code must retain the above copyright notice,
105 /* This table of operator lengths is not actually used by the working code,
264 print_prop(FILE *f, pcre_uchar *code, const char *before, const char *after)
266 if (code[1] != PT_CLIST)
268 fprintf(f, "%s%s %s%s", before, priv_OP_names[*code], get_ucpname(code[1],
269 code[2]), after);
273 const char *not = (*code == OP_PROP)? "" : "not ";
275 fprintf(f, "%s%sclist %d%s", before, not, code[2], after);
277 const pcre_uint32 *p = PRIV(ucd_caseless_sets) + code[2];
313 pcre_uchar *codestart, *code;
332 code = codestart = (pcre_uchar *)re + offset + count * size;
344 fprintf(f, "%3d ", (int)(code - codestart));
348 switch(*code)
365 fprintf(f, " %s\n", priv_OP_names[*code]);
373 code++;
374 code += 1 + print_char(f, code, utf);
376 while (*code == OP_CHAR);
384 code++;
385 code += 1 + print_char(f, code, utf);
387 while (*code == OP_CHARI);
395 if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
397 fprintf(f, "%s %d", priv_OP_names[*code], GET2(code, 1+LINK_SIZE));
418 if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
420 fprintf(f, "%s", priv_OP_names[*code]);
424 fprintf(f, " %s %d", priv_OP_names[*code], GET2(code, 1));
428 fprintf(f, "%3d %s", GET2(code,1), priv_OP_names[*code]);
433 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) +
437 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE));
442 c = GET2(code, 1);
451 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) +
455 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE));
493 if (*code >= OP_TYPESTAR)
495 if (code[1] == OP_PROP || code[1] == OP_NOTPROP)
497 print_prop(f, code + 1, "", " ");
500 else fprintf(f, "%s", priv_OP_names[code[1]]);
502 else extra = print_char(f, code+1, utf);
503 fprintf(f, "%s", priv_OP_names[*code]);
517 extra = print_char(f, code + 1 + IMM2_SIZE, utf);
519 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,");
520 fprintf(f, "%d}", GET2(code,1));
521 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?");
522 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+");
529 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP)
531 print_prop(f, code + IMM2_SIZE + 1, " ", " ");
534 else fprintf(f, " %s", priv_OP_names[code[1 + IMM2_SIZE]]);
536 if (*code != OP_TYPEEXACT) fprintf(f, "0,");
537 fprintf(f, "%d}", GET2(code,1));
538 if (*code == OP_TYPEMINUPTO) fprintf(f, "?");
539 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+");
547 extra = print_char(f, code + 1, utf);
573 extra = print_char(f, code + 1, utf);
574 fprintf(f, "]%s", priv_OP_names[*code]);
589 extra = print_char(f, code + 1 + IMM2_SIZE, utf);
591 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,");
592 fprintf(f, "%d}", GET2(code,1));
593 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?");
595 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+");
599 if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
601 fprintf(f, "%s", priv_OP_names[*code]);
608 fprintf(f, " %s \\%d", flag, GET2(code,1));
609 ccode = code + priv_OP_lengths[*code];
617 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) +
621 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE));
623 ccode = code + priv_OP_lengths[*code];
627 fprintf(f, " %s %d %d %d", priv_OP_names[*code], code[1], GET(code,2),
628 GET(code, 2 + LINK_SIZE));
633 print_prop(f, code, " ", "");
637 in having this code always here, and it makes it less messy without all
653 if (*code == OP_XCLASS)
655 extra = GET(code, 1);
656 ccode = code + LINK_SIZE + 1;
668 ccode = code + 1;
707 if (*code == OP_XCLASS)
763 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : "");
795 /* Do nothing if it's not a repeat; this code stops picky compilers
796 warning about the lack of a default code path. */
808 fprintf(f, " %s ", priv_OP_names[*code]);
809 print_puchar(f, code + 2);
810 extra += code[1];
814 fprintf(f, " %s", priv_OP_names[*code]);
825 fprintf(f, " %s %s", flag, priv_OP_names[*code]);
829 code += priv_OP_lengths[*code] + extra;