Lines Matching refs:f
92 print_char(FILE *f, PCRE2_SPTR ptr, BOOL utf) in print_char() argument
116 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
117 else if (c < 0x80) fprintf(f, "\\x%02x", c); in print_char()
118 else fprintf(f, "\\x{%02x}", c); in print_char()
137 fprintf(f, "\\X{%x}", c); /* Invalid starting byte */ in print_char()
150 fprintf(f, "\\X{%x}", c); /* Invalid secondary byte */ in print_char()
156 fprintf(f, "\\x{%x}", c); in print_char()
167 fprintf(f, "\\X{%x}", c); in print_char()
171 fprintf(f, "\\x{%x}", c); in print_char()
180 fprintf(f, "\\X{%x}", c); in print_char()
205 print_custring(FILE *f, PCRE2_SPTR ptr) in print_custring() argument
210 if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x{%x}", c); in print_custring()
215 print_custring_bylen(FILE *f, PCRE2_SPTR ptr, PCRE2_UCHAR len) in print_custring_bylen() argument
220 if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x{%x}", c); in print_custring_bylen()
302 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after) in print_prop() argument
308 fprintf(f, "%s%s %s%c%s%s", before, OP_names[*code], sc, toupper(s[0]), s+1, after); in print_prop()
314 fprintf (f, "%s%sclist", before, not); in print_prop()
315 while (*p < NOTACHAR) fprintf(f, " %04x", *p++); in print_prop()
316 fprintf(f, "%s", after); in print_prop()
339 pcre2_printint(pcre2_code *re, FILE *f, BOOL print_lengths) in pcre2_printint() argument
357 fprintf(f, "%3d ", (int)(code - codestart)); in pcre2_printint()
359 fprintf(f, " "); in pcre2_printint()
378 fprintf(f, " %s\n", OP_names[*code]); in pcre2_printint()
379 fprintf(f, "------------------------------------------------------------------\n"); in pcre2_printint()
383 fprintf(f, " "); in pcre2_printint()
387 code += 1 + print_char(f, code, utf); in pcre2_printint()
390 fprintf(f, "\n"); in pcre2_printint()
394 fprintf(f, " /i "); in pcre2_printint()
398 code += 1 + print_char(f, code, utf); in pcre2_printint()
401 fprintf(f, "\n"); in pcre2_printint()
408 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
409 else fprintf(f, " "); 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()
434 else fprintf(f, " "); 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()
449 fprintf(f, " %s Cond ref <", flag); in pcre2_printint()
450 print_custring(f, entry); in pcre2_printint()
451 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
458 fprintf(f, " Cond recurse any"); in pcre2_printint()
460 fprintf(f, " Cond recurse %d", c); in pcre2_printint()
466 fprintf(f, " %s Cond recurse <", flag); in pcre2_printint()
467 print_custring(f, entry); in pcre2_printint()
468 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
473 fprintf(f, " Cond false"); in pcre2_printint()
477 fprintf(f, " Cond true"); in pcre2_printint()
509 fprintf(f, " %s ", flag); 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()
534 fprintf(f, " %s ", flag); in pcre2_printint()
535 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
536 fprintf(f, "{"); 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()
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()
553 fprintf(f, "{"); 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()
564 fprintf(f, " %s [^", flag); in pcre2_printint()
565 extra = print_char(f, code + 1, utf); in pcre2_printint()
566 fprintf(f, "]"); in pcre2_printint()
590 fprintf(f, " %s [^", flag); in pcre2_printint()
591 extra = print_char(f, code + 1, utf); in pcre2_printint()
592 fprintf(f, "]%s", OP_names[*code]); in pcre2_printint()
606 fprintf(f, " %s [^", flag); in pcre2_printint()
607 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
608 fprintf(f, "]{"); 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()
618 else fprintf(f, " "); 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()
636 fprintf(f, " %s \\k<", flag); in pcre2_printint()
637 print_custring(f, entry); in pcre2_printint()
638 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
644 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
650 fprintf(f, " %s %c", OP_names[*code], c); 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()
665 print_prop(f, code, " ", ""); in pcre2_printint()
682 fprintf(f, " ["); in pcre2_printint()
692 fprintf(f, "^"); in pcre2_printint()
721 if (i == '-' || i == ']') fprintf(f, "\\"); in pcre2_printint()
722 if (PRINTABLE(i)) fprintf(f, "%c", i); in pcre2_printint()
723 else fprintf(f, "\\x%02x", i); in pcre2_printint()
726 if (j != i + 1) fprintf(f, "-"); in pcre2_printint()
727 if (j == '-' || j == ']') fprintf(f, "\\"); in pcre2_printint()
728 if (PRINTABLE(j)) fprintf(f, "%c", j); in pcre2_printint()
729 else fprintf(f, "\\x%02x", j); in pcre2_printint()
763 fprintf(f, "[:%sgraph:]", notch); in pcre2_printint()
767 fprintf(f, "[:%sprint:]", notch); in pcre2_printint()
771 fprintf(f, "[:%spunct:]", notch); in pcre2_printint()
776 fprintf(f, "\\%c{%c%s}", (not? 'P':'p'), toupper(s[0]), s+1); in pcre2_printint()
783 ccode += 1 + print_char(f, ccode, utf); in pcre2_printint()
786 fprintf(f, "-"); in pcre2_printint()
787 ccode += 1 + print_char(f, ccode, utf); in pcre2_printint()
796 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre2_printint()
812 fprintf(f, "%s", OP_names[*ccode]); in pcre2_printint()
821 if (max == 0) fprintf(f, "{%u,}", min); in pcre2_printint()
822 else fprintf(f, "{%u,%u}", min, max); in pcre2_printint()
823 if (*ccode == OP_CRMINRANGE) fprintf(f, "?"); in pcre2_printint()
824 else if (*ccode == OP_CRPOSRANGE) fprintf(f, "+"); 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()
848 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
859 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
864 fprintf(f, "\n"); in pcre2_printint()