Lines Matching refs:f

83 void pcre_printint(pcre *external_re, FILE *f, BOOL print_lengths);
85 void pcre16_printint(pcre *external_re, FILE *f, BOOL print_lengths);
87 void pcre32_printint(pcre *external_re, FILE *f, BOOL print_lengths);
118 print_char(FILE *f, pcre_uchar *ptr, BOOL utf) in print_char() argument
125 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
126 else if (c <= 0x80) fprintf(f, "\\x%02x", c); in print_char()
127 else fprintf(f, "\\x{%x}", c); in print_char()
136 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
137 else if (c < 0x80) fprintf(f, "\\x%02x", c); in print_char()
138 else fprintf(f, "\\x{%02x}", c); in print_char()
155 fprintf(f, "\\X{%x}", c); in print_char()
164 fprintf(f, "\\x{%x}", c); in print_char()
172 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
173 else if (c <= 0x80) fprintf(f, "\\x%02x", c); in print_char()
174 else fprintf(f, "\\x{%02x}", c); in print_char()
185 fprintf(f, "\\X{%x}", c); in print_char()
190 fprintf(f, "\\x{%x}", c); in print_char()
198 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
199 else if (c <= 0x80) fprintf(f, "\\x%02x", c); in print_char()
200 else fprintf(f, "\\x{%x}", c); in print_char()
208 fprintf(f, "\\X{%x}", c); in print_char()
222 print_puchar(FILE *f, PCRE_PUCHAR ptr) in print_puchar() argument
227 if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x{%x}", c); in print_puchar()
264 print_prop(FILE *f, pcre_uchar *code, const char *before, const char *after) in print_prop() argument
268 fprintf(f, "%s%s %s%s", before, priv_OP_names[*code], get_ucpname(code[1], in print_prop()
275 fprintf(f, "%s%sclist %d%s", before, not, code[2], after); in print_prop()
278 fprintf (f, "%s%sclist", before, not); in print_prop()
279 while (*p < NOTACHAR) fprintf(f, " %04x", *p++); in print_prop()
280 fprintf(f, "%s", after); in print_prop()
303 pcre_printint(pcre *external_re, FILE *f, BOOL print_lengths) in pcre_printint() argument
306 pcre16_printint(pcre *external_re, FILE *f, BOOL print_lengths) in pcre_printint()
309 pcre32_printint(pcre *external_re, FILE *f, BOOL print_lengths) in pcre_printint()
344 fprintf(f, "%3d ", (int)(code - codestart)); in pcre_printint()
346 fprintf(f, " "); in pcre_printint()
365 fprintf(f, " %s\n", priv_OP_names[*code]); in pcre_printint()
366 fprintf(f, "------------------------------------------------------------------\n"); in pcre_printint()
370 fprintf(f, " "); in pcre_printint()
374 code += 1 + print_char(f, code, utf); in pcre_printint()
377 fprintf(f, "\n"); in pcre_printint()
381 fprintf(f, " /i "); in pcre_printint()
385 code += 1 + print_char(f, code, utf); in pcre_printint()
388 fprintf(f, "\n"); in pcre_printint()
395 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre_printint()
396 else fprintf(f, " "); in pcre_printint()
397 fprintf(f, "%s %d", priv_OP_names[*code], GET2(code, 1+LINK_SIZE)); in pcre_printint()
418 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre_printint()
419 else fprintf(f, " "); in pcre_printint()
420 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
424 fprintf(f, " %s %d", priv_OP_names[*code], GET2(code, 1)); in pcre_printint()
428 fprintf(f, "%3d %s", GET2(code,1), priv_OP_names[*code]); in pcre_printint()
435 fprintf(f, " %s Cond ref <", flag); in pcre_printint()
436 print_puchar(f, entry); in pcre_printint()
437 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
444 fprintf(f, " Cond recurse any"); in pcre_printint()
446 fprintf(f, " Cond recurse %d", c); in pcre_printint()
453 fprintf(f, " %s Cond recurse <", flag); in pcre_printint()
454 print_puchar(f, entry); in pcre_printint()
455 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
460 fprintf(f, " Cond def"); in pcre_printint()
492 fprintf(f, " %s ", flag); in pcre_printint()
497 print_prop(f, code + 1, "", " "); in pcre_printint()
500 else fprintf(f, "%s", priv_OP_names[code[1]]); in pcre_printint()
502 else extra = print_char(f, code+1, utf); in pcre_printint()
503 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
516 fprintf(f, " %s ", flag); in pcre_printint()
517 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre_printint()
518 fprintf(f, "{"); in pcre_printint()
519 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre_printint()
520 fprintf(f, "%d}", GET2(code,1)); in pcre_printint()
521 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre_printint()
522 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre_printint()
531 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre_printint()
534 else fprintf(f, " %s", priv_OP_names[code[1 + IMM2_SIZE]]); in pcre_printint()
535 fprintf(f, "{"); in pcre_printint()
536 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre_printint()
537 fprintf(f, "%d}", GET2(code,1)); in pcre_printint()
538 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre_printint()
539 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre_printint()
546 fprintf(f, " %s [^", flag); in pcre_printint()
547 extra = print_char(f, code + 1, utf); in pcre_printint()
548 fprintf(f, "]"); in pcre_printint()
572 fprintf(f, " %s [^", flag); in pcre_printint()
573 extra = print_char(f, code + 1, utf); in pcre_printint()
574 fprintf(f, "]%s", priv_OP_names[*code]); in pcre_printint()
588 fprintf(f, " %s [^", flag); in pcre_printint()
589 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre_printint()
590 fprintf(f, "]{"); in pcre_printint()
591 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre_printint()
592 fprintf(f, "%d}", GET2(code,1)); in pcre_printint()
593 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre_printint()
595 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre_printint()
599 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre_printint()
600 else fprintf(f, " "); in pcre_printint()
601 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
608 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre_printint()
619 fprintf(f, " %s \\k<", flag); in pcre_printint()
620 print_puchar(f, entry); in pcre_printint()
621 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
627 fprintf(f, " %s %d %d %d", priv_OP_names[*code], code[1], GET(code,2), in pcre_printint()
633 print_prop(f, code, " ", ""); in pcre_printint()
651 fprintf(f, " ["); in pcre_printint()
661 fprintf(f, "^"); in pcre_printint()
689 if (i == '-' || i == ']') fprintf(f, "\\"); in pcre_printint()
690 if (PRINTABLE(i)) fprintf(f, "%c", i); in pcre_printint()
691 else fprintf(f, "\\x%02x", i); in pcre_printint()
694 if (j != i + 1) fprintf(f, "-"); in pcre_printint()
695 if (j == '-' || j == ']') fprintf(f, "\\"); in pcre_printint()
696 if (PRINTABLE(j)) fprintf(f, "%c", j); in pcre_printint()
697 else fprintf(f, "\\x%02x", j); in pcre_printint()
730 fprintf(f, "[:%sgraph:]", notch); in pcre_printint()
734 fprintf(f, "[:%sprint:]", notch); in pcre_printint()
738 fprintf(f, "[:%spunct:]", notch); in pcre_printint()
742 fprintf(f, "\\%c{%s}", (not? 'P':'p'), in pcre_printint()
750 ccode += 1 + print_char(f, ccode, utf); in pcre_printint()
753 fprintf(f, "-"); in pcre_printint()
754 ccode += 1 + print_char(f, ccode, utf); in pcre_printint()
763 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre_printint()
779 fprintf(f, "%s", priv_OP_names[*ccode]); in pcre_printint()
788 if (max == 0) fprintf(f, "{%u,}", min); in pcre_printint()
789 else fprintf(f, "{%u,%u}", min, max); in pcre_printint()
790 if (*ccode == OP_CRMINRANGE) fprintf(f, "?"); in pcre_printint()
791 else if (*ccode == OP_CRPOSRANGE) fprintf(f, "+"); in pcre_printint()
808 fprintf(f, " %s ", priv_OP_names[*code]); in pcre_printint()
809 print_puchar(f, code + 2); in pcre_printint()
814 fprintf(f, " %s", priv_OP_names[*code]); in pcre_printint()
825 fprintf(f, " %s %s", flag, priv_OP_names[*code]); in pcre_printint()
830 fprintf(f, "\n"); in pcre_printint()