QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
regex.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  re_pattern_buffer
 
struct  re_registers
 
struct  regmatch_t
 

Macros

#define _RE_ARGS(args)   ()
 
#define _RE_SYNTAX_POSIX_COMMON
 
#define RE_BACKSLASH_ESCAPE_IN_LISTS   (1)
 
#define RE_BK_PLUS_QM   (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
 
#define RE_CHAR_CLASSES   (RE_BK_PLUS_QM << 1)
 
#define RE_CONTEXT_INDEP_ANCHORS   (RE_CHAR_CLASSES << 1)
 
#define RE_CONTEXT_INDEP_OPS   (RE_CONTEXT_INDEP_ANCHORS << 1)
 
#define RE_CONTEXT_INVALID_OPS   (RE_CONTEXT_INDEP_OPS << 1)
 
#define RE_DOT_NEWLINE   (RE_CONTEXT_INVALID_OPS << 1)
 
#define RE_DOT_NOT_NULL   (RE_DOT_NEWLINE << 1)
 
#define RE_DUP_MAX   ((1 << 15) - 1)
 
#define RE_EXACTN_VALUE   1
 
#define RE_HAT_LISTS_NOT_NEWLINE   (RE_DOT_NOT_NULL << 1)
 
#define RE_INTERVALS   (RE_HAT_LISTS_NOT_NEWLINE << 1)
 
#define RE_LIMITED_OPS   (RE_INTERVALS << 1)
 
#define RE_NEWLINE_ALT   (RE_LIMITED_OPS << 1)
 
#define RE_NO_BK_BRACES   (RE_NEWLINE_ALT << 1)
 
#define RE_NO_BK_PARENS   (RE_NO_BK_BRACES << 1)
 
#define RE_NO_BK_REFS   (RE_NO_BK_PARENS << 1)
 
#define RE_NO_BK_VBAR   (RE_NO_BK_REFS << 1)
 
#define RE_NO_EMPTY_RANGES   (RE_NO_BK_VBAR << 1)
 
#define RE_NREGS   30
 
#define RE_SYNTAX_AWK
 
#define RE_SYNTAX_ED   RE_SYNTAX_POSIX_BASIC
 
#define RE_SYNTAX_EGREP
 
#define RE_SYNTAX_EMACS   0
 
#define RE_SYNTAX_GREP
 
#define RE_SYNTAX_POSIX_AWK   (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS)
 
#define RE_SYNTAX_POSIX_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM)
 
#define RE_SYNTAX_POSIX_EGREP   (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES)
 
#define RE_SYNTAX_POSIX_EXTENDED
 
#define RE_SYNTAX_POSIX_MINIMAL_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)
 
#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED
 
#define RE_SYNTAX_SED   RE_SYNTAX_POSIX_BASIC
 
#define RE_UNMATCHED_RIGHT_PAREN_ORD   (RE_NO_EMPTY_RANGES << 1)
 
#define REG_EXTENDED   1
 
#define REG_ICASE   (REG_EXTENDED << 1)
 
#define REG_NEWLINE   (REG_ICASE << 1)
 
#define REG_NOSUB   (REG_NEWLINE << 1)
 
#define REG_NOTBOL   1
 
#define REG_NOTEOL   (1 << 1)
 
#define REGS_FIXED   2
 
#define REGS_REALLOCATE   1
 
#define REGS_UNALLOCATED   0
 

Typedefs

typedef unsigned reg_syntax_t
 
typedef struct re_pattern_buffer regex_t
 
typedef int regoff_t
 

Enumerations

enum  reg_errcode_t {
  REG_NOERROR = 0, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE,
  REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK,
  REG_EPAREN, REG_EBRACE, REG_BADBR, REG_ERANGE,
  REG_ESPACE, REG_BADRPT, REG_EEND, REG_ESIZE,
  REG_ERPAREN
}
 

Functions

reg_syntax_t re_set_syntax _RE_ARGS ((reg_syntax_t syntax))
 
const char *re_compile_pattern _RE_ARGS ((const char *pattern, int length, struct re_pattern_buffer *buffer))
 
int re_compile_fastmap _RE_ARGS ((struct re_pattern_buffer *buffer))
 
int re_search _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, int length, int start, int range, struct re_registers *regs))
 
int re_search_2 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, int range, struct re_registers *regs, int stop))
 
int re_match _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string, int length, int start, struct re_registers *regs))
 
int re_match_2 _RE_ARGS ((struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, struct re_registers *regs, int stop))
 
