PPL Logo

libs/ck-libs/metis/GKlib/gkregex.h File Reference

Go to the source code of this file.

Data Structures

struct  re_pattern_buffer
struct  re_registers
struct  regmatch_t

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

Variables

reg_syntax_t re_syntax_options


Typedef Documentation

typedef long int s_reg_t

Definition at line 36 of file gkregex.h.

typedef unsigned long int active_reg_t

Definition at line 37 of file gkregex.h.

typedef unsigned long int reg_syntax_t

Definition at line 44 of file gkregex.h.

typedef struct re_pattern_buffer regex_t

Definition at line 407 of file gkregex.h.

typedef int regoff_t

Definition at line 410 of file gkregex.h.


Enumeration Type Documentation

Enumerator:
REG_ENOSYS 
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

reg_syntax_t re_set_syntax ( reg_syntax_t  __syntax  ) 

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

int re_compile_fastmap ( struct re_pattern_buffer __buffer  ) 

Referenced by re_search_stub(), and regcomp().

Here is the caller graph for this function:

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 
)

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

Definition at line 6671 of file gkregex.c.

References re_search_stub().

Here is the call graph for this function:

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 
)

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

char* re_comp ( const char *   ) 

int re_exec ( const char *   ) 

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

Definition at line 3022 of file gkregex.c.

References re_compile_fastmap(), re_compile_internal(), REG_EPAREN, REG_ERPAREN, REG_ESPACE, and REG_NOERROR.

Referenced by gk_strstr_replace(), and match().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Referenced by gk_strstr_replace().

Here is the caller graph for this function:

void regfree ( regex_t __preg  ) 

Definition at line 3193 of file gkregex.c.

References free_dfa_content().

Referenced by gk_strstr_replace(), and match().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Referenced by re_compile_pattern(), and weak_alias().


Generated on Mon Sep 21 08:08:52 2020 for Charm++ by  doxygen 1.5.5