NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions | Variables
pcregrep.c File Reference
#include <ctype.h>
#include <locale.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "pcre.h"
+ Include dependency graph for pcregrep.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  omstr
 
struct  omdatastr
 
struct  fnstr
 
struct  fndatastr
 
struct  patstr
 
struct  patdatastr
 
struct  option_item
 

Macros

#define FALSE   0
 
#define TRUE   1
 
#define OFFSET_SIZE   99
 
#define MAXPATLEN   8192
 
#define PATBUFSIZE   (MAXPATLEN + 10) /* Allows for prefix+suffix */
 
#define PO_WORD_MATCH   0x0001
 
#define PO_LINE_MATCH   0x0002
 
#define PO_FIXED_STRINGS   0x0004
 
#define FWRITE(a, b, c, d)   if (fwrite(a,b,c,d)) {}
 
#define N_COLOUR   (-1)
 
#define N_EXCLUDE   (-2)
 
#define N_EXCLUDE_DIR   (-3)
 
#define N_HELP   (-4)
 
#define N_INCLUDE   (-5)
 
#define N_INCLUDE_DIR   (-6)
 
#define N_LABEL   (-7)
 
#define N_LOCALE   (-8)
 
#define N_NULL   (-9)
 
#define N_LOFFSETS   (-10)
 
#define N_FOFFSETS   (-11)
 
#define N_LBUFFER   (-12)
 
#define N_M_LIMIT   (-13)
 
#define N_M_LIMIT_REC   (-14)
 
#define N_BUFSIZE   (-15)
 
#define N_NOJIT   (-16)
 
#define N_FILE_LIST   (-17)
 
#define N_BINARY_FILES   (-18)
 
#define N_EXCLUDE_FROM   (-19)
 
#define N_INCLUDE_FROM   (-20)
 
#define N_OM_SEPARATOR   (-21)
 
#define FILESEP   0
 

Typedefs

typedef int BOOL
 
typedef struct omstr omstr
 
typedef struct omdatastr omdatastr
 
typedef struct fnstr fnstr
 
typedef struct fndatastr fndatastr
 
typedef struct patstr patstr
 
typedef struct patdatastr patdatastr
 
typedef struct option_item option_item
 
typedef void directory_type
 

Enumerations

enum  {
  FN_NONE , FN_DEFAULT , FN_MATCH_ONLY , FN_NOMATCH_ONLY ,
  FN_FORCE
}
 
enum  { FR_PLAIN , FR_LIBZ , FR_LIBBZ2 }
 
enum  { dee_READ , dee_SKIP , dee_RECURSE }
 
enum  { DEE_READ , DEE_SKIP }
 
enum  {
  EL_LF , EL_CR , EL_CRLF , EL_ANY ,
  EL_ANYCRLF
}
 
enum  { BIN_BINARY , BIN_NOMATCH , BIN_TEXT }
 
enum  {
  OP_NODATA , OP_STRING , OP_OP_STRING , OP_NUMBER ,
  OP_LONGNUMBER , OP_OP_NUMBER , OP_OP_NUMBERS , OP_PATLIST ,
  OP_FILELIST , OP_BINFILES
}
 

Functions

static void pcregrep_exit (int rc)
 
static patstradd_pattern (char *s, patstr *after)
 
static void free_pattern_chain (patstr *pc)
 
static void free_file_chain (fnstr *fn)
 
int isdirectory (char *filename)
 
directory_typeopendirectory (char *filename)
 
char * readdirectory (directory_type *dir)
 
void closedirectory (directory_type *dir)
 
int isregfile (char *filename)
 
static BOOL is_stdout_tty (void)
 
static BOOL is_file_tty (FILE *f)
 
char * strerror (int n)
 
static int usage (int rc)
 
static void help (void)
 
static BOOL test_incexc (char *path, patstr *ip, patstr *ep)
 
static long int decode_number (char *option_data, option_item *op, BOOL longop)
 
static omstradd_number (int n, omstr *after)
 
static unsigned int read_one_line (char *buffer, int length, FILE *f)
 
static char * end_of_line (char *p, char *endptr, int *lenptr)
 
static char * previous_line (char *p, char *startptr)
 
static void do_after_lines (unsigned long int lastmatchnumber, char *lastmatchrestart, char *endptr, char *printname)
 
static BOOL match_patterns (char *matchptr, size_t length, unsigned int options, int startoffset, int *offsets, int *mrc)
 
static int pcregrep (void *handle, int frtype, char *filename, char *printname)
 
static int grep_or_recurse (char *pathname, BOOL dir_recurse, BOOL only_one_at_top)
 
static int handle_option (int letter, int options)
 
static char * ordin (int n)
 
static BOOL compile_pattern (patstr *p, int options, int popts, int fromfile, const char *fromtext, int count)
 
static BOOL read_pattern_file (char *name, patstr **patptr, patstr **patlastptr, int popts)
 
int main (int argc, char **argv)
 

Variables

static int endlinetype
 
static char * colour_string = (char *)"1;31"
 
static char * colour_option = NULL
 
static char * dee_option = NULL
 
static char * DEE_option = NULL
 
static char * locale = NULL
 
static char * main_buffer = NULL
 
static char * newline = NULL
 
static char * om_separator = (char *)""
 
static char * stdin_name = (char *)"(standard input)"
 
static const unsigned char * pcretables = NULL
 
static int after_context = 0
 
static int before_context = 0
 
static int binary_files = BIN_BINARY
 
static int both_context = 0
 
static int bufthird = PCREGREP_BUFSIZE
 
static int bufsize = 3*PCREGREP_BUFSIZE
 
static int dee_action = dee_READ
 
static int DEE_action = DEE_READ
 
static int error_count = 0
 
static int filenames = FN_DEFAULT
 
static int pcre_options = 0
 
static int process_options = 0
 
static int study_options = 0
 
static unsigned long int match_limit = 0
 
static unsigned long int match_limit_recursion = 0
 
static BOOL count_only = 0
 
static BOOL do_colour = 0
 
static BOOL file_offsets = 0
 
static BOOL hyphenpending = 0
 
static BOOL invert = 0
 
static BOOL line_buffered = 0
 
static BOOL line_offsets = 0
 
static BOOL multiline = 0
 
static BOOL number = 0
 
static BOOL omit_zero_count = 0
 
static BOOL resource_error = 0
 
static BOOL quiet = 0
 
static BOOL show_only_matching = 0
 
static BOOL silent = 0
 
static BOOL utf8 = 0
 
static omstronly_matching = NULL
 
static omstronly_matching_last = NULL
 
static omdatastr only_matching_data = { &only_matching, &only_matching_last }
 
static fnstrexclude_from = NULL
 
static fnstrexclude_from_last = NULL
 
static fnstrinclude_from = NULL
 
static fnstrinclude_from_last = NULL
 
static fnstrfile_lists = NULL
 
static fnstrfile_lists_last = NULL
 
static fnstrpattern_files = NULL
 
static fnstrpattern_files_last = NULL
 
static fndatastr exclude_from_data = { &exclude_from, &exclude_from_last }
 
static fndatastr include_from_data = { &include_from, &include_from_last }
 
static fndatastr file_lists_data = { &file_lists, &file_lists_last }
 
static fndatastr pattern_files_data = { &pattern_files, &pattern_files_last }
 
static patstrpatterns = NULL
 
static patstrpatterns_last = NULL
 
static patstrinclude_patterns = NULL
 
static patstrinclude_patterns_last = NULL
 
static patstrexclude_patterns = NULL
 