void re_set_registers _RE_ARGS ((struct re_pattern_buffer *buffer, struct re_registers *regs, unsigned num_regs, regoff_t *starts, regoff_t *ends))
 
const char *re_comp _RE_ARGS ((const char *))
 
int regcomp _RE_ARGS ((regex_t *preg, const char *pattern, int cflags))
 
int regexec _RE_ARGS ((const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags))
 
size_t regerror _RE_ARGS ((int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size))
 
void regfree _RE_ARGS ((regex_t *preg))
 

Variables

reg_syntax_t re_syntax_options
 

Macro Definition Documentation

#define _RE_ARGS (   args)    ()
#define _RE_SYNTAX_POSIX_COMMON
Value:
#define RE_CHAR_CLASSES
Definition: regex.h:53
#define RE_DOT_NOT_NULL
Definition: regex.h:87
#define RE_NO_EMPTY_RANGES
Definition: regex.h:127
#define RE_DOT_NEWLINE
Definition: regex.h:83
#define RE_INTERVALS
Definition: regex.h:96
#define RE_BACKSLASH_ESCAPE_IN_LISTS   (1)
#define RE_BK_PLUS_QM   (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
#define RE_CHAR_CLASSES   (RE_BK_PLUS_QM << 1)
#define RE_CONTEXT_INDEP_ANCHORS   (RE_CHAR_CLASSES << 1)
#define RE_CONTEXT_INDEP_OPS   (RE_CONTEXT_INDEP_ANCHORS << 1)
#define RE_CONTEXT_INVALID_OPS   (RE_CONTEXT_INDEP_OPS << 1)
#define RE_DOT_NEWLINE   (RE_CONTEXT_INVALID_OPS << 1)
#define RE_DOT_NOT_NULL   (RE_DOT_NEWLINE << 1)
#define RE_DUP_MAX   ((1 << 15) - 1)
#define RE_EXACTN_VALUE   1
#define RE_HAT_LISTS_NOT_NEWLINE   (RE_DOT_NOT_NULL << 1)
#define RE_INTERVALS   (RE_HAT_LISTS_NOT_NEWLINE << 1)
#define RE_LIMITED_OPS   (RE_INTERVALS << 1)
#define RE_NEWLINE_ALT   (RE_LIMITED_OPS << 1)
#define RE_NO_BK_BRACES   (RE_NEWLINE_ALT << 1)
#define RE_NO_BK_PARENS   (RE_NO_BK_BRACES << 1)
#define RE_NO_BK_REFS   (RE_NO_BK_PARENS << 1)
#define RE_NO_BK_VBAR   (RE_NO_BK_REFS << 1)
#define RE_NO_EMPTY_RANGES   (RE_NO_BK_VBAR << 1)
#define RE_NREGS   30
#define RE_SYNTAX_AWK
Value:
#define RE_NO_BK_REFS
Definition: regex.h:117
#define RE_NO_BK_VBAR
Definition: regex.h:121
#define RE_BACKSLASH_ESCAPE_IN_LISTS
Definition: regex.h:42
#define RE_UNMATCHED_RIGHT_PAREN_ORD
Definition: regex.h:131
#define RE_DOT_NOT_NULL
Definition: regex.h:87
#define RE_NO_EMPTY_RANGES
Definition: regex.h:127
#define RE_NO_BK_PARENS
Definition: regex.h:113
#define RE_SYNTAX_ED   RE_SYNTAX_POSIX_BASIC
#define RE_SYNTAX_EGREP
Value:
#define RE_CONTEXT_INDEP_ANCHORS
Definition: regex.h:67
#define RE_NO_BK_VBAR
Definition: regex.h:121
#define RE_CHAR_CLASSES
Definition: regex.h:53
#define RE_NEWLINE_ALT
Definition: regex.h:104
#define RE_CONTEXT_INDEP_OPS
Definition: regex.h:75
#define RE_NO_BK_PARENS
Definition: regex.h:113
#define RE_HAT_LISTS_NOT_NEWLINE
Definition: regex.h:91
#define RE_SYNTAX_EMACS   0
#define RE_SYNTAX_GREP
Value:
#define RE_CHAR_CLASSES
Definition: regex.h:53
#define RE_NEWLINE_ALT
Definition: regex.h:104
#define RE_INTERVALS
Definition: regex.h:96
#define RE_BK_PLUS_QM
Definition: regex.h:47
#define RE_HAT_LISTS_NOT_NEWLINE
Definition: regex.h:91
#define RE_SYNTAX_POSIX_AWK   (RE_SYNTAX_POSIX_EXTENDED | RE_BACKSLASH_ESCAPE_IN_LISTS)
#define RE_SYNTAX_POSIX_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM)
#define RE_SYNTAX_POSIX_EGREP   (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES)
#define RE_SYNTAX_POSIX_EXTENDED
Value:
#define RE_NO_BK_BRACES
Definition: regex.h:109
#define RE_CONTEXT_INDEP_ANCHORS
Definition: regex.h:67
#define RE_NO_BK_VBAR
Definition: regex.h:121
#define RE_UNMATCHED_RIGHT_PAREN_ORD
Definition: regex.h:131
#define RE_CONTEXT_INDEP_OPS
Definition: regex.h:75
#define RE_NO_BK_PARENS
Definition: regex.h:113
#define _RE_SYNTAX_POSIX_COMMON
Definition: regex.h:174
#define RE_SYNTAX_POSIX_MINIMAL_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)
#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED
Value:
#define RE_NO_BK_BRACES
Definition: regex.h:109
#define RE_NO_BK_REFS
Definition: regex.h:117
#define RE_CONTEXT_INDEP_ANCHORS
Definition: regex.h:67
#define RE_NO_BK_VBAR
Definition: regex.h:121
#define RE_UNMATCHED_RIGHT_PAREN_ORD
Definition: regex.h:131
#define RE_NO_BK_PARENS
Definition: regex.h:113
#define RE_CONTEXT_INVALID_OPS
Definition: regex.h:79
#define _RE_SYNTAX_POSIX_COMMON
Definition: regex.h:174
#define RE_SYNTAX_SED   RE_SYNTAX_POSIX_BASIC
#define RE_UNMATCHED_RIGHT_PAREN_ORD   (RE_NO_EMPTY_RANGES << 1)
#define REG_EXTENDED   1
#define REG_ICASE   (REG_EXTENDED << 1)
#define REG_NEWLINE   (REG_ICASE << 1)
#define REG_NOSUB   (REG_NEWLINE << 1)
#define REG_NOTBOL   1
#define REG_NOTEOL   (1 << 1)
#define REGS_FIXED   2
#define REGS_REALLOCATE   1
#define REGS_UNALLOCATED   0

