osprey/cygnus/include/xregex2.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Types

type  re_pattern_buffer
type  re_registers
type  regmatch_t

Defines

#define _REGEX_H   1
#define RE_BACKSLASH_ESCAPE_IN_LISTS   ((unsigned long int) 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_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_UNMATCHED_RIGHT_PAREN_ORD   (RE_NO_EMPTY_RANGES << 1)
#define RE_NO_POSIX_BACKTRACKING   (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
#define RE_NO_GNU_OPS   (RE_NO_POSIX_BACKTRACKING << 1)
#define RE_DEBUG   (RE_NO_GNU_OPS << 1)
#define RE_INVALID_INTERVAL_ORD   (RE_DEBUG << 1)
#define RE_SYNTAX_EMACS   0
#define RE_SYNTAX_AWK
#define RE_SYNTAX_GNU_AWK
#define RE_SYNTAX_POSIX_AWK
#define RE_SYNTAX_GREP
#define RE_SYNTAX_EGREP
#define RE_SYNTAX_POSIX_EGREP
#define RE_SYNTAX_ED   RE_SYNTAX_POSIX_BASIC
#define RE_SYNTAX_SED   RE_SYNTAX_POSIX_BASIC
#define _RE_SYNTAX_POSIX_COMMON
#define RE_SYNTAX_POSIX_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM)
#define RE_SYNTAX_POSIX_MINIMAL_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)
#define RE_SYNTAX_POSIX_EXTENDED
#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED
#define RE_DUP_MAX   (0x7fff)
#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 RE_TRANSLATE_TYPE   char *
#define REGS_UNALLOCATED   0
#define REGS_REALLOCATE   1
#define REGS_FIXED   2
#define RE_NREGS   30
#define _RE_ARGS(args)   ()
#define __restrict
#define __restrict_arr

Typedefs

typedef long int s_reg_t
typedef unsigned long int active_reg_t
typedef unsigned long int 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, 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, 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, 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,
  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/Subroutines

