summaryrefslogtreecommitdiff
path: root/regexset.h
blob: 2c49e69d24359c46fa8789efcbef6d065ae8c417 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _REGEXSET_H_
#define _REGEXSET_H_

#include <pcre.h>

struct regexset_t {
	pcre *text;
	pcre_extra *text_e;
	pcre *join;
	pcre_extra *join_e;
};

void rs_init();
struct regexset_t *rs_add(const char *text, const char *join);
struct regexset_t *rs_get(int index);
void rs_free();

#endif