static patstrexclude_patterns_last = NULL
 
static patstrinclude_dir_patterns = NULL
 
static patstrinclude_dir_patterns_last = NULL
 
static patstrexclude_dir_patterns = NULL
 
static patstrexclude_dir_patterns_last = NULL
 
static patdatastr match_patdata = { &patterns, &patterns_last }
 
static patdatastr include_patdata = { &include_patterns, &include_patterns_last }
 
static patdatastr exclude_patdata = { &exclude_patterns, &exclude_patterns_last }
 
static patdatastr include_dir_patdata = { &include_dir_patterns, &include_dir_patterns_last }
 
static patdatastr exclude_dir_patdata = { &exclude_dir_patterns, &exclude_dir_patterns_last }
 
static patstr ** incexlist [4]
 
static const char * incexname [4]
 
static option_item optionlist []
 
static const char * prefix []
 
static const char * suffix []
 
const int utf8_table3 [] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01}
 
const char utf8_table4 []
 
int sys_nerr
 
char * sys_errlist []
 

Macro Definition Documentation

◆ FALSE

#define FALSE   0

Definition at line 74 of file pcregrep.c.

◆ FILESEP

#define FILESEP   0

Definition at line 788 of file pcregrep.c.

◆ FWRITE

#define FWRITE (   a,
  b,
  c,
 
)    if (fwrite(a,b,c,d)) {}

Definition at line 124 of file pcregrep.c.

◆ MAXPATLEN

#define MAXPATLEN   8192

Definition at line 84 of file pcregrep.c.

◆ N_BINARY_FILES

#define N_BINARY_FILES   (-18)

Definition at line 323 of file pcregrep.c.

◆ N_BUFSIZE

#define N_BUFSIZE   (-15)

Definition at line 320 of file pcregrep.c.

◆ N_COLOUR

#define N_COLOUR   (-1)

Definition at line 306 of file pcregrep.c.

◆ N_EXCLUDE

#define N_EXCLUDE   (-2)

Definition at line 307 of file pcregrep.c.

◆ N_EXCLUDE_DIR

#define N_EXCLUDE_DIR   (-3)

Definition at line 308 of file pcregrep.c.

◆ N_EXCLUDE_FROM

#define N_EXCLUDE_FROM   (-19)

Definition at line 324 of file pcregrep.c.

◆ N_FILE_LIST

#define N_FILE_LIST   (-17)

Definition at line 322 of file pcregrep.c.

◆ N_FOFFSETS

#define N_FOFFSETS   (-11)

Definition at line 316 of file pcregrep.c.

◆ N_HELP

#define N_HELP   (-4)

Definition at line 309 of file pcregrep.c.

◆ N_INCLUDE

#define N_INCLUDE   (-5)

Definition at line 310 of file pcregrep.c.

◆ N_INCLUDE_DIR

#define N_INCLUDE_DIR   (-6)

Definition at line 311 of file pcregrep.c.

◆ N_INCLUDE_FROM

#define N_INCLUDE_FROM   (-20)

Definition at line 325 of file pcregrep.c.

◆ N_LABEL

#define N_LABEL   (-7)

Definition at line 312 of file pcregrep.c.

◆ N_LBUFFER

#define N_LBUFFER   (-12)

Definition at line 317 of file pcregrep.c.

◆ N_LOCALE

#define N_LOCALE   (-8)

Definition at line 313 of file pcregrep.c.

◆ N_LOFFSETS

#define N_LOFFSETS   (-10)

Definition at line 315 of file pcregrep.c.

◆ N_M_LIMIT

#define N_M_LIMIT   (-13)

Definition at line 318 of file pcregrep.c.

◆ N_M_LIMIT_REC

#define N_M_LIMIT_REC   (-14)

Definition at line 319 of file pcregrep.c.

◆ N_NOJIT

#define N_NOJIT   (-16)

Definition at line 321 of file pcregrep.c.

◆ N_NULL

#define N_NULL   (-9)

Definition at line 314 of file pcregrep.c.

◆ N_OM_SEPARATOR

#define N_OM_SEPARATOR   (-21)

Definition at line 326 of file pcregrep.c.

◆ OFFSET_SIZE

#define OFFSET_SIZE   99

Definition at line 79 of file pcregrep.c.

◆ PATBUFSIZE

#define PATBUFSIZE   (MAXPATLEN + 10) /* Allows for prefix+suffix */

Definition at line 87 of file pcregrep.c.

◆ PO_FIXED_STRINGS

#define PO_FIXED_STRINGS   0x0004

Definition at line 108 of file pcregrep.c.

◆ PO_LINE_MATCH

#define PO_LINE_MATCH   0x0002

Definition at line 107 of file pcregrep.c.

◆ PO_WORD_MATCH

#define PO_WORD_MATCH   0x0001

Definition at line 106 of file pcregrep.c.

◆ TRUE

#define TRUE   1

Definition at line 75 of file pcregrep.c.

Typedef Documentation

◆ BOOL

typedef int BOOL

Definition at line 77 of file pcregrep.c.

◆ directory_type

typedef void directory_type

Definition at line 789 of file pcregrep.c.

◆ fndatastr

typedef struct fndatastr fndatastr

◆ fnstr

typedef struct fnstr fnstr

◆ omdatastr

typedef struct omdatastr omdatastr

◆ omstr

typedef struct omstr omstr

◆ option_item

typedef struct option_item option_item

◆ patdatastr

typedef struct patdatastr patdatastr

◆ patstr

typedef struct patstr patstr

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FN_NONE 
FN_DEFAULT 
FN_MATCH_ONLY 
FN_NOMATCH_ONLY 
FN_FORCE 

Definition at line 93 of file pcregrep.c.

◆ anonymous enum

anonymous enum
Enumerator
FR_PLAIN 
FR_LIBZ 
FR_LIBBZ2 

Definition at line 97 of file pcregrep.c.

◆ anonymous enum

anonymous enum
Enumerator
dee_READ 
dee_SKIP 
dee_RECURSE 

Definition at line 101 of file pcregrep.c.

◆ anonymous enum

anonymous enum
Enumerator
DEE_READ 
DEE_SKIP 

Definition at line 102 of file pcregrep.c.

◆ anonymous enum

anonymous enum
Enumerator
EL_LF 
EL_CR 
EL_CRLF 
EL_ANY 
EL_ANYCRLF 

Definition at line 112 of file pcregrep.c.

◆ anonymous enum

anonymous enum
Enumerator
BIN_BINARY 
BIN_NOMATCH 
BIN_TEXT 

Definition at line 116 of file pcregrep.c.

◆ anonymous enum

anonymous enum
Enumerator
OP_NODATA 
OP_STRING 
OP_OP_STRING 
OP_NUMBER 
OP_LONGNUMBER 
OP_OP_NUMBER 
OP_OP_NUMBERS 
OP_PATLIST 
OP_FILELIST 
OP_BINFILES 

Definition at line 292 of file pcregrep.c.

Function Documentation

◆ add_number()

static omstr* add_number ( int  n,
omstr after 
)
static

Definition at line 1046 of file pcregrep.c.

References malloc(), n, omstr::next, NULL, om, and pcregrep_exit().

Referenced by handle_option(), and main().

◆ add_pattern()

static patstr* add_pattern ( char *  s,
patstr after 
)
static

◆ closedirectory()

void closedirectory ( directory_type dir)

Definition at line 794 of file pcregrep.c.

Referenced by grep_or_recurse().

◆ compile_pattern()

