Home | History | Annotate | Download | only in src

Lines Matching defs:in

7 and native z/OS systems it can recurse into directories, and in z/OS it can
10 Note that for native z/OS, in addition to defining the NATIVE_ZOS macro, an
11 additional header is required. That header is not included in the main PCRE2
13 The header can be found in the special z/OS distribution, which is available
19 Redistribution and use in source and binary forms, with or without
25 * Redistributions in binary form must reproduce the above copyright
26 notice, this list of conditions and the following disclaimer in the
36 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
40 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
42 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
125 /* In newer versions of gcc, with FORTIFY_SOURCE set (the default in some
241 /* Structure for list of file names (for -f and --{in,ex}clude-from) */
372 { OP_NODATA, N_NOJIT, NULL, "no-jit", "do not use just-in-time compiler optimization" },
384 { OP_NODATA, 'M', NULL, "multiline", "run in multiline mode" },
409 /* Table of names for newline types. Must be kept in step with the definitions
410 of PCRE2_NEWLINE_xx in pcre2.h. */
416 options. These set the 1, 2, and 4 bits in process_options, respectively. Note
589 /* However, z/OS needs the #include statements in this header */
591 /* That header is not included in the main PCRE distribution because
593 can be found in the special z/OS distribution, which is available
605 return 0; /* In the expectation that opening as a file will fail */
642 return 1; /* In the expectation that opening as a file will fail */
648 /************* Test for a terminal in z/OS **********/
649 /* isatty() does not work in a TSO environment, so always give FALSE.*/
683 /************* Directory scanning in Windows ***********/
786 /************* Test for regular file in Windows **********/
797 /************* Test for a terminal in Windows **********/
862 in their libraries, but can provide the same facility by this simple
909 printf("Search for PATTERN in each FILE or standard input." STDOUT_NL);
913 printf("Callout scripts in patterns are supported." STDOUT_NL);
915 printf("Callout scripts are not supported in this pcre2grep." STDOUT_NL);
921 printf("Files whose names end in .gz are read using zlib." STDOUT_NL);
925 printf("Files whose names end in .bz2 are read using bzlib2." STDOUT_NL);
1017 longop TRUE if option given in long form
1108 because there may be binary zeros embedded in the data.
1141 p current position in line
1154 default: /* Just in case */
1315 default: /* Just in case */
1408 and at the end of the file. The data in the line is written using fwrite() so
1448 is used multiple times for the same subject when colouring is enabled, in order
1486 FWRITE(matchptr, 1, slen, stderr); /* In case binary zero included */
1569 are ignored in case of a syntax error. */
1609 /* Must be a decimal number in parenthesis, e.g: (5) or (38) */
1780 be in the middle third most of the time, so the bottom third is available for
1814 FILE *in = NULL; /* Ensure initialized */
1826 of what we have. In the case of libz, a non-zipped .gz file will be read as a
1852 in = (FILE *)handle;
1853 if (is_file_tty(in)) input_line_buffered = TRUE;
1855 read_one_line(main_buffer, bufsize, in) :
1856 fread(main_buffer, 1, bufsize, in);
1873 files, endptr will be at the end of the buffer when we are in the middle of the
1889 of the subject string to pass to pcre2_match(). In multiline mode, it is the
1890 length remainder of the data in the buffer. Otherwise, it is the length of
1892 advance by the length of the next line. In multiline mode the PCRE2_FIRSTLINE
1893 option is used for compiling, so that any match is constrained to be in the
1966 /* We come back here after a match when show_only_matching is set, in order
1967 to find any further matches in the same line. This applies to
1973 than NOMATCH. This code is in a subroutine so that it can be re-used for
1975 match, set PCRE2_NOTEMPTY to disable any further matches of null strings in
2000 variable will be set true (it's false in all other cases). In this
2010 more lines in the file. */
2023 and then jump back to look for further matches in the same line. If we are
2024 in invert mode, however, nothing is printed and we do not restart - this
2077 /* Prepare to repeat to find the next match in the line. */
2084 in multiline mode), we are done with this line. */
2090 starting offset we have just used. In this case, start one character
2129 each line's data using fwrite() in case there are binary zeroes. */
2191 /* In multiline mode, we want to print to the end of the line in which
2250 /* In multiline mode, we may have already printed the complete line
2276 /* For a match in multiline inverted mode (which of course did not cause
2295 offset to the current line is maintained in filepos. */
2307 int add = read_one_line(ptr, bufsize - (int)(ptr - main_buffer), in);
2313 the current point is in the top 1/3 of the buffer, slide the buffer down by
2348 read_one_line(main_buffer + 2*bufthird, bufthird, in) :
2349 fread(main_buffer + 2*bufthird, 1, bufthird, in));
2420 FILE *in = NULL; /* Ensure initialized */
2474 /* Handle a PDS in separate code */
2481 /* Deal with regular files in the normal way below. These types are:
2597 in = fopen(pathname, "rb");
2598 handle = (void *)in;
2617 /* Close in an appropriate manner. */
2626 read failed. If the error indicates that the file isn't in fact bzipped, try
2653 fclose(in);
2824 fprintf(stderr, "pcre2grep: Error in regex in line %d of %s "
2830 fprintf(stderr, "pcre2grep: Error in %s regex at offset %d: %s\n",
2833 fprintf(stderr, "pcre2grep: Error in %s %s regex at offset %d: %s\n",
2903 on additional literal patterns if the original contains a newline. In the
2947 /* In Windows, stdout is set up as a text stream, which means that \n is
3007 Some options have variations in the long name spelling: specifically, we
3009 with Jeffrey Friedl and Larry Wall in preferring "regex" without the "p".
3010 These options are entered in the table as "regex(p)". Options can be in
3084 are not in the right form for putting in the option table because they use
3106 /* One-char options; many that have no data may be in a single argument; we
3122 fprintf(stderr, "pcre2grep: Unknown option letter '%c' in \"%s\"\n",
3129 /* Break out if this is the last character in the string; it's handled
3137 with other single-character options in the same string. */
3149 next character in the string. */
3157 something in the PCRE options. */
3166 either has a value or defaults to something. It cannot have data in a
3293 However, all three set show_only_matching because they display, each in their
3462 /* Read and compile the regular expressions that are provided in files. */
3557 /* After handling file-list, work through remaining arguments. Pass in the fact