Typedef Documentation

typedef unsigned reg_syntax_t
typedef struct re_pattern_buffer regex_t
typedef int regoff_t

Enumeration Type Documentation

Enumerator
REG_NOERROR 
REG_NOMATCH 
REG_BADPAT 
REG_ECOLLATE 
REG_ECTYPE 
REG_EESCAPE 
REG_ESUBREG 
REG_EBRACK 
REG_EPAREN 
REG_EBRACE 
REG_BADBR 
REG_ERANGE 
REG_ESPACE 
REG_BADRPT 
REG_EEND 
REG_ESIZE 
REG_ERPAREN 

Function Documentation

reg_syntax_t re_set_syntax _RE_ARGS ( (reg_syntax_t syntax)  )
const char* re_compile_pattern _RE_ARGS ( (const char *pattern, int length, struct re_pattern_buffer *buffer)  )
int re_compile_fastmap _RE_ARGS ( (struct re_pattern_buffer *buffer)  )
int re_search _RE_ARGS ( (struct re_pattern_buffer *buffer, const char *string, int length, int start, int range, struct re_registers *regs)  )
int re_search_2 _RE_ARGS ( (struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, int range, struct re_registers *regs, int stop)  )
int re_match _RE_ARGS ( (struct re_pattern_buffer *buffer, const char *string, int length, int start, struct re_registers *regs)  )
int re_match_2 _RE_ARGS ( (struct re_pattern_buffer *buffer, const char *string1, int length1, const char *string2, int length2, int start, struct re_registers *regs, int stop)  )
void re_set_registers _RE_ARGS ( (struct re_pattern_buffer *buffer, struct re_registers *regs, unsigned num_regs, regoff_t *starts, regoff_t *ends)  )
int re_exec _RE_ARGS ( (const char *)  )
int regcomp _RE_ARGS ( (regex_t *preg, const char *pattern, int cflags)  )
int regexec _RE_ARGS ( (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)  )
size_t regerror _RE_ARGS ( (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)  )
void regfree _RE_ARGS ( (regex_t *preg)  )

Variable Documentation

reg_syntax_t re_syntax_options