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 char *not = (*code == OP_PROP)? "" : "not "; in print_prop()
313 const uint32_t *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
341 PCRE2_SPTR codestart, nametable, code; in pcre2_printint() local
346 code = codestart = nametable + re->name_count * re->name_entry_size; in pcre2_printint()
357 fprintf(f, "%3d ", (int)(code - codestart)); in pcre2_printint()
361 switch(*code) in pcre2_printint()
378 fprintf(f, " %s\n", OP_names[*code]); in pcre2_printint()
386 code++; in pcre2_printint()
387 code += 1 + print_char(f, code, utf); in pcre2_printint()
389 while (*code == OP_CHAR); in pcre2_printint()
397 code++; in pcre2_printint()
398 code += 1 + print_char(f, code, utf); in pcre2_printint()
400 while (*code == OP_CHARI); in pcre2_printint()
408 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
410 fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE)); in pcre2_printint()
433 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
435 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
439 fprintf(f, " %s %d", OP_names[*code], GET2(code, 1)); in pcre2_printint()
443 fprintf(f, "%3d %s", GET2(code,1), OP_names[*code]); in pcre2_printint()
448 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
451 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
456 c = GET2(code, 1); in pcre2_printint()
465 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
468 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
511 if (*code >= OP_TYPESTAR) in pcre2_printint()
513 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) in pcre2_printint()
515 print_prop(f, code + 1, "", " "); in pcre2_printint()
518 else fprintf(f, "%s", OP_names[code[1]]); in pcre2_printint()
520 else extra = print_char(f, code+1, utf); in pcre2_printint()
521 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
535 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
537 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre2_printint()
538 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
539 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre2_printint()
540 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre2_printint()
547 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in pcre2_printint()
549 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre2_printint()
552 else fprintf(f, " %s", OP_names[code[1 + IMM2_SIZE]]); in pcre2_printint()
554 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre2_printint()
555 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
556 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre2_printint()
557 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre2_printint()
565 extra = print_char(f, code + 1, utf); in pcre2_printint()
591 extra = print_char(f, code + 1, utf); in pcre2_printint()
592 fprintf(f, "]%s", OP_names[*code]); in pcre2_printint()
607 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
609 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre2_printint()
610 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
611 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre2_printint()
613 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre2_printint()
617 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
619 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
626 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre2_printint()
627 ccode = code + OP_lengths[*code]; in pcre2_printint()
635 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
638 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
640 ccode = code + OP_lengths[*code]; in pcre2_printint()
644 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
645 GET(code, 1), GET(code, 1 + LINK_SIZE)); in pcre2_printint()
649 c = code[1 + 4*LINK_SIZE]; in pcre2_printint()
650 fprintf(f, " %s %c", OP_names[*code], c); in pcre2_printint()
651 extra = GET(code, 1 + 2*LINK_SIZE); in pcre2_printint()
652 print_custring_bylen(f, code + 2 + 4*LINK_SIZE, extra - 3 - 4*LINK_SIZE); in pcre2_printint()
659 fprintf(f, "%c %d %d %d", c, GET(code, 1 + 3*LINK_SIZE), GET(code, 1), in pcre2_printint()
660 GET(code, 1 + LINK_SIZE)); in pcre2_printint()
665 print_prop(f, code, " ", ""); in pcre2_printint()
684 if (*code == OP_XCLASS) in pcre2_printint()
686 extra = GET(code, 1); in pcre2_printint()
687 ccode = code + LINK_SIZE + 1; in pcre2_printint()
699 ccode = code + 1; in pcre2_printint()
739 if (*code == OP_XCLASS) in pcre2_printint()
796 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre2_printint()
842 fprintf(f, " %s ", OP_names[*code]); in pcre2_printint()
843 print_custring_bylen(f, code + 2, code[1]); in pcre2_printint()
844 extra += code[1]; in pcre2_printint()
848 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
859 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
863 code += OP_lengths[*code] + extra; in pcre2_printint()