Lines Matching refs:code
272 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after) in print_prop() argument
274 if (code[1] != PT_CLIST) in print_prop()
276 fprintf(f, "%s%s %s%s", before, OP_names[*code], get_ucpname(code[1], in print_prop()
277 code[2]), after); in print_prop()
281 const char *not = (*code == OP_PROP)? "" : "not "; in print_prop()
282 const uint32_t *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
310 PCRE2_SPTR codestart, nametable, code; in pcre2_printint() local
315 code = codestart = nametable + re->name_count * re->name_entry_size; in pcre2_printint()
326 fprintf(f, "%3d ", (int)(code - codestart)); in pcre2_printint()
330 switch(*code) in pcre2_printint()
347 fprintf(f, " %s\n", OP_names[*code]); in pcre2_printint()
355 code++; in pcre2_printint()
356 code += 1 + print_char(f, code, utf); in pcre2_printint()
358 while (*code == OP_CHAR); in pcre2_printint()
366 code++; in pcre2_printint()
367 code += 1 + print_char(f, code, utf); in pcre2_printint()
369 while (*code == OP_CHARI); in pcre2_printint()
377 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
379 fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE)); in pcre2_printint()
402 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
404 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
408 fprintf(f, " %s %d", OP_names[*code], GET2(code, 1)); in pcre2_printint()
412 fprintf(f, "%3d %s", GET2(code,1), OP_names[*code]); in pcre2_printint()
417 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
420 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
425 c = GET2(code, 1); in pcre2_printint()
434 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
437 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
480 if (*code >= OP_TYPESTAR) in pcre2_printint()
482 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) in pcre2_printint()
484 print_prop(f, code + 1, "", " "); in pcre2_printint()
487 else fprintf(f, "%s", OP_names[code[1]]); in pcre2_printint()
489 else extra = print_char(f, code+1, utf); in pcre2_printint()
490 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
504 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
506 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre2_printint()
507 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
508 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre2_printint()
509 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre2_printint()
516 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in pcre2_printint()
518 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre2_printint()
521 else fprintf(f, " %s", OP_names[code[1 + IMM2_SIZE]]); in pcre2_printint()
523 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre2_printint()
524 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
525 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre2_printint()
526 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre2_printint()
534 extra = print_char(f, code + 1, utf); in pcre2_printint()
560 extra = print_char(f, code + 1, utf); in pcre2_printint()
561 fprintf(f, "]%s", OP_names[*code]); in pcre2_printint()
576 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
578 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre2_printint()
579 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
580 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre2_printint()
582 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre2_printint()
586 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
588 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
595 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre2_printint()
596 ccode = code + OP_lengths[*code]; in pcre2_printint()
604 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
607 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
609 ccode = code + OP_lengths[*code]; in pcre2_printint()
613 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
614 GET(code, 1), GET(code, 1 + LINK_SIZE)); in pcre2_printint()
618 c = code[1 + 4*LINK_SIZE]; in pcre2_printint()
619 fprintf(f, " %s %c", OP_names[*code], c); in pcre2_printint()
620 extra = GET(code, 1 + 2*LINK_SIZE); in pcre2_printint()
621 print_custring_bylen(f, code + 2 + 4*LINK_SIZE, extra - 3 - 4*LINK_SIZE); in pcre2_printint()
628 fprintf(f, "%c %d %d %d", c, GET(code, 1 + 3*LINK_SIZE), GET(code, 1), in pcre2_printint()
629 GET(code, 1 + LINK_SIZE)); in pcre2_printint()
634 print_prop(f, code, " ", ""); in pcre2_printint()
653 if (*code == OP_XCLASS) in pcre2_printint()
655 extra = GET(code, 1); in pcre2_printint()
656 ccode = code + LINK_SIZE + 1; in pcre2_printint()
668 ccode = code + 1; in pcre2_printint()
708 if (*code == OP_XCLASS) in pcre2_printint()
764 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre2_printint()
810 fprintf(f, " %s ", OP_names[*code]); in pcre2_printint()
811 print_custring_bylen(f, code + 2, code[1]); in pcre2_printint()
812 extra += code[1]; in pcre2_printint()
816 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
827 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
831 code += OP_lengths[*code] + extra; in pcre2_printint()