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()
399 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
401 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
405 fprintf(f, " %s %d", OP_names[*code], GET2(code, 1)); in pcre2_printint()
409 fprintf(f, "%3d %s", GET2(code,1), OP_names[*code]); in pcre2_printint()
414 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
417 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
422 c = GET2(code, 1); in pcre2_printint()
431 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
434 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
477 if (*code >= OP_TYPESTAR) in pcre2_printint()
479 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) in pcre2_printint()
481 print_prop(f, code + 1, "", " "); in pcre2_printint()
484 else fprintf(f, "%s", OP_names[code[1]]); in pcre2_printint()
486 else extra = print_char(f, code+1, utf); in pcre2_printint()
487 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
501 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
503 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre2_printint()
504 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
505 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre2_printint()
506 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre2_printint()
513 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in pcre2_printint()
515 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre2_printint()
518 else fprintf(f, " %s", OP_names[code[1 + IMM2_SIZE]]); in pcre2_printint()
520 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre2_printint()
521 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
522 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre2_printint()
523 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre2_printint()
531 extra = print_char(f, code + 1, utf); in pcre2_printint()
557 extra = print_char(f, code + 1, utf); in pcre2_printint()
558 fprintf(f, "]%s", OP_names[*code]); in pcre2_printint()
573 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
575 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre2_printint()
576 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
577 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre2_printint()
579 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre2_printint()
583 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
585 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
592 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre2_printint()
593 ccode = code + OP_lengths[*code]; in pcre2_printint()
601 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
604 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
606 ccode = code + OP_lengths[*code]; in pcre2_printint()
610 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
611 GET(code, 1), GET(code, 1 + LINK_SIZE)); in pcre2_printint()
615 c = code[1 + 4*LINK_SIZE]; in pcre2_printint()
616 fprintf(f, " %s %c", OP_names[*code], c); in pcre2_printint()
617 extra = GET(code, 1 + 2*LINK_SIZE); in pcre2_printint()
618 print_custring_bylen(f, code + 2 + 4*LINK_SIZE, extra - 3 - 4*LINK_SIZE); in pcre2_printint()
625 fprintf(f, "%c %d %d %d", c, GET(code, 1 + 3*LINK_SIZE), GET(code, 1), in pcre2_printint()
626 GET(code, 1 + LINK_SIZE)); in pcre2_printint()
631 print_prop(f, code, " ", ""); in pcre2_printint()
650 if (*code == OP_XCLASS) in pcre2_printint()
652 extra = GET(code, 1); in pcre2_printint()
653 ccode = code + LINK_SIZE + 1; in pcre2_printint()
665 ccode = code + 1; in pcre2_printint()
704 if (*code == OP_XCLASS) in pcre2_printint()
760 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre2_printint()
806 fprintf(f, " %s ", OP_names[*code]); in pcre2_printint()
807 print_custring_bylen(f, code + 2, code[1]); in pcre2_printint()
808 extra += code[1]; in pcre2_printint()
812 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
823 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
827 code += OP_lengths[*code] + extra; in pcre2_printint()