#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 BYTEWIDTH 8 |
Definition at line 405 of file regex.c.
Referenced by re_compile_fastmap(), re_match_2_internal(), regcomp(), and regex_compile().
| #define CHAR_SET_SIZE 256 |
| #define false 0 |
Definition at line 415 of file regex.c.
Referenced by DIPA_Phase_Manager::Do_IPA(), OPT_FEEDBACK::Emit_feedback(), and reconstruct_CFG().
Definition at line 170 of file regex.c.
Referenced by _bfd_ecoff_swap_rndx_in(), _bfd_ecoff_swap_rndx_out(), _bfd_ecoff_swap_tir_in(), _bfd_ecoff_swap_tir_out(), _bfd_elf_section_already_linked(), _bfd_link_section_stabs(), _cpp_equiv_tokens(), _cpp_expansions_different_trad(), _elf_arhdr(), _elf_check_type(), _elf_init_ar(), _fcd_cmp_eq(), _fcd_cmp_gt(), _fcd_cmp_lt(), _find_dupcnt(), _strip_mine(), bcmp(), bundle_state_eq_p(), c_common_valid_pch(), char_rep(), check_trad_stringification(), cie_compare(), compare_constant(), compare_constant_rtx(), cp_tree_equal(), cplus_demangle_opname(), cplus_mangle_opname(), cpp_string_eq(), cpp_valid_state(), create_go32_stub(), d_identifier(), default_pch_valid_p(), demangle_expression(), demangle_function_name(), dump_switch_p(), dump_switch_p_1(), elf32_frvfdpic_relax_section(), Evaluate_phi(), expand_builtin_memcmp(), ffetarget_cmp_character1(), ffetarget_cmp_hollerith(), ffetarget_eq_character1(), ffetarget_ge_character1(), ffetarget_gt_character1(), ffetarget_le_character1(), ffetarget_lt_character1(), ffetarget_ne_character1(), find_answer(), find_param_structure(), fold_build1_stat(), fold_build2_stat(), fold_build3_stat(), fold_builtin_memcmp(), get_base_file_bitmap(), get_file_basename(), get_output_file_with_visibility(), get_special_section(), ht_lookup(), ht_lookup_with_hash(), iq2000_elf_check_relocs(), is_suffix(), SUMMARY_ENTRY_CACHE::Lookup(), m32c_const_ok_for_constraint_p(), m32c_extra_constraint_p2(), m32c_reg_class_from_constraint(), name_is_method_p(), opcodes_eq(), operand_equal_p(), STR_TAB< STR >::equal::operator()(), eq_const_st::operator()(), eq_tcon::operator()(), operator==(), output_reserv_sets(), overloaded_jni_method_exists_p(), PARAMS(), pch_init(), pchf_compare(), pchf_save_compare(), pstrcmp(), re_match_2_internal(), s_cmp(), sbitmap_equal(), sec_merge_hash_lookup(), sh_pch_valid_p(), should_stack_file(), simple_cst_equal(), TB_get_command(), TB_get_tree_code(), and Values_are_cprop_equivalent().
| #define REGEX_REALLOCATE | ( | source, | |||
| osize, | |||||
| nsize | ) |
| #define SWITCH_ENUM_CAST | ( | x | ) | (x) |
Definition at line 189 of file regex.c.
Referenced by re_compile_fastmap(), and re_match_2_internal().
| #define Sword 1 |
Definition at line 183 of file regex.c.
Referenced by init_syntax_once(), re_compile_fastmap(), and re_match_2_internal().
| #define SYNTAX | ( | c | ) | re_syntax_table[(unsigned char) (c)] |
Definition at line 307 of file regex.c.
Referenced by re_compile_fastmap(), and re_match_2_internal().
Definition at line 399 of file regex.c.
Referenced by re_match_2_internal(), regex_compile(), and regexec().
| #define WIDE_CHAR_SUPPORT (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC) |
| enum re_opcode_t |
| static reg_errcode_t byte_regex_compile _RE_ARGS | ( | (const char *pattern, size_t size, reg_syntax_t syntax, struct re_pattern_buffer *bufp) | ) | [static] |
| static boolean group_in_compile_stack | ( | compile_stack_type | compile_stack, | |
| regnum_t | regnum | |||
| ) | [static] |
Definition at line 287 of file regex.c.
References bzero(), c, CHAR_SET_SIZE, ISALNUM, re_syntax_table, and Sword.
Referenced by regex_compile().
| char* malloc | ( | ) |
| static int byte_re_compile_fastmap PARAMS | ( | (struct re_pattern_buffer *bufp) | ) | [static] |
| static int byte_re_search_2 PARAMS | ( | (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] |
| static int byte_re_match_2_internal PARAMS | ( | (struct re_pattern_buffer *bufp, const char *string1, int size1, const char *string2, int size2, int pos, struct re_registers *regs, int stop) | ) | [static] |
Definition at line 77 of file cplus-dem.c.
| int re_compile_fastmap | ( | struct re_pattern_buffer * | bufp | ) |
| const char* re_compile_pattern | ( | char * | pattern, | |
| size_t | length, | |||
| struct re_pattern_buffer * | bufp | |||
| ) | const |
Definition at line 7873 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 | |||
| ) |
| 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 8021 of file regex.c.
References byte_regex_compile(), CHAR_SET_SIZE, free(), ISUPPER, malloc, 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(), and TOLOWER.
Definition at line 8117 of file regex.c.
References re_registers::end, free(), 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.
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