Lines Matching refs:code
262 print_prop(FILE *f, pcre_uchar *code, const char *before, const char *after) in print_prop() argument
264 if (code[1] != PT_CLIST) in print_prop()
266 fprintf(f, "%s%s %s%s", before, priv_OP_names[*code], get_ucpname(code[1], in print_prop()
267 code[2]), after); in print_prop()
271 const char *not = (*code == OP_PROP)? "" : "not "; in print_prop()
273 fprintf(f, "%s%sclist %d%s", before, not, code[2], after); in print_prop()
275 const pcre_uint32 *p = PRIV(ucd_caseless_sets) + code[2]; in print_prop()
311 pcre_uchar *codestart, *code; in pcre_printint() local
330 code = codestart = (pcre_uchar *)re + offset + count * size; in pcre_printint()
342 fprintf(f, "%3d ", (int)(code - codestart)); in pcre_printint()
346 switch(*code) in pcre_printint()
363 fprintf(f, " %s\n", priv_OP_names[*code]); in pcre_printint()
371 code++; in pcre_printint()
372 code += 1 + print_char(f, code, utf); in pcre_printint()
374 while (*code == OP_CHAR); in pcre_printint()
382 code++; in pcre_printint()
383 code += 1 + print_char(f, code, utf); in pcre_printint()
385 while (*code == OP_CHARI); in pcre_printint()
393 if (print_lengths) fprintf(f, "%3d ", GET(code, 1)); 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()
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()
431 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + in pcre_printint()
435 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
440 c = GET2(code, 1); in pcre_printint()
449 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + in pcre_printint()
453 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
491 if (*code >= OP_TYPESTAR) in pcre_printint()
493 if (code[1] == OP_PROP || code[1] == OP_NOTPROP) in pcre_printint()
495 print_prop(f, code + 1, "", " "); in pcre_printint()
498 else fprintf(f, "%s", priv_OP_names[code[1]]); in pcre_printint()
500 else extra = print_char(f, code+1, utf); in pcre_printint()
501 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
515 extra = print_char(f, code + 1 + IMM2_SIZE, utf); 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()
527 if (code[1 + IMM2_SIZE] == OP_PROP || code[1 + IMM2_SIZE] == OP_NOTPROP) in pcre_printint()
529 print_prop(f, code + IMM2_SIZE + 1, " ", " "); in pcre_printint()
532 else fprintf(f, " %s", priv_OP_names[code[1 + IMM2_SIZE]]); 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()
545 extra = print_char(f, code + 1, utf); in pcre_printint()
571 extra = print_char(f, code + 1, utf); in pcre_printint()
572 fprintf(f, "]%s", priv_OP_names[*code]); in pcre_printint()
587 extra = print_char(f, code + 1 + IMM2_SIZE, utf); 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()
599 fprintf(f, "%s", priv_OP_names[*code]); in pcre_printint()
606 fprintf(f, " %s \\%d", flag, GET2(code,1)); in pcre_printint()
607 ccode = code + priv_OP_lengths[*code]; in pcre_printint()
615 pcre_uchar *entry = (pcre_uchar *)re + offset + (GET2(code, 1) * size) + in pcre_printint()
619 fprintf(f, ">%d", GET2(code, 1 + IMM2_SIZE)); in pcre_printint()
621 ccode = code + priv_OP_lengths[*code]; in pcre_printint()
625 fprintf(f, " %s %d %d %d", priv_OP_names[*code], code[1], GET(code,2), in pcre_printint()
626 GET(code, 2 + LINK_SIZE)); in pcre_printint()
631 print_prop(f, code, " ", ""); in pcre_printint()
651 if (*code == OP_XCLASS) in pcre_printint()
653 extra = GET(code, 1); in pcre_printint()
654 ccode = code + LINK_SIZE + 1; in pcre_printint()
666 ccode = code + 1; in pcre_printint()
705 if (*code == OP_XCLASS) in pcre_printint()
761 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : ""); in pcre_printint()
806 fprintf(f, " %s ", priv_OP_names[*code]); in pcre_printint()
807 print_puchar(f, code + 2); in pcre_printint()
808 extra += code[1]; 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()
827 code += priv_OP_lengths[*code] + extra; in pcre_printint()