static BOOL compile_pattern ( patstr p,
int  options,
int  popts,
int  fromfile,
const char *  fromtext,
int  count 
)
static

◆ decode_number()

static long int decode_number ( char *  option_data,
option_item op,
BOOL  longop 
)
static

Definition at line 992 of file pcregrep.c.

References int, isdigit(), isspace(), option_item::long_name, n, NULL, option_item::one_char, pcregrep_exit(), toupper(), and usage().

Referenced by main().

◆ do_after_lines()

static void do_after_lines ( unsigned long int  lastmatchnumber,
char *  lastmatchrestart,
char *  endptr,
char *  printname 
)
static

Definition at line 1390 of file pcregrep.c.

References after_context, end_of_line(), FWRITE, hyphenpending, NULL, number, and TRUE.

Referenced by pcregrep().

◆ end_of_line()

static char* end_of_line ( char *  p,
char *  endptr,
int lenptr 
)
static

Definition at line 1119 of file pcregrep.c.

References EL_ANY, EL_ANYCRLF, EL_CR, EL_CRLF, EL_LF, endlinetype, utf8, utf8_table3, and utf8_table4.

Referenced by compile_pattern(), do_after_lines(), and pcregrep().

◆ free_file_chain()

static void free_file_chain ( fnstr fn)
static

Definition at line 525 of file pcregrep.c.

References f(), free(), and NULL.

Referenced by main().

◆ free_pattern_chain()

static void free_pattern_chain ( patstr pc)
static

Definition at line 502 of file pcregrep.c.

References patstr::compiled, free(), patstr::hint, patstr::next, NULL, pcre_free, and pcre_free_study().

Referenced by main().

◆ grep_or_recurse()

static int grep_or_recurse ( char *  pathname,
BOOL  dir_recurse,
BOOL  only_one_at_top 
)
static

◆ handle_option()

static int handle_option ( int  letter,
int  options 
)
static

◆ help()

static void help ( void  )
static

◆ is_file_tty()

static BOOL is_file_tty ( FILE *  f)
static

Definition at line 813 of file pcregrep.c.

References FALSE.

Referenced by pcregrep().

◆ is_stdout_tty()

static BOOL is_stdout_tty ( void  )
static

Definition at line 807 of file pcregrep.c.

References FALSE.

Referenced by main().

◆ isdirectory()

int isdirectory ( char *  filename)

Definition at line 791 of file pcregrep.c.

Referenced by grep_or_recurse().

◆ isregfile()

int isregfile ( char *  filename)

Definition at line 801 of file pcregrep.c.

Referenced by grep_or_recurse().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 2658 of file pcregrep.c.

References add_number(), add_pattern(), after_context, omdatastr::anchor, fndatastr::anchor, patdatastr::anchor, before_context, BIN_BINARY, BIN_NOMATCH, BIN_TEXT, binary_files, both_context, buffer, bufsize, bufthird, colour_option, colour_string, compile_pattern(), patstr::compiled, option_item::dataptr, decode_number(), dee_action, DEE_action, dee_option, DEE_option, dee_READ, DEE_READ, dee_RECURSE, dee_SKIP, DEE_SKIP, do_colour, EL_ANY, EL_ANYCRLF, EL_CR, EL_CRLF, EL_LF, endlinetype, exclude_dir_patterns, exclude_from, exclude_patterns, exclude_patterns_last, FALSE, file_lists, file_offsets, filenames, pcre_extra::flags, FN_DEFAULT, FR_PLAIN, free(), free_file_chain(), free_pattern_chain(), grep_or_recurse(), handle_option(), patstr::hint, i, incexlist, incexname, include_dir_patterns, include_from, include_patterns, include_patterns_last, int, is_stdout_tty(), isdigit(), isspace(), omdatastr::lastptr, fndatastr::lastptr, patdatastr::lastptr, line_offsets, locale, option_item::long_name, main_buffer, malloc(), pcre_extra::match_limit, match_limit, pcre_extra::match_limit_recursion, match_limit_recursion, n, N_COLOUR, fnstr::name, newline, next(), fnstr::next, patstr::next, NULL, option_item::one_char, only_matching, only_matching_last, OP_BINFILES, OP_FILELIST, OP_LONGNUMBER, OP_NODATA, OP_NUMBER, OP_OP_NUMBER, OP_OP_NUMBERS, OP_OP_STRING, OP_PATLIST, optionlist, PATBUFSIZE, pattern_files, patterns, patterns_last, pcre_assign_jit_stack(), pcre_config(), PCRE_CONFIG_NEWLINE, PCRE_EXTRA_MATCH_LIMIT, PCRE_EXTRA_MATCH_LIMIT_RECURSION, pcre_jit_stack_alloc(), pcre_jit_stack_free(), pcre_maketables(), PCRE_NEWLINE_ANY, PCRE_NEWLINE_ANYCRLF, PCRE_NEWLINE_CR, PCRE_NEWLINE_CRLF, PCRE_NEWLINE_LF, pcre_options, pcre_study(), PCRE_STUDY_EXTRA_NEEDED, PCRE_STUDY_JIT_COMPILE, pcregrep(), pcregrep_exit(), pcretables, process_options, read_pattern_file(), show_only_matching, stdin_name, util::strcmp(), strerror(), util::strncmp(), study_options, TRUE, option_item::type, and usage().

◆ match_patterns()

static BOOL match_patterns ( char *  matchptr,
size_t  length,
unsigned int  options,
int  startoffset,
int offsets,
int mrc 
)
static

◆ opendirectory()

directory_type* opendirectory ( char *  filename)

Definition at line 792 of file pcregrep.c.

Referenced by grep_or_recurse().

◆ ordin()

static char* ordin ( int  n)
static

Definition at line 2462 of file pcregrep.c.

References buffer, and n.

Referenced by compile_pattern().

◆ pcregrep()

static int pcregrep ( void *  handle,
int  frtype,
char *  filename,
char *  printname 
)
static

◆ pcregrep_exit()

static void pcregrep_exit ( int  rc)
static

◆ previous_line()

static char* previous_line ( char *  p,
char *  startptr 
)
static

Definition at line 1280 of file pcregrep.c.

References EL_ANY, EL_ANYCRLF, EL_CR, EL_CRLF, EL_LF, endlinetype, utf8, utf8_table3, and utf8_table4.

Referenced by pcregrep().

◆ read_one_line()

static unsigned int read_one_line ( char *  buffer,
int  length,
FILE *  f 
)
static

Definition at line 1088 of file pcregrep.c.

References buffer, and f().

Referenced by pcregrep().

◆ read_pattern_file()

static BOOL read_pattern_file ( char *  name,
patstr **  patptr,
patstr **  patlastptr,
int  popts 
)
static

◆ readdirectory()

char* readdirectory ( directory_type dir)

Definition at line 793 of file pcregrep.c.

Referenced by grep_or_recurse().

◆ strerror()

char* strerror ( int  n)

◆ test_incexc()

static BOOL test_incexc ( char *  path,
patstr ip,
patstr ep 
)
static

Definition at line 952 of file pcregrep.c.

References patstr::compiled, FALSE, ip, patstr::next, NULL, pcre_exec(), and TRUE.

Referenced by grep_or_recurse().

◆ usage()

static int usage ( int  rc)
static

Definition at line 849 of file pcregrep.c.

References option_item::one_char, and optionlist.

Referenced by decode_number(), handle_option(), and main().

Variable Documentation

◆ after_context

int after_context = 0
static

Definition at line 157 of file pcregrep.c.

