xref: /freebsd-11-stable/usr.bin/grep/regex/tre-fastmatch.h (revision 8fa0b743820f61c661ba5f3ea0e3be0dc137910e)
1 /* $FreeBSD$ */
2 
3 #ifndef TRE_FASTMATCH_H
4 #define TRE_FASTMATCH_H 1
5 
6 #include <fastmatch.h>
7 #include <hashtable.h>
8 #include <limits.h>
9 #include <regex.h>
10 #include <stdbool.h>
11 
12 #include "hashtable.h"
13 
14 int	tre_compile_literal(fastmatch_t *preg, const tre_char_t *regex,
15 	    size_t, int);
16 int	tre_compile_fast(fastmatch_t *preg, const tre_char_t *regex, size_t, int);
17 int	tre_match_fast(const fastmatch_t *fg, const void *data, size_t len,
18 	    tre_str_type_t type, int nmatch, regmatch_t pmatch[], int eflags);
19 void	tre_free_fast(fastmatch_t *preg);
20 
21 #endif		/* TRE_FASTMATCH_H */
22