1 /* search.c - searching subroutines using dfa, kwset and regex for grep.
2 Copyright 1992, 1998, 2000, 2007, 2009-2012 Free Software Foundation, Inc.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20 #define GREP_SEARCH_H 1
24 #include <sys/types.h>
26 #include "mbsupport.h"
39 extern void kwsinit (kwset_t *);
41 extern char *mbtolower (const char *, size_t *);
42 extern bool is_mb_middle (const char **, const char *, const char *, size_t);
45 extern void GEAcompile (char const *, size_t, reg_syntax_t);
46 extern size_t EGexecute (char const *, size_t, size_t *, char const *);
49 extern void Fcompile (char const *, size_t);
50 extern size_t Fexecute (char const *, size_t, size_t *, char const *);
53 extern void Pcompile (char const *, size_t);
54 extern size_t Pexecute (char const *, size_t, size_t *, char const *);
56 #endif /* GREP_SEARCH_H */