Lines Matching refs:code

307 print_prop(FILE *f, PCRE2_SPTR code, const char *before, const char *after)  in print_prop()  argument
309 if (code[1] != PT_CLIST) in print_prop()
311 const char *sc = (code[1] == PT_SC)? "script:" : ""; in print_prop()
312 const char *s = get_ucpname(code[1], code[2]); in print_prop()
313 fprintf(f, "%s%s %s%c%s%s", before, OP_names[*code], sc, toupper(s[0]), s+1, after); in print_prop()
317 const uint32_t *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
318 fprintf (f, "%s%sclist", before, (*code == OP_PROP)? "" : "not "); in print_prop()
338 print_char_list(FILE *f, PCRE2_SPTR code, const uint8_t *char_lists_end) in print_char_list() argument
346 type = (uint32_t)(code[0] << 8) | code[1]; in print_char_list()
347 code += 2; in print_char_list()
349 type = code[0]; in print_char_list()
350 code++; in print_char_list()
354 next_char = char_lists_end - (GET(code, 0) << 1); in print_char_list()
441 return code + LINK_SIZE; in print_char_list()
519 print_class(FILE *f, int type, PCRE2_SPTR code, const uint8_t *char_lists_end, in print_class() argument
529 ccode = code + LINK_SIZE; in print_class()
538 ccode = code; in print_class()
609 PCRE2_ASSERT(ccode == code + (GET(code, 0) - 1)); in print_class()
637 PCRE2_SPTR codestart, nametable, code; in pcre2_printint() local
642 code = codestart = (PCRE2_SPTR)((uint8_t *)re + re->code_start); in pcre2_printint()
653 fprintf(f, "%3d ", (int)(code - codestart)); in pcre2_printint()
657 switch(*code) in pcre2_printint()
660 fprintf(f, " %s\n", OP_names[*code]); in pcre2_printint()
668 code++; in pcre2_printint()
669 code += 1 + print_char(f, code, utf); in pcre2_printint()
671 while (*code == OP_CHAR); in pcre2_printint()
679 code++; in pcre2_printint()
680 code += 1 + print_char(f, code, utf); in pcre2_printint()
682 while (*code == OP_CHARI); in pcre2_printint()
690 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
692 fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE)); in pcre2_printint()
715 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
717 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
721 if (print_lengths) fprintf(f, "%3d ", GET2(code, 1)); in pcre2_printint()
723 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
727 if (print_lengths) fprintf(f, "%3d %d ", GET2(code, 1), in pcre2_printint()
728 GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
730 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
734 fprintf(f, " %s %d", OP_names[*code], GET2(code, 1)); in pcre2_printint()
738 fprintf(f, "%3d %s", GET2(code,1), OP_names[*code]); in pcre2_printint()
743 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
746 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
751 c = GET2(code, 1); in pcre2_printint()
760 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
763 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
806 if (*code >= OP_TYPESTAR) in pcre2_printint()
808 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) in pcre2_printint()
810 print_prop(f, code + 1, "", " "); in pcre2_printint()
813 else fprintf(f, "%s", OP_names[code[1]]); in pcre2_printint()
815 else extra = print_char(f, code+1, utf); in pcre2_printint()
816 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
830 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
832 if (*code != OP_EXACT && *code != OP_EXACTI) fprintf(f, "0,"); in pcre2_printint()
833 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
834 if (*code == OP_MINUPTO || *code == OP_MINUPTOI) fprintf(f, "?"); in pcre2_printint()
835 else if (*code == OP_POSUPTO || *code == OP_POSUPTOI) fprintf(f, "+"); in pcre2_printint()
842 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in pcre2_printint()
844 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre2_printint()
847 else fprintf(f, " %s", OP_names[code[1 + IMM2_SIZE]]); in pcre2_printint()
849 if (*code != OP_TYPEEXACT) fprintf(f, "0,"); in pcre2_printint()
850 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
851 if (*code == OP_TYPEMINUPTO) fprintf(f, "?"); in pcre2_printint()
852 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+"); in pcre2_printint()
860 extra = print_char(f, code + 1, utf); in pcre2_printint()
886 extra = print_char(f, code + 1, utf); in pcre2_printint()
887 fprintf(f, "]%s (not)", OP_names[*code]); in pcre2_printint()
902 extra = print_char(f, code + 1 + IMM2_SIZE, utf); in pcre2_printint()
904 if (*code != OP_NOTEXACT && *code != OP_NOTEXACTI) fprintf(f, "0,"); in pcre2_printint()
905 fprintf(f, "%d}", GET2(code,1)); in pcre2_printint()
906 if (*code == OP_NOTMINUPTO || *code == OP_NOTMINUPTOI) fprintf(f, "?"); in pcre2_printint()
908 if (*code == OP_NOTPOSUPTO || *code == OP_NOTPOSUPTOI) fprintf(f, "+"); in pcre2_printint()
913 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); in pcre2_printint()
915 fprintf(f, "%s", OP_names[*code]); in pcre2_printint()
920 extra = code[1 + IMM2_SIZE]; in pcre2_printint()
923 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre2_printint()
925 ccode = code + OP_lengths[*code]; in pcre2_printint()
930 extra = code[1 + 2*IMM2_SIZE]; in pcre2_printint()
934 PCRE2_SPTR entry = nametable + (GET2(code, 1) * nesize) + IMM2_SIZE; in pcre2_printint()
937 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre2_printint()
940 ccode = code + OP_lengths[*code]; in pcre2_printint()
944 fprintf(f, " %s %d %d %d", OP_names[*code], code[1 + 2*LINK_SIZE], in pcre2_printint()
945 GET(code, 1), GET(code, 1 + LINK_SIZE)); in pcre2_printint()
949 c = code[1 + 4*LINK_SIZE]; in pcre2_printint()
950 fprintf(f, " %s %c", OP_names[*code], c); in pcre2_printint()
951 extra = GET(code, 1 + 2*LINK_SIZE); in pcre2_printint()
952 print_custring_bylen(f, code + 2 + 4*LINK_SIZE, extra - 3 - 4*LINK_SIZE); in pcre2_printint()
959 fprintf(f, "%c %d %d %d", c, GET(code, 1 + 3*LINK_SIZE), GET(code, 1), in pcre2_printint()
960 GET(code, 1 + LINK_SIZE)); in pcre2_printint()
965 print_prop(f, code, " ", ""); in pcre2_printint()
970 extra = GET(code, 1); in pcre2_printint()
973 ccode = code + 1 + LINK_SIZE + 1; in pcre2_printint()
988 while (ccode < code + extra) in pcre2_printint()
1034 if (*code == OP_XCLASS) in pcre2_printint()
1035 extra = GET(code, 1); in pcre2_printint()
1037 print_class(f, *code, code+1, (uint8_t*)codestart, utf, " ", ""); in pcre2_printint()
1038 ccode = code + OP_lengths[*code] + extra; in pcre2_printint()
1085 fprintf(f, " %s ", OP_names[*code]); in pcre2_printint()
1086 print_custring_bylen(f, code + 2, code[1]); in pcre2_printint()
1087 extra += code[1]; in pcre2_printint()
1091 fprintf(f, " %s", OP_names[*code]); in pcre2_printint()
1102 fprintf(f, " %s %s", flag, OP_names[*code]); in pcre2_printint()
1106 code += OP_lengths[*code] + extra; in pcre2_printint()