Referenced by do_after_lines(), main(), and pcregrep().

◆ before_context

int before_context = 0
static

Definition at line 158 of file pcregrep.c.

Referenced by main(), and pcregrep().

◆ binary_files

int binary_files = BIN_BINARY
static

Definition at line 159 of file pcregrep.c.

Referenced by handle_option(), main(), and pcregrep().

◆ both_context

int both_context = 0
static

Definition at line 160 of file pcregrep.c.

Referenced by main().

◆ bufsize

int bufsize = 3*PCREGREP_BUFSIZE
static

◆ bufthird

int bufthird = PCREGREP_BUFSIZE
static

Definition at line 161 of file pcregrep.c.

Referenced by main(), and pcregrep().

◆ colour_option

char* colour_option = NULL
static

Definition at line 146 of file pcregrep.c.

Referenced by main().

◆ colour_string

char* colour_string = (char *)"1;31"
static

Definition at line 145 of file pcregrep.c.

Referenced by main(), and pcregrep().

◆ count_only

BOOL count_only = 0
static

Definition at line 185 of file pcregrep.c.

Referenced by handle_option(), and pcregrep().

◆ dee_action

int dee_action = dee_READ
static

Definition at line 167 of file pcregrep.c.

Referenced by grep_or_recurse(), handle_option(), and main().

◆ DEE_action

int DEE_action = DEE_READ
static

Definition at line 170 of file pcregrep.c.

Referenced by grep_or_recurse(), and main().

◆ dee_option

char* dee_option = NULL
static

Definition at line 147 of file pcregrep.c.

Referenced by main().

◆ DEE_option

char* DEE_option = NULL
static

Definition at line 148 of file pcregrep.c.

Referenced by main().

◆ do_colour

BOOL do_colour = 0
static

Definition at line 186 of file pcregrep.c.

Referenced by main(), and pcregrep().

◆ endlinetype

int endlinetype
static

Definition at line 143 of file pcregrep.c.

Referenced by end_of_line(), main(), and previous_line().

◆ error_count

int error_count = 0
static

◆ exclude_dir_patdata

patdatastr exclude_dir_patdata = { &exclude_dir_patterns, &exclude_dir_patterns_last }
static

Definition at line 282 of file pcregrep.c.

◆ exclude_dir_patterns

patstr* exclude_dir_patterns = NULL
static

Definition at line 267 of file pcregrep.c.

Referenced by grep_or_recurse(), and main().

◆ exclude_dir_patterns_last

patstr* exclude_dir_patterns_last = NULL
static

Definition at line 268 of file pcregrep.c.

◆ exclude_from

fnstr* exclude_from = NULL
static

Definition at line 227 of file pcregrep.c.

Referenced by main().

◆ exclude_from_data

fndatastr exclude_from_data = { &exclude_from, &exclude_from_last }
static

Definition at line 244 of file pcregrep.c.

◆ exclude_from_last

fnstr* exclude_from_last = NULL
static

Definition at line 228 of file pcregrep.c.

◆ exclude_patdata

patdatastr exclude_patdata = { &exclude_patterns, &exclude_patterns_last }
static

Definition at line 280 of file pcregrep.c.

◆ exclude_patterns

patstr* exclude_patterns = NULL
static

◆ exclude_patterns_last

patstr* exclude_patterns_last = NULL
static

Definition at line 264 of file pcregrep.c.

Referenced by main().

◆ file_lists

fnstr* file_lists = NULL
static

Definition at line 232 of file pcregrep.c.

Referenced by main().

◆ file_lists_data

fndatastr file_lists_data = { &file_lists, &file_lists_last }
static

Definition at line 246 of file pcregrep.c.

◆ file_lists_last

fnstr* file_lists_last = NULL
static

Definition at line 233 of file pcregrep.c.

◆ file_offsets

BOOL file_offsets = 0
static

Definition at line 187 of file pcregrep.c.

Referenced by handle_option(), main(), and pcregrep().

◆ filenames

int filenames = FN_DEFAULT
static

Definition at line 172 of file pcregrep.c.

Referenced by CBamLoadOptionPanel::AddFilenames(), CMacroLib::AppendToLibrary(), chooseSettings(), CAppDialogs::COpenDialog(), CProjectTask::CProjectTask(), CTableObjectLoader::CTableObjectLoader(), CFileLoadManager::DoTransition(), CTableImportWizard::GetExecuteUnit(), CASNFormatLoadManager::GetFilenames(), CFileAutoLoader::GetFilenames(), CFileLoadOptionPanel::GetFilenames(), CTableFileLoadManager::GetFilenames(), CProjectFormatLoadManager::GetFilenames(), CGBFlatFileLoadManager::GetFilenames(), CQualTableLoadManager::GetFilenames(), CMultiFileInput::GetFilenames(), CPhyLoader::GetFilenames(), CPslLoadManager::GetFilenames(), CRMLoader::GetFilenames(), CTextAlignLoaderManager::GetFilenames(), C5ColLoadManager::GetFilenames(), CAgpLoader::GetFilenames(), CBedLoadManager::GetFilenames(), CColumnarVCFLoaderManager::GetFilenames(), CFASTAFormatLoadManager::GetFilenames(), CGffLoadManager::GetFilenames(), CVCFLoaderManager::GetFilenames(), CWigLoadManager::GetFilenames(), CFileLoadPanel::GetFilenames(), CProjectLoadOptionPanel::GetProjectFilenames(), CFileLoadManager::GetTask(), CProjectLoadManager::GetTask(), grep_or_recurse(), handle_option(), CSeqEditPackage::Init(), CEditingBtnsPanel::LoadSettings(), main(), NcbiFileBrowser(), CBamLoadOptionPanel::OnButtonClick(), CProjectTreeViewDropTarget::OnData(), CBamLoadOptionPanel::CDropTarget::OnData(), CMultiFileInput::CDropTarget::OnData(), CFrameworkDemoGUIDropTarget::OnData(), CProjectLoadOptionPanel::OnFinish(), CMacroFlowEditor::OnInputFile(), pcregrep(), CEditingBtnsPanel::RemoveStaticButtons(), CAgpValidateApplication::Run(), CEditingBtnsPanel::SaveSettings(), CASNFormatLoadManager::SetFilenames(), CFileAutoLoader::SetFilenames(), CFileLoadOptionPanel::SetFilenames(), COpenDlg::SetFilenames(), CTableFileLoadManager::SetFilenames(), CProjectFormatLoadManager::SetFilenames(), CGBFlatFileLoadManager::SetFilenames(), CQualTableLoadManager::SetFilenames(), CMultiFileInput::SetFilenames(), CPhyLoader::SetFilenames(), CPslLoadManager::SetFilenames(), CRMLoader::SetFilenames(), CTextAlignLoaderManager::SetFilenames(), C5ColLoadManager::SetFilenames(), CAgpLoader::SetFilenames(), CBedLoadManager::SetFilenames(), CColumnarVCFLoaderManager::SetFilenames(), CFASTAFormatLoadManager::SetFilenames(), CGffLoadManager::SetFilenames(), CVCFLoaderManager::SetFilenames(), CWigLoadManager::SetFilenames(), CFileLoadPanel::SetFilenames(), CBamLoadOptionPanel::SetFilenames(), CFileLoadManager::SetFilenames(), CFileLoadWizard::SetFilenames(), CAttribTableColumnIdPanel::SetFileNames(), CFileAutoLoader::SetFormatManager(), sFilenameSetToString(), CFileAutoLoader::ValidateFilenames(), CTableFileLoadManager::ValidateFilenames(), CProjectFormatLoadManager::ValidateFilenames(), CQualTableLoadManager::ValidateFilenames(), CTableImportWizard::ValidateFilenames(), CFileLoadWizard::x_CanLeavePage(), CFileLoadManager::x_CanLeavePage(), CFileLoadWizard::x_CheckFormatConflict(), CFileLoadManager::x_CheckFormatConflict(), CProjectLoadOptionPanel::x_Finish(), CProjectLoadOptionPanel::x_GetSelectedMRUFilenames(), CMakeProfileDBApp::x_GetSMPFilenames(), CMultiFileInput::x_OnAddFilenames(), and CMakeBlastDBApp::x_VerifyInputFilesType().

