Merge commit 'bf62a5c5b223db5d80a4a241cf0cfb34f8c8ca73'
[unleashed.git] / bin / grep / regex / tre-fastmatch.h
blobf72397c58c339bee6b1dfefad151bd416059141f
1 /* $FreeBSD$ */
3 #ifndef TRE_FASTMATCH_H
4 #define TRE_FASTMATCH_H 1
6 #include <fastmatch.h>
7 #include <hashtable.h>
8 #include <limits.h>
9 #include <regex.h>
10 #include <stdbool.h>
12 #include "hashtable.h"
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);
21 #endif /* TRE_FASTMATCH_H */