blob: 5b6f78c5fc229638d62d6180071154a022967531 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _MCIN_H
#define _MCIN_H
#include <regex.h>
#define MCIN_REGEX_COUNT 51
typedef struct mcin_matcher {
regex_t regex_master;
regex_t regex[MCIN_REGEX_COUNT];
} MCINMatcher;
int mcin_matcher_init(MCINMatcher *out);
void mcin_matcher_free(MCINMatcher *matcher);
char *mcin_matcher_match(MCINMatcher *matcher, const char *str);
#endif // _MCIN_H
|