/* search.c - searching subroutines using dfa, kwset and regex for grep. Copyright 1992, 1998, 2000, 2007, 2009-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef GREP_SEARCH_H #define GREP_SEARCH_H 1 #include #include #include "mbsupport.h" #include #include #include #include "system.h" #include "error.h" #include "grep.h" #include "kwset.h" #include "xalloc.h" /* searchutils.c */ void kwsinit (kwset_t *); #if MBS_SUPPORT char * mbtolower (const char *, size_t *); bool is_mb_middle(const char **, const char *, const char *, size_t); #endif /* dfasearch.c */ void GEAcompile (char const *, size_t, reg_syntax_t); size_t EGexecute (char const *, size_t, size_t *, char const *); /* kwsearch.c */ void Fcompile (char const *, size_t); size_t Fexecute (char const *, size_t, size_t *, char const *); /* pcresearch.c */ void Pcompile (char const *, size_t); size_t Pexecute (char const *, size_t, size_t *, char const *); #endif /* GREP_SEARCH_H */