reg_syntax_t re_set_syntax _RE_ARGS ((reg_syntax_t syntax))
const char *re_compile_pattern _RE_ARGS ((const char *pattern, size_t 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 regcomp _RE_ARGS ((regex_t *__restrict __preg, const char *__restrict __pattern, int __cflags))
int regexec _RE_ARGS ((const regex_t *__restrict __preg, const char *__restrict __string, size_t __nmatch, regmatch_t __pmatch[__restrict_arr], 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


Define Documentation

#define __restrict

Definition at line 528 of file xregex2.h.

#define __restrict_arr

Definition at line 537 of file xregex2.h.

#define _RE_ARGS ( args   )     ()

Definition at line 443 of file xregex2.h.

#define _RE_SYNTAX_POSIX_COMMON

#define _REGEX_H   1

Definition at line 23 of file xregex2.h.

#define RE_BACKSLASH_ESCAPE_IN_LISTS   ((unsigned long int) 1)

Definition at line 55 of file xregex2.h.

Referenced by regex_compile().

#define RE_BK_PLUS_QM   (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)

Definition at line 60 of file xregex2.h.

Referenced by regex_compile().

#define RE_CHAR_CLASSES   (RE_BK_PLUS_QM << 1)

Definition at line 66 of file xregex2.h.

Referenced by regex_compile().

#define RE_CONTEXT_INDEP_ANCHORS   (RE_CHAR_CLASSES << 1)

Definition at line 80 of file xregex2.h.

Referenced by regex_compile().

#define RE_CONTEXT_INDEP_OPS   (RE_CONTEXT_INDEP_ANCHORS << 1)

Definition at line 88 of file xregex2.h.

Referenced by regex_compile().

#define RE_CONTEXT_INVALID_OPS   (RE_CONTEXT_INDEP_OPS << 1)

Definition at line 92 of file xregex2.h.

Referenced by regex_compile().

#define RE_DEBUG   (RE_NO_GNU_OPS << 1)

Definition at line 160 of file xregex2.h.

Referenced by re_set_syntax().

#define RE_DOT_NEWLINE   (RE_CONTEXT_INVALID_OPS << 1)

Definition at line 96 of file xregex2.h.

Referenced by re_compile_fastmap(), re_match_2_internal(), regcomp(), and regex_compile().

#define RE_DOT_NOT_NULL   (RE_DOT_NEWLINE << 1)

Definition at line 100 of file xregex2.h.

Referenced by re_match_2_internal().

#define RE_DUP_MAX   (0x7fff)

Definition at line 250 of file xregex2.h.

Referenced by regex_compile().

#define RE_HAT_LISTS_NOT_NEWLINE   (RE_DOT_NOT_NULL << 1)

Definition at line 104 of file xregex2.h.

Referenced by regcomp(), and regex_compile().

#define RE_INTERVALS   (RE_HAT_LISTS_NOT_NEWLINE << 1)

Definition at line 109 of file xregex2.h.

Referenced by regex_compile().

#define RE_INVALID_INTERVAL_ORD   (RE_DEBUG << 1)

Definition at line 165 of file xregex2.h.

#define RE_LIMITED_OPS   (RE_INTERVALS << 1)

Definition at line 113 of file xregex2.h.

Referenced by regex_compile().

#define RE_NEWLINE_ALT   (RE_LIMITED_OPS << 1)

Definition at line 117 of file xregex2.h.

Referenced by regex_compile().

#define RE_NO_BK_BRACES   (RE_NEWLINE_ALT << 1)

Definition at line 122 of file xregex2.h.

Referenced by regex_compile().

#define RE_NO_BK_PARENS   (RE_NO_BK_BRACES << 1)

Definition at line 126 of file xregex2.h.

Referenced by at_begline_loc_p(), at_endline_loc_p(), and regex_compile().

#define RE_NO_BK_REFS   (RE_NO_BK_PARENS << 1)

Definition at line 130 of file xregex2.h.

Referenced by regex_compile().

#define RE_NO_BK_VBAR   (RE_NO_BK_REFS << 1)

Definition at line 134 of file xregex2.h.

Referenced by at_begline_loc_p(), at_endline_loc_p(), and regex_compile().

#define RE_NO_EMPTY_RANGES   (RE_NO_BK_VBAR << 1)

Definition at line 140 of file xregex2.h.

Referenced by compile_range().

#define RE_NO_GNU_OPS   (RE_NO_POSIX_BACKTRACKING << 1)

Definition at line 152 of file xregex2.h.

Referenced by regex_compile().

#define RE_NO_POSIX_BACKTRACKING   (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)

Definition at line 148 of file xregex2.h.

Referenced by regex_compile().

#define RE_NREGS   30

Definition at line 416 of file xregex2.h.

Referenced by re_match_2_internal().

#define RE_SYNTAX_AWK

#define RE_SYNTAX_ED   RE_SYNTAX_POSIX_BASIC

Definition at line 210 of file xregex2.h.

#define RE_SYNTAX_EGREP

#define RE_SYNTAX_EMACS   0

Definition at line 177 of file xregex2.h.

#define RE_SYNTAX_GNU_AWK

#define RE_SYNTAX_GREP

#define RE_SYNTAX_POSIX_AWK

#define RE_SYNTAX_POSIX_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM)

Definition at line 219 of file xregex2.h.

Referenced by regcomp().

#define RE_SYNTAX_POSIX_EGREP

#define RE_SYNTAX_POSIX_EXTENDED

#define RE_SYNTAX_POSIX_MINIMAL_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)

Definition at line 225 of file xregex2.h.

#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED

#define RE_SYNTAX_SED   RE_SYNTAX_POSIX_BASIC

Definition at line 212 of file xregex2.h.

#define RE_TRANSLATE_TYPE   char *

Definition at line 325 of file xregex2.h.

Referenced by re_match_2_internal(), re_search_2(), regcomp(), and regex_compile().

#define RE_UNMATCHED_RIGHT_PAREN_ORD   (RE_NO_EMPTY_RANGES << 1)

Definition at line 144 of file xregex2.h.

Referenced by regex_compile().

#define REG_EXTENDED   1

Definition at line 257 of file xregex2.h.

Referenced by compare_version_strings(), compile_re(), and regcomp().

#define REG_ICASE   (REG_EXTENDED << 1)

Definition at line 261 of file xregex2.h.

Referenced by regcomp().

#define REG_NEWLINE   (REG_ICASE << 1)

Definition at line 266 of file xregex2.h.

Referenced by compile_re(), Disable_opt(), and regcomp().

#define REG_NOSUB   (REG_NEWLINE << 1)

#define REG_NOTBOL   1

Definition at line 280 of file xregex2.h.

Referenced by FIX_PROC_HEAD(), regexec(), and TEST_FOR_FIX_PROC_HEAD().

#define REG_NOTEOL   (1 << 1)

Definition at line 283 of file xregex2.h.

Referenced by regexec().

#define REGS_FIXED   2

Definition at line 372 of file xregex2.h.

Referenced by re_match_2_internal(), and regexec().

#define REGS_REALLOCATE   1

Definition at line 371 of file xregex2.h.

Referenced by re_match_2_internal(), and re_set_registers().

#define REGS_UNALLOCATED   0

Definition at line 370 of file xregex2.h.

Referenced by re_compile_pattern(), re_match_2_internal(), and re_set_registers().


Typedef Documentation

typedef unsigned long int active_reg_t

Definition at line 44 of file xregex2.h.

typedef unsigned long int reg_syntax_t

Definition at line 51 of file xregex2.h.

Definition at line 396 of file xregex2.h.

typedef int regoff_t

Definition at line 399 of file xregex2.h.

typedef long int s_reg_t

Definition at line 43 of file xregex2.h.


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 
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 
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 
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 
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 

Definition at line 288 of file xregex2.h.


Function Documentation

void regfree _RE_ARGS ( (regex_t *__preg)   ) 

size_t regerror _RE_ARGS ( (int __errcode, const regex_t *__preg, char *__errbuf, size_t __errbuf_size)   ) 

int regexec _RE_ARGS ( (const regex_t *__restrict __preg, const char *__restrict __string, size_t __nmatch, regmatch_t __pmatch[__restrict_arr], int __eflags)   ) 

int regcomp _RE_ARGS ( (regex_t *__restrict __preg, const char *__restrict __pattern, int __cflags)   ) 

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_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)   ) 

int re_match _RE_ARGS ( (struct re_pattern_buffer *buffer, const char *string, int length, int start, 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_search _RE_ARGS ( (struct re_pattern_buffer *buffer, const char *string, int length, int start, int range, struct re_registers *regs  ) 

int re_compile_fastmap _RE_ARGS ( (struct re_pattern_buffer *buffer  ) 

const char *re_compile_pattern _RE_ARGS ( (const char *pattern, size_t length, struct re_pattern_buffer *buffer  ) 

reg_syntax_t re_set_syntax _RE_ARGS ( (reg_syntax_t syntax)   ) 


Variable Documentation

Definition at line 1350 of file regex.c.


Generated on Wed Apr 8 15:01:32 2009 for Open64 by  doxygen 1.5.6