#include <sys/types.h>
Go to the source code of this file.
Classes | |
struct | re_pattern_buffer |
struct | re_registers |
struct | regmatch_t |
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 |
#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_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_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_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_SYNTAX_AWK |
#define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC |
#define RE_SYNTAX_EGREP |
#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_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES << 1) |
#define REG_ICASE (REG_EXTENDED << 1) |
#define REG_NOSUB (REG_NEWLINE << 1) |
typedef unsigned long int active_reg_t |
typedef unsigned long int reg_syntax_t |
typedef struct re_pattern_buffer regex_t |
enum reg_errcode_t |
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 | ) |
reg_syntax_t re_syntax_options |