Classes | Macros | Typedefs | Enumerations | Functions | Variables
gkregex.h File Reference
#include <sys/types.h>
Include dependency graph for gkregex.h:

Go to the source code of this file.

Classes

struct  re_pattern_buffer
 
struct  re_registers
 
struct  regmatch_t
 

Macros

#define __restrict
 
#define __restrict_arr
 
#define _RE_SYNTAX_POSIX_COMMON
 
#define RE_BACKSLASH_ESCAPE_IN_LISTS   ((unsigned long int) 1)
 
#define RE_BK_PLUS_QM   (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)
 
#define RE_CARET_ANCHORS_HERE   (RE_ICASE << 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_DUP   (RE_CARET_ANCHORS_HERE << 1)
 
#define RE_CONTEXT_INVALID_OPS   (RE_CONTEXT_INDEP_OPS << 1)
 
#define RE_DEBUG   (RE_NO_GNU_OPS << 1)
 
#define RE_DOT_NEWLINE   (RE_CONTEXT_INVALID_OPS << 1)
 
#define RE_DOT_NOT_NULL   (RE_DOT_NEWLINE << 1)
 
#define RE_DUP_MAX   (0x7fff)
 
#define RE_HAT_LISTS_NOT_NEWLINE   (RE_DOT_NOT_NULL << 1)
 
#define RE_ICASE   (RE_INVALID_INTERVAL_ORD << 1)
 
#define RE_INTERVALS   (RE_HAT_LISTS_NOT_NEWLINE << 1)
 
#define RE_INVALID_INTERVAL_ORD   (RE_DEBUG << 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_NO_GNU_OPS   (RE_NO_POSIX_BACKTRACKING << 1)
 
#define RE_NO_POSIX_BACKTRACKING   (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)
 
#define RE_NO_SUB   (RE_CONTEXT_INVALID_DUP << 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_GNU_AWK
 
#define RE_SYNTAX_GREP
 
#define RE_SYNTAX_POSIX_AWK
 
#define RE_SYNTAX_POSIX_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM | RE_CONTEXT_INVALID_DUP)
 
#define RE_SYNTAX_POSIX_EGREP
 
#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_TRANSLATE_TYPE   unsigned char *
 
#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 REG_STARTEND   (1 << 2)
 
#define REGS_FIXED   2
 
#define REGS_REALLOCATE   1
 
#define REGS_UNALLOCATED   0
 

Typedefs

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
 
typedef long int s_reg_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

int re_compile_fastmap (struct re_pattern_buffer *__buffer)
 
const char * re_compile_pattern (const char *__pattern, size_t __length, struct re_pattern_buffer *__buffer)
 
int re_match (struct re_pattern_buffer *__buffer, const char *__string, int __length, int __start, struct re_registers *__regs)
 
