#include <ansidecl.h>#include <sys/types.h>#include <strings.h>#include "xregex.h"#include <ctype.h>#include "regex.c"


Go to the source code of this file.
| #define REGEX_REALLOCATE | ( | source, | |||
| osize, | |||||
| nsize | ) |
| #define SYNTAX | ( | c | ) | re_syntax_table[(unsigned char) (c)] |
| #define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) |
| enum re_opcode_t |
| static int byte_re_compile_fastmap | ( | struct re_pattern_buffer * | bufp | ) | [static] |
Referenced by re_compile_fastmap().
| static int byte_re_match_2_internal | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | pos, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) | [static] |
Referenced by re_match(), and re_match_2().
| static int byte_re_search_2 | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | startpos, | |||
| int | range, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) | [static] |
Referenced by re_search_2().
| static reg_errcode_t byte_regex_compile | ( | const char * | pattern, | |
| size_t | size, | |||
| reg_syntax_t | syntax, | |||
| struct re_pattern_buffer * | bufp | |||
| ) | [static] |
Referenced by re_compile_pattern(), and regcomp().
| static boolean group_in_compile_stack | ( | compile_stack_type | compile_stack, | |
| regnum_t | regnum | |||
| ) | [static] |
Definition at line 4327 of file regex.c.
References compile_stack_type::avail, compile_stack_elt_t::regnum, and compile_stack_type::stack.
Definition at line 277 of file regex.c.
References bzero(), c, CHAR_SET_SIZE, ISALNUM, re_syntax_table, and Sword.
| char* malloc | ( | ) |
| int re_compile_fastmap | ( | struct re_pattern_buffer * | bufp | ) |
| const char* re_compile_pattern | ( | const char * | pattern, | |
| size_t | length, | |||
| struct re_pattern_buffer * | bufp | |||
| ) |
Definition at line 7765 of file regex.c.
References byte_regex_compile(), gettext, re_pattern_buffer::newline_anchor, re_pattern_buffer::no_sub, NULL, re_pattern_buffer::regs_allocated, and REGS_UNALLOCATED.
| int re_match | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string, | |||
| int | size, | |||
| int | pos, | |||
| struct re_registers * | regs | |||
| ) |
| int re_match_2 | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | pos, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) |
| int re_search | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string, | |||
| int | size, | |||
| int | startpos, | |||
| int | range, | |||
| struct re_registers * | regs | |||
| ) |
| int re_search_2 | ( | struct re_pattern_buffer * | bufp, | |
| const char * | string1, | |||
| int | size1, | |||
| const char * | string2, | |||
| int | size2, | |||
| int | startpos, | |||
| int | range, | |||
| struct re_registers * | regs, | |||
| int | stop | |||
| ) |
| void re_set_registers | ( | struct re_pattern_buffer * | bufp, | |
| struct re_registers * | regs, | |||
| unsigned | num_regs, | |||
| regoff_t * | starts, | |||
| regoff_t * | ends | |||
| ) |
Definition at line 4888 of file regex.c.
References re_registers::end, re_registers::num_regs, re_pattern_buffer::regs_allocated, REGS_REALLOCATE, REGS_UNALLOCATED, and re_registers::start.
| reg_syntax_t re_set_syntax | ( | reg_syntax_t | syntax | ) |
| char* realloc | ( | ) |
| int regcomp | ( | regex_t * | preg, | |
| const char * | pattern, | |||
| int | cflags | |||
| ) |
Definition at line 7909 of file regex.c.
References re_pattern_buffer::allocated, re_pattern_buffer::buffer, byte_regex_compile(), CHAR_SET_SIZE, re_pattern_buffer::fastmap, free(), ISUPPER, malloc, re_pattern_buffer::newline_anchor, re_pattern_buffer::no_sub, NULL, re_compile_fastmap, RE_SYNTAX_POSIX_BASIC, RE_SYNTAX_POSIX_EXTENDED, RE_TRANSLATE_TYPE, REG_EPAREN, REG_ERPAREN, REG_ESPACE, REG_EXTENDED, REG_ICASE, REG_NEWLINE, REG_NOERROR, REG_NOSUB, strlen(), TOLOWER, re_pattern_buffer::translate, and re_pattern_buffer::used.
| int regexec | ( | const regex_t * | preg, | |
| const char * | string, | |||
| size_t | nmatch, | |||
| regmatch_t | pmatch[], | |||
| int | eflags | |||
| ) |
Definition at line 8002 of file regex.c.
References re_registers::end, free(), re_pattern_buffer::no_sub, re_pattern_buffer::not_bol, NULL, re_registers::num_regs, re_search, REG_NOERROR, REG_NOMATCH, REG_NOTBOL, REG_NOTEOL, REGS_FIXED, regmatch_t::rm_eo, regmatch_t::rm_so, re_registers::start, strlen(), and TALLOC.
Definition at line 8109 of file regex.c.
References re_pattern_buffer::allocated, re_pattern_buffer::buffer, re_pattern_buffer::fastmap, re_pattern_buffer::fastmap_accurate, free(), NULL, re_pattern_buffer::translate, and re_pattern_buffer::used.
const char* re_error_msgid[] [static] |
Initial value:
{
gettext_noop ("Success"),
gettext_noop ("No match"),
gettext_noop ("Invalid regular expression"),
gettext_noop ("Invalid collation character"),
gettext_noop ("Invalid character class name"),
gettext_noop ("Trailing backslash"),
gettext_noop ("Invalid back reference"),
gettext_noop ("Unmatched [ or [^"),
gettext_noop ("Unmatched ( or \\("),
gettext_noop ("Unmatched \\{"),
gettext_noop ("Invalid content of \\{\\}"),
gettext_noop ("Invalid range end"),
gettext_noop ("Memory exhausted"),
gettext_noop ("Invalid preceding regular expression"),
gettext_noop ("Premature end of regular expression"),
gettext_noop ("Regular expression too big"),
gettext_noop ("Unmatched ) or \\)")
}
char re_syntax_table[CHAR_SET_SIZE] [static] |
1.5.6