◆ hyphenpending

BOOL hyphenpending = 0
static

Definition at line 188 of file pcregrep.c.

Referenced by do_after_lines(), and pcregrep().

◆ incexlist

patstr** incexlist[4]
static
Initial value:
static patstr * exclude_dir_patterns
Definition: pcregrep.c:267
static patstr * include_patterns
Definition: pcregrep.c:261
static patstr * include_dir_patterns
Definition: pcregrep.c:265
static patstr * exclude_patterns
Definition: pcregrep.c:263

Definition at line 284 of file pcregrep.c.

Referenced by main().

◆ incexname

const char* incexname[4]
static
Initial value:
= { "--include", "--exclude",
"--include-dir", "--exclude-dir" }

Definition at line 287 of file pcregrep.c.

Referenced by main().

◆ include_dir_patdata

patdatastr include_dir_patdata = { &include_dir_patterns, &include_dir_patterns_last }
static

Definition at line 281 of file pcregrep.c.

◆ include_dir_patterns

patstr* include_dir_patterns = NULL
static

Definition at line 265 of file pcregrep.c.

Referenced by grep_or_recurse(), and main().

◆ include_dir_patterns_last

patstr* include_dir_patterns_last = NULL
static

Definition at line 266 of file pcregrep.c.

◆ include_from

fnstr* include_from = NULL
static

Definition at line 229 of file pcregrep.c.

Referenced by main().

◆ include_from_data

fndatastr include_from_data = { &include_from, &include_from_last }
static

Definition at line 245 of file pcregrep.c.

◆ include_from_last

fnstr* include_from_last = NULL
static

Definition at line 230 of file pcregrep.c.

◆ include_patdata

patdatastr include_patdata = { &include_patterns, &include_patterns_last }
static

Definition at line 279 of file pcregrep.c.

◆ include_patterns

patstr* include_patterns = NULL
static

◆ include_patterns_last

patstr* include_patterns_last = NULL
static

Definition at line 262 of file pcregrep.c.

Referenced by main().

◆ invert

BOOL invert = 0
static

◆ line_buffered

BOOL line_buffered = 0
static

Definition at line 190 of file pcregrep.c.

Referenced by handle_option(), and pcregrep().

◆ line_offsets

BOOL line_offsets = 0
static

Definition at line 191 of file pcregrep.c.

Referenced by handle_option(), main(), and pcregrep().

◆ locale

char* locale = NULL
static

◆ main_buffer

char* main_buffer = NULL
static

Definition at line 150 of file pcregrep.c.

Referenced by main(), and pcregrep().

◆ match_limit

unsigned long int match_limit = 0
static

Definition at line 182 of file pcregrep.c.

Referenced by main().

◆ match_limit_recursion

unsigned long int match_limit_recursion = 0
static

Definition at line 183 of file pcregrep.c.

Referenced by main().

◆ match_patdata

patdatastr match_patdata = { &patterns, &patterns_last }
static

Definition at line 278 of file pcregrep.c.

◆ multiline

BOOL multiline = 0
static

◆ newline

char* newline = NULL
static

◆ number

BOOL number = 0
static

Definition at line 193 of file pcregrep.c.

Referenced by _cs_get_msgstr(), _csclient_msg(), _ct_get_msgstr(), _ctclient_msg(), _pcre_find_bracket(), AddExon(), CIDs::AddID(), CPagerView::AddImageString(), CPagerView::AddInactiveImageString(), CAlignFormatUtil::AddSpace(), BlastNumber2Program(), BlastProgram2Number(), compile_branch(), SSeqIdRange::const_iterator::const_iterator(), do_after_lines(), CAlignCollapser::FilterAlignments(), CSubSource::FixAltitude(), get_pat(), GetSeqFeatLabel(), GetStringOfFeatQual(), CAlignFormatUtil::GetSubjectsNumber(), CAltitudePanel::GetValue(), handle_option(), CSubSource::IsAltitudeValid(), CAltitudePanel::IsWellFormatted(), longlong_to_numeric(), match(), CRangeListImpl::Parse(), parse_number_value(), CCSRABlobId::ParseReadId(), pcregrep(), CAlignFormatUtil::PruneSeqalign(), CAlignFormatUtil::PruneSeqalignAll(), CAlnVwrApp::Run(), s_CollectNumberAndUnits(), s_GetRoundNumber(), s_MultiplyByte(), s_ParseNumber(), s_RestoreNumber(), s_RestoreNumberAndCaseVariant(), CUTTPWriter::SendChunk(), CUTTPWriter::SendNumber(), CStatusBar::SetFieldsCount(), COligoSpecificityTemplate::SetMaxTargetPerSequence(), COligoSpecificityTemplate::SetNumNonSpecificTargets(), CShowBlastDefline::SetPSIIteration(), CDisplaySeqalign::SetQueryNumber(), CShowBlastDefline::SetQueryNumber(), CStatusBar::SetStatusWidths(), CAltitudePanel::SetValue(), CLatLonPanel::SetValue(), tds_numeric_to_string(), CId1FetchApp::WriteHistoryTable(), CPageList::x_AddImageString(), CPageList::x_AddInactiveImageString(), CSeq_id_Patent_Tree::x_FindInfo(), CFeatureItem::x_FormatQuals(), CAltitudePanel::x_GetNumber(), CFeatureItem::x_ImportQuals(), x_json_array_append_number(), x_json_array_replace_number(), x_json_object_dotset_number(), x_json_object_set_number(), x_json_value_init_number(), CCompoundIDDumpParser::x_ReadIPv4Address(), CMQueryFunctionOps::x_Validate(), and CMQueryFunctionOps::x_ValidateAll().

◆ om_separator

char* om_separator = (char *)""
static

Definition at line 152 of file pcregrep.c.

Referenced by pcregrep().

◆ omit_zero_count

BOOL omit_zero_count = 0
static

Definition at line 194 of file pcregrep.c.

Referenced by handle_option(), and pcregrep().

◆ only_matching

omstr* only_matching = NULL
static

Definition at line 208 of file pcregrep.c.

Referenced by handle_option(), main(), and pcregrep().

◆ only_matching_data

omdatastr only_matching_data = { &only_matching, &only_matching_last }
static

Definition at line 218 of file pcregrep.c.

◆ only_matching_last

omstr* only_matching_last = NULL
static

Definition at line 209 of file pcregrep.c.

Referenced by handle_option(), and main().

◆ optionlist

option_item optionlist[]
static

Definition at line 328 of file pcregrep.c.

Referenced by help(), main(), and usage().

◆ pattern_files

fnstr* pattern_files = NULL
static

Definition at line 234 of file pcregrep.c.

Referenced by main().

◆ pattern_files_data

fndatastr pattern_files_data = { &pattern_files, &pattern_files_last }
static

