Lines Matching refs:code
15 * Redistributions of source code must retain the above copyright notice,
158 uschar *codestart, *code;
177 code = codestart = (uschar *)re + offset + count * size;
187 fprintf(f, "%3d ", (int)(code - codestart));
191 switch(*code)
213 fprintf(f, " %s\n", OP_names[*code]);
218 fprintf(f, " %.2x %s", code[1], OP_names[*code]);
225 code++;
226 code += 1 + print_char(f, code, utf8);
228 while (*code == OP_CHAR);
236 code++;
237 code += 1 + print_char(f, code, utf8);
239 while (*code == OP_CHARNC);
245 if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
247 fprintf(f, "%s %d", OP_names[*code], GET2(code, 1+LINK_SIZE));
264 if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
266 fprintf(f, "%s", OP_names[*code]);
270 fprintf(f, " %s %d", OP_names[*code], GET2(code, 1));
275 fprintf(f, "%3d %s", GET2(code,1), OP_names[*code]);
279 c = GET2(code, 1);
287 c = GET2(code, 1);
317 if (*code >= OP_TYPESTAR)
319 fprintf(f, "%s", OP_names[code[1]]);
320 if (code[1] == OP_PROP || code[1] == OP_NOTPROP)
322 fprintf(f, " %s ", get_ucpname(code[2], code[3]));
326 else extra = print_char(f, code+1, utf8);
327 fprintf(f, "%s", OP_names[*code]);
335 extra = print_char(f, code+3, utf8);
337 if (*code != OP_EXACT) fprintf(f, "0,");
338 fprintf(f, "%d}", GET2(code,1));
339 if (*code == OP_MINUPTO) fprintf(f, "?");
340 else if (*code == OP_POSUPTO) fprintf(f, "+");
347 fprintf(f, " %s", OP_names[code[3]]);
348 if (code[3] == OP_PROP || code[3] == OP_NOTPROP)
350 fprintf(f, " %s ", get_ucpname(code[4], code[5]));
354 if (*code != OP_TYPEEXACT) fprintf(f, "0,");
355 fprintf(f, "%d}", GET2(code,1));
356 if (*code == OP_TYPEMINUPTO) fprintf(f, "?");
357 else if (*code == OP_TYPEPOSUPTO) fprintf(f, "+");
361 c = code[1];
375 c = code[1];
378 fprintf(f, "%s", OP_names[*code]);
385 c = code[3];
388 if (*code != OP_NOTEXACT) fprintf(f, "0,");
389 fprintf(f, "%d}", GET2(code,1));
390 if (*code == OP_NOTMINUPTO) fprintf(f, "?");
391 else if (*code == OP_NOTPOSUPTO) fprintf(f, "+");
395 if (print_lengths) fprintf(f, "%3d ", GET(code, 1));
397 fprintf(f, "%s", OP_names[*code]);
401 fprintf(f, " \\%d", GET2(code,1));
402 ccode = code + _pcre_OP_lengths[*code];
406 fprintf(f, " %s %d %d %d", OP_names[*code], code[1], GET(code,2),
407 GET(code, 2 + LINK_SIZE));
412 fprintf(f, " %s %s", OP_names[*code], get_ucpname(code[1], code[2]));
416 having this code always here, and it makes it less messy without all those
428 if (*code == OP_XCLASS)
430 extra = GET(code, 1);
431 ccode = code + LINK_SIZE + 1;
438 ccode = code + 1;
470 if (*code == OP_XCLASS)
501 fprintf(f, "]%s", (*code == OP_NCLASS)? " (neg)" : "");
528 /* Do nothing if it's not a repeat; this code stops picky compilers
529 warning about the lack of a default code path. */
540 fprintf(f, " %s %s", OP_names[*code], code + 2);
541 extra += code[1];
546 fprintf(f, " %s %d", OP_names[*code], GET(code, 1));
548 fprintf(f, " %s", OP_names[*code]);
553 fprintf(f, " %s %d %s", OP_names[*code], GET(code, 1),
554 code + 2 + LINK_SIZE);
556 fprintf(f, " %s %s", OP_names[*code], code + 2 + LINK_SIZE);
557 extra += code[1+LINK_SIZE];
563 fprintf(f, " %s", OP_names[*code]);
567 code += _pcre_OP_lengths[*code] + extra;