Lines Matching refs:fprintf
123 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
124 else if (c <= 0x80) fprintf(f, "\\x%02x", c); in print_char()
125 else fprintf(f, "\\x{%x}", c); in print_char()
134 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
135 else if (c < 0x80) fprintf(f, "\\x%02x", c); in print_char()
136 else fprintf(f, "\\x{%02x}", c); in print_char()
153 fprintf(f, "\\X{%x}", c); in print_char()
162 fprintf(f, "\\x{%x}", c); in print_char()
170 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
171 else if (c <= 0x80) fprintf(f, "\\x%02x", c); in print_char()
172 else fprintf(f, "\\x{%02x}", c); in print_char()
183 fprintf(f, "\\X{%x}", c); in print_char()
188 fprintf(f, "\\x{%x}", c); in print_char()
196 if (PRINTABLE(c)) fprintf(f, "%c", (char)c); in print_char()
197 else if (c <= 0x80) fprintf(f, "\\x%02x", c); in print_char()
198 else fprintf(f, "\\x{%x}", c); in print_char()
206 fprintf(f, "\\X{%x}", c); in print_char()
225 if (PRINTABLE(c)) fprintf(f, "%c", c); else fprintf(f, "\\x{%x}", c); in print_puchar()
266 fprintf(f, "%s%s %s%s", before, priv_OP_names[*code], get_ucpname(code[1], in print_prop()
273 fprintf(f, "%s%sclist %d%s", before, not, code[2], after); in print_prop()
276 fprintf (f, "%s%sclist", before, not); in print_prop()
277 while (*p < NOTACHAR) fprintf(f, " %04x", *p++); in print_prop()
278 fprintf(f, "%s", after); in print_prop()
342 fprintf(f, "%3d ", (int)(code - codestart)); in pcre_printint()
344 fprintf(f, " "); in pcre_printint()
363 fprintf(f, " %s\n", priv_OP_names[*code]); in pcre_printint()
364 fprintf(f, "------------------------------------------------------------------\n"); in pcre_printint()
368 fprintf(f, " "); in pcre_printint()
375 fprintf(f, "\n"); in pcre_printint()
379 fprintf(f, " /i "); in pcre_printint()
386 fprintf(f, "\n"); in pcre_printint()
393 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre_printint()
394 else fprintf(f, " "); in pcre_printint()
395 fprintf(f, "%s %d", priv_OP_names[*code], GET2(code, 1+LINK_SIZE)); in pcre_printint()
416 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre_printint()
417 else fprintf(f, " "); in pcre_printint()
418 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
422 fprintf(f, " %s %d", priv_OP_names[*code], GET2(code, 1)); in pcre_printint()
426 fprintf(f, "%3d %s", GET2(code,1), priv_OP_names[*code]); in pcre_printint()
433 fprintf(f, " %s Cond ref <", flag); in pcre_printint()
435 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
442 fprintf(f, " Cond recurse any"); in pcre_printint()
444 fprintf(f, " Cond recurse %d", c); in pcre_printint()
451 fprintf(f, " %s Cond recurse <", flag); in pcre_printint()
453 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
458 fprintf(f, " Cond def"); in pcre_printint()
490 fprintf(f, " %s ", flag); in pcre_printint()
498 else fprintf(f, "%s", priv_OP_names[code[1]]); in pcre_printint()
501 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
514 fprintf(f, " %s ", flag); in pcre_printint()
516 fprintf(f, "{"); in pcre_printint()
517 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre_printint()
518 fprintf(f, "%d}", GET2(code,1)); in pcre_printint()
519 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre_printint()
520 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre_printint()
532 else fprintf(f, " %s", priv_OP_names[code[1 + IMM2_SIZE]]); in pcre_printint()
533 fprintf(f, "{"); in pcre_printint()
534 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre_printint()
535 fprintf(f, "%d}", GET2(code,1)); in pcre_printint()
536 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre_printint()
537 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre_printint()
544 fprintf(f, " %s [^", flag); in pcre_printint()
546 fprintf(f, "]"); in pcre_printint()
570 fprintf(f, " %s [^", flag); in pcre_printint()
572 fprintf(f, "]%s", priv_OP_names[*code]); in pcre_printint()
586 fprintf(f, " %s [^", flag); in pcre_printint()
588 fprintf(f, "]{"); in pcre_printint()
589 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre_printint()
590 fprintf(f, "%d}", GET2(code,1)); in pcre_printint()
591 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre_printint()
593 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre_printint()
597 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre_printint()
598 else fprintf(f, " "); in pcre_printint()
599 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
606 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre_printint()
617 fprintf(f, " %s \\k<", flag); in pcre_printint()
619 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
625 fprintf(f, " %s %d %d %d", priv_OP_names[*code], code[1], GET(code,2), in pcre_printint()
649 fprintf(f, " ["); in pcre_printint()
659 fprintf(f, "^"); in pcre_printint()
687 if (i == '-' || i == ']') fprintf(f, "\\"); in pcre_printint()
688 if (PRINTABLE(i)) fprintf(f, "%c", i); in pcre_printint()
689 else fprintf(f, "\\x%02x", i); in pcre_printint()
692 if (j != i + 1) fprintf(f, "-"); in pcre_printint()
693 if (j == '-' || j == ']') fprintf(f, "\\"); in pcre_printint()
694 if (PRINTABLE(j)) fprintf(f, "%c", j); in pcre_printint()
695 else fprintf(f, "\\x%02x", j); in pcre_printint()
728 fprintf(f, "[:%sgraph:]", notch); in pcre_printint()
732 fprintf(f, "[:%sprint:]", notch); in pcre_printint()
736 fprintf(f, "[:%spunct:]", notch); in pcre_printint()
740 fprintf(f, "\\%c{%s}", (not? 'P':'p'), in pcre_printint()
751 fprintf(f, "-"); in pcre_printint()
761 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre_printint()
777 fprintf(f, "%s", priv_OP_names[*ccode]); in pcre_printint()
786 if (max == 0) fprintf(f, "{%u,}", min); in pcre_printint()
787 else fprintf(f, "{%u,%u}", min, max); in pcre_printint()
788 if (*ccode == OP_CRMINRANGE) fprintf(f, "?"); in pcre_printint()
789 else if (*ccode == OP_CRPOSRANGE) fprintf(f, "+"); in pcre_printint()
806 fprintf(f, " %s ", priv_OP_names[*code]); in pcre_printint()
812 fprintf(f, " %s", priv_OP_names[*code]); in pcre_printint()
823 fprintf(f, " %s %s", flag, priv_OP_names[*code]); in pcre_printint()
828 fprintf(f, "\n"); in pcre_printint()