Definition at line 247 of file pcregrep.c.

◆ pattern_files_last

fnstr* pattern_files_last = NULL
static

Definition at line 235 of file pcregrep.c.

◆ patterns

patstr* patterns = NULL
static

◆ patterns_last

patstr* patterns_last = NULL
static

Definition at line 260 of file pcregrep.c.

Referenced by main().

◆ pcre_options

int pcre_options = 0
static

Definition at line 173 of file pcregrep.c.

Referenced by main(), and read_pattern_file().

◆ pcretables

const unsigned char* pcretables = NULL
static

Definition at line 155 of file pcregrep.c.

Referenced by compile_pattern(), and main().

◆ prefix

const char* prefix[]
static
Initial value:
= {
"", "\\b", "^(?:", "^(?:", "\\Q", "\\b\\Q", "^(?:\\Q", "^(?:\\Q" }
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 405 of file pcregrep.c.

Referenced by CTable2AsnStructuredCommentsReader::_CheckStructuredCommentsSuffix(), xml::node::add_namespace_def(), CPagerView::AddImageString(), CPagerView::AddInactiveImageString(), AddModVectorToDefline(), CArgDescriptions::CPrintUsage::AddSynopsis(), CTextUtil::AddWordFrequencies(), CCreateLocusTagGene::apply(), CGenomeInfoPanel::ApplyDescriptor(), CConvertComment::ApplyToComment(), CChangeStructuredCommentKeyword::ApplyToCSeq_entry_user(), CReorderStructuredComment::ApplyToCSeq_entry_user(), CDiscrepancyVisitorImpl< _Name >::Autofix(), BOOST_AUTO_TEST_CASE(), CAutoDefSatelliteClause::CAutoDefSatelliteClause(), CDiagAutoPrefix::CDiagAutoPrefix(), CFlatInferenceQVal::CFlatInferenceQVal(), CValidError_bioseq::CheckForMultipleStructuredComments(), CInputStreamSource::CInputStreamSource(), compile_pattern(), COperationTiming::COperationTiming(), xml::node::create_xpath_context(), CSequencingTechnologyPanel::CreateControls(), CStructuredCommentPanel::CreateControls(), CPluginManager_DllResolver::CreateDllResolver(), XSDParser::CreateEntityId(), CSequenceEditingEventHandler::CreateSpecificStructuredComment(), CFileIO::CreateTemporary(), CDirEntry::CreateTmpFileEx(), CWGSFileInfo::CWGSFileInfo(), CBlastQueryInfo::DebugDump(), CBlastEffectiveLengthsOptions::DebugDump(), CSequenceEditingEventHandler::DeleteSpecificStructuredComment(), CColumnarVCFReaderTest::Deserialize(), CVCFVariantList::DeserializeAndCheck(), NVcfUtil::DeserializeColumn(), CPosToIndex::DeserializeVectors(), CFlat2AsnListener::Dump(), CNcbiEnvironment::Enumerate(), xml::attributes::erase(), xml::node::erase_namespace_definition(), CTar::EstimateArchiveSize(), CDataType::FileName(), fill_names_blob_prefix(), xml::impl::find_default_prop(), xml::impl::find_prop(), CSrzPath::FindAccPath(), CComment_set::FindCommentRule(), CComment_set::FindCommentRuleEx(), CSNPDb_Impl::FindSeq(), CFlatModelEvQVal::Format(), CGenbankFormatter::FormatCache(), CGenbankFormatter::FormatGenomeProject(), fta_create_wgs_dbtag(), fta_create_wgs_seqid(), FtaDeletePrefix(), FtaInstallPrefix(), SPSG_StatsCounters::SReport::Func(), g_GenericStatToJson(), NVcfUtil::GenerateColFileName(), CDeflineGenerator::GenerateDefline(), GenerateTestStrCollection(), xml::ns::get_prefix(), CValidError_feat::GetAccessionsFromInferenceString(), GetBioseqDiffs(), CSeqTechDlg::GetCommand(), CRequestContext::GetCurrentSubHitID(), XSDParser::GetElementNamespace(), CMsvcProjectMakefile::GetExtraFiles(), CGtfLocationMerger::GetFeatureIdFor(), CComment_set::GetFieldNames(), CWGSDataLoader_Impl::GetFileInfoByAcc(), CApplyStructCommentTreeItemData::GetFunction(), CWGSDb_Impl::GetGeneralSeq_id(), CGenomeAnnotComment::GetGenomeBuildNumber(), CObjectOStreamJson::GetJsonpPadding(), CComment_set::GetKeywords(), CAuth_list::GetLabelV2(), CCit_gen::GetLabelV2(), CCit_pat::GetLabelV2(), CApplyStructCommentTreeItemData::GetMacroDescription(), CRequestContext::GetNextSubHitID(), CValidError_feat::GetPrefixAndAccessionFromInferenceAccession(), CInferencePrefixList::GetPrefixAndRemainder(), CWGSResolver_DL::GetPrefixes(), SQueueParameters::GetPrintableParameters(), CQueueDataBase::GetQueueClassesInfo(), CQueueDataBase::GetQueueInfo(), CCommentItem::GetStringForModelEvidance(), CWriteUtil::GetStringForModelEvidence(), CComment_rule::GetStructuredCommentPrefix(), GetTitle(), CDirEntry::GetTmpNameEx(), CWGSClient::GetWGSDb(), CWGSDataLoader_Impl::GetWGSFile(), GICache_ReadData(), GiDataIndex_New(), CInputStreamSource::HaveArgsForPrefix(), CInputStreamSource::InitArgs(), xml::attributes::insert(), CStructuredCommentField::IsStructuredCommentForThisField(), CStructuredCommentField::IsValid(), JoinString(), CComment_rule::KeywordForPrefix(), CLoadStructComments::LoadSingle(), xml::node::lookup_namespace(), xml::impl::lookup_ns_definition(), xml::ns::make_safe(), MakeIndexName(), CComment_rule::MakePrefixFromRoot(), CStructuredCommentField::MakeUserObject(), NcbiLog_GetCurrentSubHitID_Prefix(), NcbiLog_GetNextSubHitID_Prefix(), CGtfIdGenerator::NextId(), Nlm_LabelCopyExtra(), CComment_rule::NormalizePrefix(), NS_ValidateClasses(), NS_ValidateQueues(), NSTGetBackendConfiguration(), NSTValidateServices(), CWGSFileInfo::Open(), CWGSDataLoader_Impl::OpenWGSFile(), CWGSDataLoader_Impl::OpenWGSFileOnce(), CWinMaskCountsGenerator::operator()(), CNetScheduleConfigLoader::operator()(), CWGSResolver_Ids::ParseWGSPrefix(), CChangeStructuredCommentKeyword::PrefixToKeyword(), SInteractiveNewRequestStart::SExtra::Print(), CNetScheduleAccessList::Print(), SBuildInfo::Print(), PrintJSONNode(), CPrintJobInfo::PrintXput(), CWinMaskCountsGenerator::process(), CCgiContext::ProcessCORSRequest(), PushDiagPostPrefix(), CGlimmerReader::Read(), CReadBlastApp::ReadBlast(), CInputStreamSource::RecreateInputArgs(), RemovePrefix(), CVCFVariantList::RemoveSerializedOutput(), CPosToIndex::RemoveSerializedOutput(), CReorderStructuredComment::reorder_comment_by_rule(), CStructuredCommentField::ReorderFields(), SPSG_Stats::Report(), SPSG_StatsAvgTime::Report(), SPSG_StatsData::Report(), SPSG_StatsData::SData< TDataId >::Report(), pub_report::ReportAuththors(), SDataOnlyCopy::ReportErrors(), pub_report::ReportJournal(), pub_report::ReportTitle(), CDemoApp::Run(), CRunTestApplication::Run(), s_AddCDS(), CSingleFeatValidator::s_BioseqHasRefSeqThatStartsWithPrefix(), CCleanup::s_CleanupStructuredComment(), s_CountBlastDbDataLoaders(), s_CreateHistCommentString(), s_DelimitedOutput(), s_DumpHeader(), s_FixStrainForPrefix(), s_FormatCitGen(), s_FormatPatent(), s_GatherIdLabels(), s_GetContentLabel(), s_GetFeatureContentLabelExtras(), s_GetKeywordForStructuredComment(), s_GetPrefixForStructuredComment(), s_GetStrForStructuredComment(), s_GetSubHitID(), s_InitAllKNS(), s_IsGenomeAnnotationStart(), s_IsReportableStructuredComment(), s_LogSocketError(), s_QualVectorToNote(), s_RemoveInitial(), variation::CVariationUtil::s_SpliceLiterals(), s_TrapErrors(), CBlastSetupTestFixture::s_ValidateProtein130912(), s_VT_Write(), SDiagMessage::SDiagMessage(), SNSRegistryParameters::Serialize(), NVcfUtil::SerializeColumn(), CColumnarVCFReaderTest::SerializeToDisk(), CVCFVariantList::SerializeVariantData(), CPosToIndex::SerializeVectors(), xml::attributes::attr::set_namespace(), xml::node::set_namespace(), SetDiagPostPrefix(), CPluginManager_DllResolver::SetDllNamePrefix(), CBDB_Env::SetErrPrefix(), CCodeGenerator::SetFileNamePrefix(), CBlastInputSourceConfig::SetLocalIdPrefix(), CSeqIdGenerator::SetPrefix(), CStackTrace::SetPrefix(), CSoapMessage::SetSoapNamespacePrefix(), CInputStreamSource::SetStandardInputArgs(), CFeatGlyph::SetTopLabelPrefix(), sGetMessageAndReport(), CWGSDb_Impl::SProtAccInfo::SProtAccInfo(), sReportDSExceptionToLog(), CAssemblyTermCompleter::Start(), CContTextCompleter< Container >::Start(), CRNANameCompleter::Start(), CTaxonTextCompleter::Start(), test(), SSatInfoEntry::ToString(), CSequencingTechnologyPanel::TransferDataFromWindow(), CStructuredCommentPanel::TransferDataToWindow(), CNetScheduleConfigLoader::Transform(), transform_range(), UnwrapAccessionRange(), CValidError_imp::Validate(), CValidError_feat::ValidateInference(), CValidError_feat::ValidateInferenceAccession(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_imp::ValidateSeqLoc(), NStr::Wrap(), NStr::WrapList(), SDiagMessage::Write(), CMsvcConfigure::WriteExtraDefines(), CTableImportListCtrl::WriteWidths(), CFlatSeqLoc::x_Add(), CFeatureTableReader_Imp::x_AddQualifierToFeature(), CJob::x_AppendAffinity(), CJob::x_AppendEraseTime(), CJob::x_AppendEvents(), CJob::x_AppendGroup(), CJob::x_AppendId(), CJob::x_AppendInput(), CJob::x_AppendKey(), CJob::x_AppendLastTouch(), CJob::x_AppendListenerNotif(), CJob::x_AppendListenerNotifExpiration(), CJob::x_AppendMask(), CJob::x_AppendNcbiPhid(), CJob::x_AppendNeedListenerProgressMsgNotif(), CJob::x_AppendNeedStolenNotif(), CJob::x_AppendNeedSubmitProgressMsgNotif(), CJob::x_AppendOutput(), CJob::x_AppendProgressMsg(), CJob::x_AppendReadCounter(), CJob::x_AppendReadExpiration(), CJob::x_AppendRemoteClientIP(), CJob::x_AppendRemoteClientSID(), CJob::x_AppendRunCounter(), CJob::x_AppendRunExpiration(), CJob::x_AppendStatus(), CJob::x_AppendSubmitNotifExpiration(), CJob::x_AppendSubmitNotifPort(), CImportFeatTable::x_CreateCommand(), CDBSourceItem::x_ExtractLinkableSource(), CNewCleanup_imp::x_FixStructuredCommentKeywords(), CFeatureItem::x_FormatGOQualCombined(), CDBSourceItem::x_FormatPDBSource(), CGenbankFormatter::x_FormatSourceLine(), x_FormFQDN(), CCommentItem::x_GatherDescInfo(), CWGSResolver_VDB::x_GetAccPrefixes(), CQueueDataBase::x_GetConfigQueues(), CStructuredCommentPanel::x_GetFields(), CWGSDataLoader_Impl::x_GetFileInfo(), CVCFVariantList::x_GetFilePrefix(), CPosToIndex::x_GetFilePrefix(), CFlatItemFormatter::x_GetKeywords(), CCit_pat::x_GetLabelV2(), CNSTServiceRegistry::x_GetMetadataServices(), CSeqTechDlg::x_GetSeqTechUserFromSeqEntry(), x_GICacheInit(), CTableColumnTypeGuesser::x_GuessType(), CWGSFileInfo::x_Initialize(), CValidError_imp::x_InitLocCheck(), CStructCommFieldValuePair::x_InsertFieldAtCorrectPosition(), CSearch_func::x_IsPrefixPlusNumbers(), CDBConnectionFactory::x_LogConnection(), CAppTaskService::x_LogTask(), CPSGS_AsyncResolveBase::x_OnBioseqInfo(), CAutoCompleteCombo::x_OnTimer(), CNetScheduleHandler::x_ProcessGetParam(), CNetScheduleHandler::x_ProcessQueueInfo(), CObjectOStreamXml::x_ProcessTypeNamespace(), CQueueDataBase::x_ReadDumpQueueDesrc(), CTar::x_ReadEntryInfo(), CQueueDataBase::x_ReadIniFileQueueClassDescriptions(), CQueueDataBase::x_ReadIniFileQueueDescriptions(), CQueueDataBase::x_ReadLinkedSections(), CValidError_align::x_ReportAlignErr(), CCleanupApp::x_ReportChanges(), CCommentItem::x_SetCommentWithURLlinks(), CReportEntry::x_SetHgvs(), CDeflineGenerator::x_SetPrefix(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CGenbankFormatter::x_SmartWrapQuals(), CSeqDBIsam::x_StringSearch(), CRequestContext::x_UpdateSubHitID(), CSingleFeatValidator::x_ValidateSeqFeatLoc(), CValidError_desc::x_ValidateStructuredComment(), CValidError_desc::x_ValidateStructuredCommentPrefix(), CValidError_desc::x_ValidateStructuredCommentSuffix(), CSoapMessage::x_VerifyFaultObj(), CGtfReader::xCreateFeatureId(), CFeatTableEdit::xGetCurrentLocusTagPrefix(), CFeatTableEdit::xNextProteinId(), CFeatTableEdit::xNextTranscriptId(), CMultiReaderApp::xPostProcessAnnot(), CVcfReader::xProcessMetaLineFilter(), CVcfReader::xProcessMetaLineFormat(), CVcfReader::xProcessMetaLineInfo(), and CVcfReader::xSetFileFormat().

◆ process_options

int process_options = 0
static

Definition at line 174 of file pcregrep.c.

Referenced by handle_option(), and main().

◆ quiet

BOOL quiet = 0
static

Definition at line 196 of file pcregrep.c.

Referenced by handle_option(), main(), pcregrep(), and CAsn2Asn::RunAsn2Asn().

◆ resource_error

BOOL resource_error = 0
static

Definition at line 195 of file pcregrep.c.

Referenced by match_patterns(), and pcregrep_exit().

◆ show_only_matching

BOOL show_only_matching = 0
static

Definition at line 197 of file pcregrep.c.

Referenced by main(), and pcregrep().

◆ silent

BOOL silent = 0
static

Definition at line 198 of file pcregrep.c.

Referenced by grep_or_recurse(), and handle_option().

◆ stdin_name

char* stdin_name = (char *)"(standard input)"
static

Definition at line 153 of file pcregrep.c.

Referenced by grep_or_recurse(), main(), and read_pattern_file().

◆ study_options

int study_options = 0
static

Definition at line 179 of file pcregrep.c.

Referenced by handle_option(), and main().

◆ suffix

const char* suffix[]
static
Initial value:
= {
"", "\\b", ")$", ")$", "\\E", "\\E\\b", "\\E)$", "\\E)$" }
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 408 of file pcregrep.c.

Referenced by CTable2AsnStructuredCommentsReader::_CheckStructuredCommentsSuffix(), CPagerView::AddImageString(), CPagerView::AddInactiveImageString(), NMacroUtil::ApplyAuthorNames(), CConvertComment::ApplyToComment(), CDiscrepancyVisitorImpl< _Name >::Autofix(), CDirEntry::Backup(), BOOST_AUTO_TEST_CASE(), BrFcgiBookTermToEutilsTerm(), ChangeId(), CIgAnnotationInfo::CIgAnnotationInfo(), CleanVisStringJunk(), compile_pattern(), CSeq_id::ComposeOSLT(), SMakeProjectT::ConvertLibDepends(), COperationTiming::COperationTiming(), SMakeProjectT::Create3PartyLibs(), CPagerViewButtons::CreateSubNodes(), Dump(), DumpData(), CIgBlastArgs::ExtractAlgorithmOptions(), CName_std::ExtractSuffixFromLastName(), CName_std::FixSuffix(), CGenbankFormatter::FormatCache(), CCodeGenerator::GenerateCombiningFile(), CDeflineGenerator::GenerateDefline(), get_auth_from_toks(), GetBiosampleData(), CStructuredCommentCommandConverter::GetCommandFromValuesTable(), CSplitCacheApp::GetFileName(), CObjectOStreamJson::GetJsonpPadding(), CGffIdGenerator::GetNextGffExonId(), CTable2AsnContext::GetOstream(), SQueueParameters::GetPrintableParameters(), GetTitle(), CEditingActionDescAuthorNameList::GetValue(), hasSuffix(), CSubSource::IsISOFormatTime(), CTbl2AsnApp::LoadAdditionalFiles(), CLoadStructComments::LoadSingle(), CAsn2AsnThread::Main(), CComment_rule::MakeSuffixFromRoot(), CUnculTaxTool::MakeUnculturedName(), Nlm_LabelCopyExtra(), CEUtilsGeneric::PathSuffixIs(), printGFF3(), PrintModularDTDModuleReference(), CSplitCacheApp::ProcessBlob(), CSplitCacheApp::ProcessEntry(), RemoveSuffix(), CReorderStructuredComment::reorder_comment_by_rule(), CExplodeRNAFeats::RNAWordsFromString(), CIgBlastnApp::Run(), CTLSApp::Run(), s_AddCDS(), s_AddReciprocityScore(), CMacroFunction_AuthorFix::s_BuildName(), CCleanup::s_CleanupStructuredComment(), s_CreateHistCommentString(), IAuthorEditor::s_FixInitialsNew(), s_FormatPatent(), s_fromatstr(), s_gethostbyaddr_(), s_gethostbyname_(), s_GetStrForStructuredComment(), CUnculturedTool::s_MakeUnculturedName(), s_RemoveBracketedOrgFromEnd(), s_RemoveOrgFromEndOfProtein(), s_RoundResUsageSize(), variation::CVariationUtil::s_SpliceLiterals(), s_SplitMLAuthorName(), s_TitleFromBioSource(), SNSRegistryParameters::Serialize(), CIgBlastArgs::SetArgumentDescriptions(), CDirEntry::SetBackupSuffix(), CServer::SetCustomThreadSuffix(), CAsyncDiagHandler::SetCustomThreadSuffix(), CDataTypeModule::SetModuleFileSuffix(), CSeqIdGenerator::SetSuffix(), CEditingActionDescAuthorNameList::SetValue(), CSymResolver::StripSuffix(), test(), CSingleAuthorPanel::TransferDataToWindow(), CStructuredCommentPanel::TransferDataToWindow(), TrimSpacesAndJunkFromEnds(), CValidError_imp::ValidateAuthorList(), CAsnvalApp::ValidateOneDirectory(), CJob::x_AppendReadExpiration(), CJob::x_AppendRunExpiration(), CJob::x_AppendSubmitNotifExpiration(), CAuthor::x_ConvertMlToStandard(), CFeatureItem::x_FormatGOQualCombined(), CFeatureItem::x_FormatNoteQuals(), CSourceFeatureItem::x_FormatNoteQuals(), CCommentItem::x_GatherDescInfo(), CAuthor::x_GetLabelV2(), CFastaOstreamComp::x_GetNewFilename(), CSeqTechDlg::x_GetSeqTechUserFromSeqEntry(), CTableColumnTypeGuesser::x_GuessType(), CESearchParser< T >::x_IsSuffix(), CWriteDB_IndexFile::x_MakeLmdbName(), SNSCommandArguments::x_NormalizeErrorMessage(), CNetScheduleHandler::x_OnCmdParserError(), CCleanupApp::x_ProcessOneDirectory(), CCommentItem::x_SetCommentWithURLlinks(), CDeflineGenerator::x_SetSuffix(), CSingleFeatValidator::x_ValidateBothStrands(), CValidError_desc::x_ValidateStructuredCommentSuffix(), CGtfWriter::xAssignFeatureAttributeGeneId(), CGtfWriter::xAssignFeatureAttributeTranscriptId(), CGffIdGenerator::xDisambiguate(), CFeatTableEdit::xGetCurrentLocusTagPrefix(), CFeatTableEdit::xNextFeatId(), CFeatTableEdit::xNextLocusTag(), CFeatTableEdit::xNextProteinId(), and CFeatTableEdit::xNextTranscriptId().

◆ sys_errlist

char* sys_errlist[]
extern

Referenced by strerror().

◆ sys_nerr

int sys_nerr
extern

Referenced by strerror().

◆ utf8

BOOL utf8 = 0
static

Definition at line 199 of file pcregrep.c.

Referenced by end_of_line(), handle_option(), main(), pcregrep(), previous_line(), and utf8_to_string().

◆ utf8_table3

const int utf8_table3[] = { 0xff, 0x1f, 0x0f, 0x07, 0x03, 0x01}

Definition at line 413 of file pcregrep.c.

Referenced by end_of_line(), previous_line(), and print_char().

◆ utf8_table4

const char utf8_table4[]
Initial value:
= {
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5 }

Definition at line 415 of file pcregrep.c.

Referenced by _pcre_valid_utf(), end_of_line(), previous_line(), and print_char().

Modified on Mon May 13 04:38:13 2024 by modify_doxy.py rev. 669887