int re_match_2 (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_search (struct re_pattern_buffer *__buffer, const char *__string, int __length, int __start, int __range, struct re_registers *__regs)
 
int re_search_2 (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)
 
void re_set_registers (struct re_pattern_buffer *__buffer, struct re_registers *__regs, unsigned int __num_regs, regoff_t *__starts, regoff_t *__ends)
 
reg_syntax_t re_set_syntax (reg_syntax_t __syntax)
 
int regcomp (regex_t *__restrict __preg, const char *__restrict __pattern, int __cflags)
 
size_t regerror (int __errcode, const regex_t *__restrict __preg, char *__restrict __errbuf, size_t __errbuf_size)
 
int regexec (const regex_t *__restrict __preg, const char *__restrict __string, size_t __nmatch, regmatch_t __pmatch[__restrict_arr], int __eflags)
 
void regfree (regex_t *__preg)
 

Variables

reg_syntax_t re_syntax_options
 

Macro Definition Documentation

◆ __restrict

#define __restrict

Definition at line 522 of file gkregex.h.

◆ __restrict_arr

#define __restrict_arr

Definition at line 532 of file gkregex.h.

◆ _RE_SYNTAX_POSIX_COMMON

#define _RE_SYNTAX_POSIX_COMMON

◆ RE_BACKSLASH_ESCAPE_IN_LISTS

#define RE_BACKSLASH_ESCAPE_IN_LISTS   ((unsigned long int) 1)

Definition at line 48 of file gkregex.h.

◆ RE_BK_PLUS_QM

#define RE_BK_PLUS_QM   (RE_BACKSLASH_ESCAPE_IN_LISTS << 1)

Definition at line 53 of file gkregex.h.

◆ RE_CARET_ANCHORS_HERE

#define RE_CARET_ANCHORS_HERE   (RE_ICASE << 1)

Definition at line 167 of file gkregex.h.

◆ RE_CHAR_CLASSES

#define RE_CHAR_CLASSES   (RE_BK_PLUS_QM << 1)

Definition at line 59 of file gkregex.h.

◆ RE_CONTEXT_INDEP_ANCHORS

#define RE_CONTEXT_INDEP_ANCHORS   (RE_CHAR_CLASSES << 1)

Definition at line 73 of file gkregex.h.

◆ RE_CONTEXT_INDEP_OPS

#define RE_CONTEXT_INDEP_OPS   (RE_CONTEXT_INDEP_ANCHORS << 1)

Definition at line 81 of file gkregex.h.

◆ RE_CONTEXT_INVALID_DUP

#define RE_CONTEXT_INVALID_DUP   (RE_CARET_ANCHORS_HERE << 1)

Definition at line 171 of file gkregex.h.

◆ RE_CONTEXT_INVALID_OPS

#define RE_CONTEXT_INVALID_OPS   (RE_CONTEXT_INDEP_OPS << 1)

Definition at line 85 of file gkregex.h.

◆ RE_DEBUG

#define RE_DEBUG   (RE_NO_GNU_OPS << 1)

Definition at line 153 of file gkregex.h.

◆ RE_DOT_NEWLINE

#define RE_DOT_NEWLINE   (RE_CONTEXT_INVALID_OPS << 1)

Definition at line 89 of file gkregex.h.

◆ RE_DOT_NOT_NULL

#define RE_DOT_NOT_NULL   (RE_DOT_NEWLINE << 1)

Definition at line 93 of file gkregex.h.

◆ RE_DUP_MAX

#define RE_DUP_MAX   (0x7fff)

Definition at line 261 of file gkregex.h.

◆ RE_HAT_LISTS_NOT_NEWLINE

#define RE_HAT_LISTS_NOT_NEWLINE   (RE_DOT_NOT_NULL << 1)

Definition at line 97 of file gkregex.h.

◆ RE_ICASE

#define RE_ICASE   (RE_INVALID_INTERVAL_ORD << 1)

Definition at line 162 of file gkregex.h.

◆ RE_INTERVALS

#define RE_INTERVALS   (RE_HAT_LISTS_NOT_NEWLINE << 1)

Definition at line 102 of file gkregex.h.

◆ RE_INVALID_INTERVAL_ORD

#define RE_INVALID_INTERVAL_ORD   (RE_DEBUG << 1)

Definition at line 158 of file gkregex.h.

◆ RE_LIMITED_OPS

#define RE_LIMITED_OPS   (RE_INTERVALS << 1)

Definition at line 106 of file gkregex.h.

◆ RE_NEWLINE_ALT

#define RE_NEWLINE_ALT   (RE_LIMITED_OPS << 1)

Definition at line 110 of file gkregex.h.

◆ RE_NO_BK_BRACES

#define RE_NO_BK_BRACES   (RE_NEWLINE_ALT << 1)

Definition at line 115 of file gkregex.h.

◆ RE_NO_BK_PARENS

#define RE_NO_BK_PARENS   (RE_NO_BK_BRACES << 1)

Definition at line 119 of file gkregex.h.

◆ RE_NO_BK_REFS

#define RE_NO_BK_REFS   (RE_NO_BK_PARENS << 1)

Definition at line 123 of file gkregex.h.

◆ RE_NO_BK_VBAR

#define RE_NO_BK_VBAR   (RE_NO_BK_REFS << 1)

Definition at line 127 of file gkregex.h.

◆ RE_NO_EMPTY_RANGES

#define RE_NO_EMPTY_RANGES   (RE_NO_BK_VBAR << 1)

Definition at line 133 of file gkregex.h.

◆ RE_NO_GNU_OPS

#define RE_NO_GNU_OPS   (RE_NO_POSIX_BACKTRACKING << 1)

Definition at line 145 of file gkregex.h.

◆ RE_NO_POSIX_BACKTRACKING

#define RE_NO_POSIX_BACKTRACKING   (RE_UNMATCHED_RIGHT_PAREN_ORD << 1)

Definition at line 141 of file gkregex.h.

◆ RE_NO_SUB

#define RE_NO_SUB   (RE_CONTEXT_INVALID_DUP << 1)

Definition at line 175 of file gkregex.h.

◆ RE_NREGS

#define RE_NREGS   30

Definition at line 427 of file gkregex.h.

◆ RE_SYNTAX_AWK

#define RE_SYNTAX_AWK

◆ RE_SYNTAX_ED

#define RE_SYNTAX_ED   RE_SYNTAX_POSIX_BASIC

Definition at line 221 of file gkregex.h.

◆ RE_SYNTAX_EGREP

#define RE_SYNTAX_EGREP

◆ RE_SYNTAX_EMACS

#define RE_SYNTAX_EMACS   0

Definition at line 187 of file gkregex.h.

◆ RE_SYNTAX_GNU_AWK

#define RE_SYNTAX_GNU_AWK

◆ RE_SYNTAX_GREP

#define RE_SYNTAX_GREP

◆ RE_SYNTAX_POSIX_AWK

#define RE_SYNTAX_POSIX_AWK

◆ RE_SYNTAX_POSIX_BASIC

#define RE_SYNTAX_POSIX_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM | RE_CONTEXT_INVALID_DUP)

Definition at line 230 of file gkregex.h.

◆ RE_SYNTAX_POSIX_EGREP

#define RE_SYNTAX_POSIX_EGREP
Value:

Definition at line 216 of file gkregex.h.

◆ RE_SYNTAX_POSIX_EXTENDED

#define RE_SYNTAX_POSIX_EXTENDED

◆ RE_SYNTAX_POSIX_MINIMAL_BASIC

#define RE_SYNTAX_POSIX_MINIMAL_BASIC   (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS)

Definition at line 236 of file gkregex.h.

◆ RE_SYNTAX_POSIX_MINIMAL_EXTENDED

#define RE_SYNTAX_POSIX_MINIMAL_EXTENDED

◆ RE_SYNTAX_SED

#define RE_SYNTAX_SED   RE_SYNTAX_POSIX_BASIC

Definition at line 223 of file gkregex.h.

◆ RE_TRANSLATE_TYPE

#define RE_TRANSLATE_TYPE   unsigned char *

Definition at line 340 of file gkregex.h.

◆ RE_UNMATCHED_RIGHT_PAREN_ORD

#define RE_UNMATCHED_RIGHT_PAREN_ORD   (RE_NO_EMPTY_RANGES << 1)

Definition at line 137 of file gkregex.h.

◆ REG_EXTENDED

#define REG_EXTENDED   1

Definition at line 268 of file gkregex.h.

◆ REG_ICASE

#define REG_ICASE   (REG_EXTENDED << 1)

Definition at line 272 of file gkregex.h.

◆ REG_NEWLINE

#define REG_NEWLINE   (REG_ICASE << 1)

Definition at line 277 of file gkregex.h.

◆ REG_NOSUB

#define REG_NOSUB   (REG_NEWLINE << 1)

Definition at line 281 of file gkregex.h.

◆ REG_NOTBOL

#define REG_NOTBOL   1

Definition at line 291 of file gkregex.h.

◆ REG_NOTEOL

#define REG_NOTEOL   (1 << 1)

Definition at line 294 of file gkregex.h.

◆ REG_STARTEND

#define REG_STARTEND   (1 << 2)

Definition at line 298 of file gkregex.h.

◆ REGS_FIXED

#define REGS_FIXED   2

Definition at line 385 of file gkregex.h.

◆ REGS_REALLOCATE

#define REGS_REALLOCATE   1

Definition at line 384 of file gkregex.h.

◆ REGS_UNALLOCATED

#define REGS_UNALLOCATED   0

Definition at line 383 of file gkregex.h.

Typedef Documentation

◆ active_reg_t

typedef unsigned long int active_reg_t

Definition at line 37 of file gkregex.h.

◆ reg_syntax_t

typedef unsigned long int reg_syntax_t

Definition at line 44 of file gkregex.h.

◆ regex_t

typedef struct re_pattern_buffer regex_t

Definition at line 407 of file gkregex.h.

◆ regoff_t

typedef int regoff_t

Definition at line 410 of file gkregex.h.

◆ s_reg_t

typedef long int s_reg_t

Definition at line 36 of file gkregex.h.

Enumeration Type Documentation

◆ reg_errcode_t

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 

Definition at line 303 of file gkregex.h.

Function Documentation

◆ re_compile_fastmap()

int re_compile_fastmap ( struct re_pattern_buffer __buffer)

◆ re_compile_pattern()

const char* re_compile_pattern ( const char *  __pattern,
size_t  __length,
struct re_pattern_buffer __buffer 
)

◆ re_match()

int re_match ( struct re_pattern_buffer __buffer,
const char *  __string,
int  __length,
int  __start,
struct re_registers __regs 
)

◆ re_match_2()

int re_match_2 ( struct re_pattern_buffer __buffer,
const char *  __string1,
int  __length1,
const char *  __string2,
int  __length2,
int  __start,
struct re_registers __regs,
int  __stop 
)

◆ re_search()

int re_search ( struct re_pattern_buffer __buffer,
const char *  __string,
int  __length,
int  __start,
int  __range,
struct re_registers __regs 
)

◆ re_search_2()

int re_search_2 ( 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 
)

◆ re_set_registers()

void re_set_registers ( struct re_pattern_buffer __buffer,
struct re_registers __regs,
unsigned int  __num_regs,
regoff_t __starts,
regoff_t __ends 
)

◆ re_set_syntax()

reg_syntax_t re_set_syntax ( reg_syntax_t  __syntax)

◆ regcomp()

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

◆ regerror()

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

◆ regexec()

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

◆ regfree()

void regfree ( regex_t __preg)

Variable Documentation

◆ re_syntax_options

reg_syntax_t re_syntax_options
RE_BK_PLUS_QM
#define RE_BK_PLUS_QM
Definition: gkregex.h:53
RE_DEBUG
#define RE_DEBUG
Definition: gkregex.h:153
RE_INTERVALS
#define RE_INTERVALS
Definition: gkregex.h:102
_RE_SYNTAX_POSIX_COMMON
#define _RE_SYNTAX_POSIX_COMMON
Definition: gkregex.h:226
RE_NO_BK_PARENS
#define RE_NO_BK_PARENS
Definition: gkregex.h:119
RE_NO_BK_BRACES
#define RE_NO_BK_BRACES
Definition: gkregex.h:115
RE_DOT_NOT_NULL
#define RE_DOT_NOT_NULL
Definition: gkregex.h:93
RE_NO_BK_VBAR
#define RE_NO_BK_VBAR
Definition: gkregex.h:127
RE_DOT_NEWLINE
#define RE_DOT_NEWLINE
Definition: gkregex.h:89
RE_SYNTAX_EGREP
#define RE_SYNTAX_EGREP
Definition: gkregex.h:210
RE_HAT_LISTS_NOT_NEWLINE
#define RE_HAT_LISTS_NOT_NEWLINE
Definition: gkregex.h:97
RE_UNMATCHED_RIGHT_PAREN_ORD
#define RE_UNMATCHED_RIGHT_PAREN_ORD
Definition: gkregex.h:137
RE_NO_EMPTY_RANGES
#define RE_NO_EMPTY_RANGES
Definition: gkregex.h:133
RE_CONTEXT_INDEP_OPS
#define RE_CONTEXT_INDEP_OPS
Definition: gkregex.h:81
RE_BACKSLASH_ESCAPE_IN_LISTS
#define RE_BACKSLASH_ESCAPE_IN_LISTS
Definition: gkregex.h:48
RE_CONTEXT_INVALID_OPS
#define RE_CONTEXT_INVALID_OPS
Definition: gkregex.h:85
RE_NO_BK_REFS
#define RE_NO_BK_REFS
Definition: gkregex.h:123
RE_INVALID_INTERVAL_ORD
#define RE_INVALID_INTERVAL_ORD
Definition: gkregex.h:158
RE_NEWLINE_ALT
#define RE_NEWLINE_ALT
Definition: gkregex.h:110
RE_CONTEXT_INDEP_ANCHORS
#define RE_CONTEXT_INDEP_ANCHORS
Definition: gkregex.h:73
RE_CHAR_CLASSES
#define RE_CHAR_CLASSES
Definition: gkregex.h:59
RE_SYNTAX_POSIX_EXTENDED
#define RE_SYNTAX_POSIX_EXTENDED
Definition: gkregex.h:239
RE_NO_GNU_OPS
#define RE_NO_GNU_OPS
Definition: gkregex.h:145


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:09:47