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()
272 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after) in print_prop() argument
276 fprintf(f, "%s%s %s%s", before, OP_names[*code], get_ucpname(code[1], in print_prop()
283 fprintf (f, "%s%sclist", before, not); in print_prop()
284 while (*p < NOTACHAR) fprintf(f, " %04x", *p++); in print_prop()
285 fprintf(f, "%s", after); in print_prop()
308 pcre2_printint(pcre2_code *re, FILE *f, BOOL print_lengths) in pcre2_printint() argument
326 fprintf(f, "%3d ", (int)(code - codestart)); in pcre2_printint()
328 fprintf(f, " "); in pcre2_printint()
347 fprintf(f, " %s\n", OP_names[*code]); in pcre2_printint()
348 fprintf(f, "------------------------------------------------------------------\n"); in pcre2_printint()
352 fprintf(f, " "); in pcre2_printint()
356 code += 1 + print_char(f, code, utf); in pcre2_printint()
359 fprintf(f, "\n"); in pcre2_printint()
363 fprintf(f, " /i "); in pcre2_printint()
367 code += 1 + print_char(f, code, utf); in pcre2_printint()
370 fprintf(f, "\n"); in pcre2_printint()
377 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
378 else fprintf(f, " "); 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()
403 else fprintf(f, " "); 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()
418 fprintf(f, " %s Cond ref <", flag); in pcre2_printint()
419 print_custring(f, entry); in pcre2_printint()
420 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
427 fprintf(f, " Cond recurse any"); in pcre2_printint()
429 fprintf(f, " Cond recurse %d", c); in pcre2_printint()
435 fprintf(f, " %s Cond recurse <", flag); in pcre2_printint()
436 print_custring(f, entry); in pcre2_printint()
437 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
442 fprintf(f, " Cond false"); in pcre2_printint()
446 fprintf(f, " Cond true"); in pcre2_printint()
478 fprintf(f, " %s ", flag); 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()
503 fprintf(f, " %s ", flag); in pcre2_printint()
504 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
505 fprintf(f, "{"); 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()
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()
522 fprintf(f, "{"); 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()
533 fprintf(f, " %s [^", flag); in pcre2_printint()
534 extra = print_char(f, code + 1, utf); in pcre2_printint()
535 fprintf(f, "]"); in pcre2_printint()
559 fprintf(f, " %s [^", flag); in pcre2_printint()
560 extra = print_char(f, code + 1, utf); in pcre2_printint()
561 fprintf(f, "]%s", OP_names[*code]); in pcre2_printint()
575 fprintf(f, " %s [^", flag); in pcre2_printint()
576 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
577 fprintf(f, "]{"); 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()
587 else fprintf(f, " "); 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()
605 fprintf(f, " %s \\k<", flag); in pcre2_printint()
606 print_custring(f, entry); in pcre2_printint()
607 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
613 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
619 fprintf(f, " %s %c", OP_names[*code], c); 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()
634 print_prop(f, code, " ", ""); in pcre2_printint()
651 fprintf(f, " ["); in pcre2_printint()
661 fprintf(f, "^"); in pcre2_printint()
690 if (i == '-' || i == ']') fprintf(f, "\\"); in pcre2_printint()
691 if (PRINTABLE(i)) fprintf(f, "%c", i); in pcre2_printint()
692 else fprintf(f, "\\x%02x", i); in pcre2_printint()
695 if (j != i + 1) fprintf(f, "-"); in pcre2_printint()
696 if (j == '-' || j == ']') fprintf(f, "\\"); in pcre2_printint()
697 if (PRINTABLE(j)) fprintf(f, "%c", j); in pcre2_printint()
698 else fprintf(f, "\\x%02x", j); in pcre2_printint()
731 fprintf(f, "[:%sgraph:]", notch); in pcre2_printint()
735 fprintf(f, "[:%sprint:]", notch); in pcre2_printint()
739 fprintf(f, "[:%spunct:]", notch); in pcre2_printint()
743 fprintf(f, "\\%c{%s}", (not? 'P':'p'), in pcre2_printint()
751 ccode += 1 + print_char(f, ccode, utf); in pcre2_printint()
754 fprintf(f, "-"); in pcre2_printint()
755 ccode += 1 + print_char(f, ccode, utf); in pcre2_printint()
764 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre2_printint()
780 fprintf(f, "%s", OP_names[*ccode]); in pcre2_printint()
789 if (max == 0) fprintf(f, "{%u,}", min); in pcre2_printint()
790 else fprintf(f, "{%u,%u}", min, max); in pcre2_printint()
791 if (*ccode == OP_CRMINRANGE) fprintf(f, "?"); in pcre2_printint()
792 else if (*ccode == OP_CRPOSRANGE) fprintf(f, "+"); 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()
816 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
827 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
832 fprintf(f, "\n"); in pcre2_printint()