
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 _RE_SYNTAX_POSIX_COMMON |
Value:
| #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_DEBUG (RE_NO_GNU_OPS << 1) |
| #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) |
| #define RE_DUP_MAX (0x7fff) |
| #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) |
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) |
| #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) |
| #define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING << 1) |
| #define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD << 1) |
| #define RE_NREGS 30 |
| #define RE_SYNTAX_AWK |
| #define RE_SYNTAX_EGREP |
Value:
| #define RE_SYNTAX_GNU_AWK |
Value:
| #define RE_SYNTAX_GREP |
Value:
| #define RE_SYNTAX_POSIX_AWK |
Value:
| #define RE_SYNTAX_POSIX_BASIC (_RE_SYNTAX_POSIX_COMMON | RE_BK_PLUS_QM) |
| #define RE_SYNTAX_POSIX_EGREP |
Value:
| #define RE_SYNTAX_POSIX_EXTENDED |
Value:
(_RE_SYNTAX_POSIX_COMMON | RE_CONTEXT_INDEP_ANCHORS \ | RE_CONTEXT_INDEP_OPS | RE_NO_BK_BRACES \ | RE_NO_BK_PARENS | RE_NO_BK_VBAR \ | RE_CONTEXT_INVALID_OPS | RE_UNMATCHED_RIGHT_PAREN_ORD)
Definition at line 228 of file xregex2.h.
Referenced by regcomp().
| #define RE_SYNTAX_POSIX_MINIMAL_BASIC (_RE_SYNTAX_POSIX_COMMON | RE_LIMITED_OPS) |
| #define RE_SYNTAX_POSIX_MINIMAL_EXTENDED |
| #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) |
| #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) |
| #define REG_NEWLINE (REG_ICASE << 1) |
| #define REG_NOSUB (REG_NEWLINE << 1) |
Definition at line 270 of file xregex2.h.
Referenced by compare_version_strings(), compile_re(), Disable_opt(), fr30_cgen_build_insn_regex(), frv_cgen_build_insn_regex(), ip2k_cgen_build_insn_regex(), iq2000_cgen_build_insn_regex(), m32r_cgen_build_insn_regex(), openrisc_cgen_build_insn_regex(), regcomp(), and xstormy16_cgen_build_insn_regex().
| #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 REGS_FIXED 2 |
| #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 unsigned long int active_reg_t |
| typedef unsigned long int reg_syntax_t |
| typedef struct re_pattern_buffer regex_t |
| enum reg_errcode_t |
| 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) | ) |
1.5.6