Lines Matching refs:code
302 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after) in print_prop() argument
304 if (code[1] != PT_CLIST) in print_prop()
306 const char *sc = (code[1] == PT_SC)? "script:" : ""; in print_prop()
307 const char *s = get_ucpname(code[1], code[2]); in print_prop()
308 fprintf(f, "%s%s %s%c%s%s", before, OP_names[*code], sc, toupper(s[0]), s+1, after); in print_prop()
312 const uint32_t *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
313 fprintf (f, "%s%sclist", before, (*code == OP_PROP)? "" : "not "); in print_prop()
340 PCRE2_SPTR codestart, nametable, code; in pcre2_printint() local
345 code = codestart = nametable + re->name_count * re->name_entry_size; in pcre2_printint()
356 fprintf(f, "%3d ", (int)(code - codestart)); in pcre2_printint()
360 switch(*code) in pcre2_printint()
377 fprintf(f, " %s\n", OP_names[*code]); in pcre2_printint()
385 code++; in pcre2_printint()
386 code += 1 + print_char(f, code, utf); in pcre2_printint()
388 while (*code == OP_CHAR); in pcre2_printint()
396 code++; in pcre2_printint()
397 code += 1 + print_char(f, code, utf); in pcre2_printint()
399 while (*code == OP_CHARI); in pcre2_printint()
407 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
409 fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE)); in pcre2_printint()
431 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
433 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
437 if (print_lengths) fprintf(f, "%3d ", GET2(code, 1)); in pcre2_printint()
439 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
443 if (print_lengths) fprintf(f, "%3d %d ", GET2(code, 1), in pcre2_printint()
444 GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
446 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
450 fprintf(f, " %s %d", OP_names[*code], GET2(code, 1)); in pcre2_printint()
454 fprintf(f, "%3d %s", GET2(code,1), OP_names[*code]); in pcre2_printint()
459 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
462 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
467 c = GET2(code, 1); in pcre2_printint()
476 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
479 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
522 if (*code >= OP_TYPESTAR) in pcre2_printint()
524 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) in pcre2_printint()
526 print_prop(f, code + 1, "", " "); in pcre2_printint()
529 else fprintf(f, "%s", OP_names[code[1]]); in pcre2_printint()
531 else extra = print_char(f, code+1, utf); in pcre2_printint()
532 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
546 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
548 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre2_printint()
549 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
550 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre2_printint()
551 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre2_printint()
558 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in pcre2_printint()
560 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre2_printint()
563 else fprintf(f, " %s", OP_names[code[1 + IMM2_SIZE]]); in pcre2_printint()
565 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre2_printint()
566 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
567 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre2_printint()
568 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre2_printint()
576 extra = print_char(f, code + 1, utf); in pcre2_printint()
602 extra = print_char(f, code + 1, utf); in pcre2_printint()
603 fprintf(f, "]%s", OP_names[*code]); in pcre2_printint()
618 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
620 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre2_printint()
621 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
622 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre2_printint()
624 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre2_printint()
628 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
630 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
637 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre2_printint()
638 ccode = code + OP_lengths[*code]; in pcre2_printint()
646 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
649 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
651 ccode = code + OP_lengths[*code]; in pcre2_printint()
655 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
656 GET(code, 1), GET(code, 1 + LINK_SIZE)); in pcre2_printint()
660 c = code[1 + 4*LINK_SIZE]; in pcre2_printint()
661 fprintf(f, " %s %c", OP_names[*code], c); in pcre2_printint()
662 extra = GET(code, 1 + 2*LINK_SIZE); in pcre2_printint()
663 print_custring_bylen(f, code + 2 + 4*LINK_SIZE, extra - 3 - 4*LINK_SIZE); in pcre2_printint()
670 fprintf(f, "%c %d %d %d", c, GET(code, 1 + 3*LINK_SIZE), GET(code, 1), in pcre2_printint()
671 GET(code, 1 + LINK_SIZE)); in pcre2_printint()
676 print_prop(f, code, " ", ""); in pcre2_printint()
695 if (*code == OP_XCLASS) in pcre2_printint()
697 extra = GET(code, 1); in pcre2_printint()
698 ccode = code + LINK_SIZE + 1; in pcre2_printint()
710 ccode = code + 1; in pcre2_printint()
753 if (*code == OP_XCLASS) in pcre2_printint()
813 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre2_printint()
860 fprintf(f, " %s ", OP_names[*code]); in pcre2_printint()
861 print_custring_bylen(f, code + 2, code[1]); in pcre2_printint()
862 extra += code[1]; in pcre2_printint()
866 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
877 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
881 code += OP_lengths[*code] + extra; in pcre2_printint()