Lines Matching refs:code

264 print_prop(FILE *f, pcre_uchar *code, const char *before, const char *after)  in print_prop()  argument
266 if (code[1] != PT_CLIST) in print_prop()
268 fprintf(f, "%s%s %s%s", before, priv_OP_names[*code], get_ucpname(code[1], in print_prop()
269 code[2]), after); in print_prop()
273 const char *not = (*code == OP_PROP)? "" : "not "; in print_prop()
275 fprintf(f, "%s%sclist %d%s", before, not, code[2], after); in print_prop()
277 const pcre_uint32 *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
313 pcre_uchar *codestart, *code; in pcre_printint() local
332 code = codestart = (pcre_uchar *)re + offset + count * size; in pcre_printint()
344 fprintf(f, "%3d ", (int)(code - codestart)); in pcre_printint()
348 switch(*code) in pcre_printint()
365 fprintf(f, " %s\n", priv_OP_names[*code]); in pcre_printint()
373 code++; in pcre_printint()
374 code += 1 + print_char(f, code, utf); in pcre_printint()
376 while (*code == OP_CHAR); in pcre_printint()
384 code++; in pcre_printint()
385 code += 1 + print_char(f, code, utf); in pcre_printint()
387 while (*code == OP_CHARI); in pcre_printint()
395 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); 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()
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()
433 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + in pcre_printint()
437 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
442 c = GET2(code, 1); in pcre_printint()
451 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + in pcre_printint()
455 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
493 if (*code >= OP_TYPESTAR) in pcre_printint()
495 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) 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()
517 extra = print_char(f, code + 1 + IMM2_SIZE, utf); 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()
529 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) 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()
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()
547 extra = print_char(f, code + 1, utf); 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()
589 extra = print_char(f, code + 1 + IMM2_SIZE, utf); 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()
601 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
608 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre_printint()
609 ccode = code + priv_OP_lengths[*code]; in pcre_printint()
617 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + in pcre_printint()
621 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
623 ccode = code + priv_OP_lengths[*code]; in pcre_printint()
627 fprintf(f, " %s %d %d %d", priv_OP_names[*code], code[1], GET(code,2), in pcre_printint()
628 GET(code, 2 + LINK_SIZE)); in pcre_printint()
633 print_prop(f, code, " ", ""); in pcre_printint()
653 if (*code == OP_XCLASS) in pcre_printint()
655 extra = GET(code, 1); in pcre_printint()
656 ccode = code + LINK_SIZE + 1; in pcre_printint()
668 ccode = code + 1; in pcre_printint()
707 if (*code == OP_XCLASS) in pcre_printint()
763 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre_printint()
808 fprintf(f, " %s ", priv_OP_names[*code]); in pcre_printint()
809 print_puchar(f, code + 2); in pcre_printint()
810 extra += code[1]; 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()
829 code += priv_OP_lengths[*code] + extra; in pcre_printint()