#ifndef AC_H
#define AC_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _MSC_VER
#define AC_EXPORT __attribute__ ((visibility ("default")))
#else
#define AC_EXPORT
#endif
typedef struct {
int match_begin;
int match_end;
int pattern_idx;
} ac_result_t;
struct ac_t;
ac_t* ac_create(const char** pattern_v, unsigned int* pattern_len_v,
unsigned int vect_len) AC_EXPORT;
ac_result_t ac_match(ac_t*, const char *str, unsigned int len) AC_EXPORT;
ac_result_t ac_match_longest_l(ac_t*, const char *str, unsigned int len) AC_EXPORT;
int ac_match2(ac_t*, const char *str, unsigned int len) AC_EXPORT;
void ac_free(void*) AC_EXPORT;
#ifdef __cplusplus
}
#endif
#endif