Lines Matching full:outfile
289 #define PCRE_PRINTINT8(re, outfile, debug_lengths) \
290 pcre_printint(re, outfile, debug_lengths)
383 #define PCRE_PRINTINT16(re, outfile, debug_lengths) \
384 pcre16_printint(re, outfile, debug_lengths)
475 #define PCRE_PRINTINT32(re, outfile, debug_lengths) \
476 pcre32_printint(re, outfile, debug_lengths)
703 #define PCRE_PRINTINT(re, outfile, debug_lengths) \
705 PCRE_PRINTINT32(re, outfile, debug_lengths); \
707 PCRE_PRINTINT16(re, outfile, debug_lengths); \
709 PCRE_PRINTINT8(re, outfile, debug_lengths)
898 #define PCRE_PRINTINT(re, outfile, debug_lengths) \
900 G(PCRE_PRINTINT,BITONE)(re, outfile, debug_lengths); \
902 G(PCRE_PRINTINT,BITTWO)(re, outfile, debug_lengths)
1033 static FILE *outfile;
2164 fprintf(outfile, "no parentheses with name \"");
2165 PCHARSV(*pp, 0, -1, outfile);
2166 fprintf(outfile, "\"\n");
2192 fprintf(outfile, "no parentheses with name \"");
2193 PCHARSV(*pp, 0, -1, outfile);
2194 fprintf(outfile, "\"\n");
2219 fprintf(outfile, "no parentheses with name \"");
2220 PCHARSV(*pp, 0, -1, outfile);
2221 fprintf(outfile, "\"\n");
2252 FILE *f = (first_callout | callout_extra)? outfile : NULL;
2299 fprintf(outfile, "%+3d ", cb->pattern_position);
2300 if (cb->pattern_position > 99) fprintf(outfile, "\n ");
2304 if (callout_extra) fprintf(outfile, " ");
2305 else fprintf(outfile, "%3d ", cb->callout_number);
2308 for (i = 0; i < pre_start; i++) fprintf(outfile, " ");
2309 fprintf(outfile, "^");
2313 for (i = 0; i < post_start - 1; i++) fprintf(outfile, " ");
2314 fprintf(outfile, "^");
2318 fprintf(outfile, " ");
2320 fprintf(outfile, "%.*s", (cb->next_item_length == 0)? 1 : cb->next_item_length,
2323 fprintf(outfile, "\n");
2329 fprintf(outfile, "Latest Mark: <unset>\n");
2332 fprintf(outfile, "Latest Mark: ");
2333 PCHARSV(cb->mark, 0, -1, outfile);
2334 putc('\n', outfile);
2344 fprintf(outfile, "Callout data = %d\n", callout_data);
2366 fprintf(outfile, "malloc %3d %p\n", (int)size, block);
2373 fprintf(outfile, "free %p\n", block);
2383 fprintf(outfile, "stack_malloc %3d %p\n", (int)size, block);
2390 fprintf(outfile, "stack_free %p\n", block);
2438 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc,
2441 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in "
2815 /* fprintf(outfile, "Testing %s limit = %d\n", msg, mid); */
2825 fprintf(outfile, "Minimum %s limit = %d\n", msg, mid);
2828 /* fprintf(outfile, "Testing %s limit = %d\n", msg, mid); */
3055 /* The outfile variable is static so that new_malloc can use it. */
3057 outfile = stdout;
3415 outfile = fopen(argv[op+1], OUTPUT_MODE);
3416 if (outfile == NULL)
3449 if (!quiet) fprintf(outfile, "PCRE version %s\n\n", version);
3493 if (infile != stdin) fprintf(outfile, "%s", (char *)buffer);
3494 fflush(outfile);
3547 fprintf(outfile, "Failed to open %s: %s\n", p, strerror(errno));
3576 fprintf(outfile, "Data in %s is not a compiled PCRE regex\n", p);
3584 fprintf(outfile, "Compiled pattern%s loaded from %s\n",
3602 fprintf(outfile, "Failed to read data from %s\n", p);
3611 fprintf(outfile, "Study data loaded from %s\n", p);
3614 else fprintf(outfile, "No study data\n");
3629 fprintf(outfile, "Error %d from pcre%s_fullinfo(%d)\n", rc,
3632 fprintf(outfile, "Running in %d-bit mode but pattern was compiled in "
3661 fprintf(outfile, "** Delimiter must not be alphanumeric or \\\n");
3679 fprintf(outfile, "** Unexpected EOF\n");
3683 if (infile != stdin) fprintf(outfile, "%s", (char *)pp);
3720 int x = check_mc_option(pp+1, outfile, FALSE, "modifier");
3727 int y = check_mc_option(ppp+1, outfile, FALSE, "modifier");
3800 fprintf(outfile, "** Missing 0 or 1 after /Q\n");
3864 fprintf(outfile, "** Missing table number after /T\n");
3868 fprintf(outfile, "** Bad table number \"%c\" after /T\n", pp[-1]);
3881 fprintf(outfile, "** Failed to set locale \"%s\"\n", pp);
3898 int x = check_mc_option(pp, outfile, FALSE, "modifier");
3911 fprintf(outfile, "** Unknown modifier '%c'\n", pp[-1]);
3942 fprintf(outfile, "Failed: POSIX code %d: %s\n", rc, buffer);
3961 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be "
3966 fprintf(outfile, "**Failed: character value greater than 0x10ffff "
3971 fprintf(outfile, "**Failed: character value greater than 0xffff "
3988 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be "
3993 fprintf(outfile, "**Failed: character value greater than 0x10ffff "
3998 fprintf(outfile, "**Failed: character value is ill-formed UTF-32\n");
4021 fprintf(outfile, "Compile time %.4f milliseconds\n",
4033 fprintf(outfile, "Failed: %s at offset %d\n", error, erroroffset);
4048 fprintf(outfile, "\n");
4088 fprintf(outfile, "Memory allocation (code space): %d\n",
4113 fprintf(outfile, " Study time %.4f milliseconds\n",
4119 fprintf(outfile, "Failed to study: %s\n", error);
4128 fprintf(outfile, "Memory allocation (JIT code): %d\n", (int)jitsize);
4152 fprintf(outfile, "------------------------------------------------------------------\n");
4153 PCRE_PRINTINT(re, outfile, debug_lengths);
4185 fprintf(outfile, "Capturing subpattern count = %d\n", count);
4188 fprintf(outfile, "Max back reference = %d\n", backrefmax);
4191 fprintf(outfile, "Max lookbehind = %d\n", maxlookbehind);
4194 fprintf(outfile, "Match limit = %u\n", match_limit);
4197 fprintf(outfile, "Recursion limit = %u\n", recursion_limit);
4201 fprintf(outfile, "Named capturing subpatterns:\n");
4206 fprintf(outfile, " ");
4207 PCHARSV(nametable, imm2_size, length, outfile);
4208 while (length++ < nameentrysize - imm2_size) putc(' ', outfile);
4211 fprintf(outfile, "%3d\n", (int)(((PCRE_SPTR32)nametable)[0]));
4215 fprintf(outfile, "%3d\n", (int)(((PCRE_SPTR16)nametable)[0]));
4219 fprintf(outfile, "%3d\n", ((int)nametable[0] << 8) | (int)nametable[1]);
4225 if (!okpartial) fprintf(outfile, "Partial matching not supported\n");
4226 if (hascrorlf) fprintf(outfile, "Contains explicit CR or LF match\n");
4227 if (match_empty) fprintf(outfile, "May match empty string\n");
4232 if (get_options == 0) fprintf(outfile, "No options\n");
4233 else fprintf(outfile, "Options:%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
4254 if (jchanged) fprintf(outfile, "Duplicate name status changes\n");
4259 fprintf(outfile, "Forced newline sequence: CR\n");
4263 fprintf(outfile, "Forced newline sequence: LF\n");
4267 fprintf(outfile, "Forced newline sequence: CRLF\n");
4271 fprintf(outfile, "Forced newline sequence: ANYCRLF\n");
4275 fprintf(outfile, "Forced newline sequence: ANY\n");
4284 fprintf(outfile, "First char at start or follows newline\n");
4293 fprintf(outfile, "First char = \'%c\'%s\n", first_char, caseless);
4296 fprintf(outfile, "First char = ");
4297 pchar(first_char, outfile);
4298 fprintf(outfile, "%s\n", caseless);
4303 fprintf(outfile, "No first char\n");
4308 fprintf(outfile, "No need char\n");
4317 fprintf(outfile, "Need char = \'%c\'%s\n", need_char, caseless);
4320 fprintf(outfile, "Need char = ");
4321 pchar(need_char, outfile);
4322 fprintf(outfile, "%s\n", caseless);
4337 fprintf(outfile, "Study returned NULL\n");
4344 fprintf(outfile, "Subject length lower bound = %d\n", minlength);
4349 fprintf(outfile, "No starting char list\n");
4354 fprintf(outfile, "Starting chars: ");
4361 fprintf(outfile, "\n ");
4366 fprintf(outfile, "%c ", i);
4371 fprintf(outfile, "\\x%02x ", i);
4376 fprintf(outfile, "\n");
4390 fprintf(outfile, "JIT study was successful\n");
4393 fprintf(outfile, "JIT study was not successful\n");
4395 fprintf(outfile, "JIT support is not available in this version of PCRE\n");
4411 fprintf(outfile, "Unable to open %s: %s\n", to_file, strerror(errno));
4430 fprintf(outfile, "Write error on %s: %s\n", to_file, strerror(errno));
4434 fprintf(outfile, "Compiled pattern written to %s\n", to_file);
4443 fprintf(outfile, "Write error on %s: %s\n", to_file,
4446 else fprintf(outfile, "Study data written to %s\n", to_file);
4533 fprintf(outfile, "\n");
4539 if (infile != stdin) fprintf(outfile, "%s", (char *)buffer);
4564 fprintf(outfile, "**Failed: invalid UTF-8 string cannot be used as input in UTF mode\n");
4648 fprintf(outfile, "** Too many octal digits in \\o{...} item; "
4653 else fprintf(outfile, "** Missing } after \\o{ (assumed)\n");
4671 fprintf(outfile, "** Too many hex digits in \\x{...} item; "
4899 int x = check_mc_option(p, outfile, TRUE, "escape sequence");
4920 fprintf(outfile, "** Character \\x{%x} is greater than 0x7fffffff "
4931 fprintf(outfile, "** Character \\x{%x} is greater than 255 "
4933 fprintf(outfile, "** Truncation will probably give the wrong "
4948 fprintf(outfile, "** Failed: character \\x{%x} is greater than "
4966 fprintf(outfile, "** Character \\x{%x} is greater than 0xffff "
4968 fprintf(outfile, "** Truncation will probably give the wrong "
5064 fprintf(outfile, "No match: POSIX code %d: %s\n", rc, buffer);
5068 fprintf(outfile, "Matched with REG_NOSUB\n");
5077 fprintf(outfile, "%2d: ", (int)i);
5079 pmatch[i].rm_eo - pmatch[i].rm_so, outfile);
5080 fprintf(outfile, "\n");
5083 fprintf(outfile, "%2d+ ", (int)i);
5085 outfile);
5086 fprintf(outfile, "\n");
5121 fprintf(outfile, "Timing DFA restarts is not supported\n");
5142 fprintf(outfile, "Execute time %.4f milliseconds\n",
5202 fprintf(outfile, "Matched, but offsets vector is too small to show all matches\n");
5214 fprintf(outfile, "Matched, but too many substrings\n");
5237 fprintf(outfile,
5243 fprintf(outfile, "** /%c loop abandoned\n", do_g? 'g' : 'G');
5267 fprintf(outfile, "ERROR: bad negative value %d for offset %d\n",
5270 fprintf(outfile, "ERROR: bad negative value %d for offset %d\n",
5272 fprintf(outfile, "%2d: <unset>\n", i/2);
5283 fprintf(outfile, "Start of matched string is beyond its end - "
5287 fprintf(outfile, "%2d: ", i/2);
5288 PCHARSV(bptr, start, end - start, outfile);
5289 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)");
5290 fprintf(outfile, "\n");
5297 fprintf(outfile, "%2d+ ", i/2);
5299 outfile);
5300 fprintf(outfile, "\n");
5307 fprintf(outfile, "MK: ");
5308 PCHARSV(markptr, 0, -1, outfile);
5309 fprintf(outfile, "\n");
5321 fprintf(outfile, "copy substring %d failed %d\n", i, rc);
5324 fprintf(outfile, "%2dC ", i);
5325 PCHARSV(copybuffer, 0, rc, outfile);
5326 fprintf(outfile, " (%d)\n", rc);
5361 fprintf(outfile, "copy substring ");
5362 PCHARSV(cnptr, 0, -1, outfile);
5363 fprintf(outfile, " failed %d\n", rc);
5367 fprintf(outfile, " C ");
5368 PCHARSV(copybuffer, 0, rc, outfile);
5369 fprintf(outfile, " (%d) ", rc);
5370 PCHARSV(cnptr, 0, -1, outfile);
5371 putc('\n', outfile);
5385 fprintf(outfile, "get substring %d failed %d\n", i, rc);
5388 fprintf(outfile, "%2dG ", i);
5389 PCHARSV(substring, 0, rc, outfile);
5390 fprintf(outfile, " (%d)\n", rc);
5425 fprintf(outfile, "get substring ");
5426 PCHARSV(gnptr, 0, -1, outfile);
5427 fprintf(outfile, " failed %d\n", rc);
5431 fprintf(outfile, " G ");
5432 PCHARSV(substring, 0, rc, outfile);
5433 fprintf(outfile, " (%d) ", rc);
5434 PCHARSV(gnptr, 0, -1, outfile);
5436 putc('\n', outfile);
5448 fprintf(outfile, "get substring list failed %d\n", rc);
5453 fprintf(outfile, "%2dL ", i);
5454 PCHARSV(stringlist[i], 0, -1, outfile);
5455 putc('\n', outfile
5458 fprintf(outfile, "string list not terminated by NULL\n");
5469 fprintf(outfile, "Partial match");
5471 fprintf(outfile, " at offset %d", use_offsets[2]);
5474 fprintf(outfile, ", mark=");
5475 PCHARSV(markptr, 0, -1, outfile);
5479 fprintf(outfile, ": ");
5481 outfile);
5483 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)");
5484 fprintf(outfile, "\n");
5564 fprintf(outfile, "No match");
5568 fprintf(outfile, "No match, mark = ");
5569 PCHARSV(markptr, 0, -1, outfile);
5571 if (verify_jit && jit_was_used) fprintf(outfile, " (JIT)");
5572 putc('\n', outfile);
5578 fprintf(outfile, "Error %d (%s UTF-%d string)", count,
5582 fprintf(outfile, " offset=%d reason=%d", use_offsets[0],
5584 fprintf(outfile, "\n");
5588 fprintf(outfile, "Error %d (bad UTF-%d offset)\n", count,
5595 fprintf(outfile, "Error %d (%s)\n", count, errtexts[-count]);
5597 fprintf(outfile, "Error %d (Unexpected value)\n", count);
5611 fprintf(outfile, "Cannot do global matching without an ovector\n");
5694 if (infile == stdin) fprintf(outfile, "\n");
5698 fprintf(outfile, "--------------------------------------\n");
5701 fprintf(outfile, "Total compile time %.4f milliseconds\n",
5704 fprintf(outfile, "Total study time %.4f milliseconds\n",
5708 fprintf(outfile, "Total execute time %.4f milliseconds\n",
5716 if (outfile != NULL && outfile != stdout) fclose(outfile);