mime: cp1256 and iso-8859-6 character sets
[neatmail.git] / regex.h
blob078f02a15464bb232672ab84dd20307f1fb95965
1 #define REG_EXTENDED 0x01
2 #define REG_NOSUB 0x02
3 #define REG_ICASE 0x04
4 #define REG_NEWLINE 0x08
5 #define REG_NOTBOL 0x10
6 #define REG_NOTEOL 0x20
8 typedef struct {
9 long rm_so;
10 long rm_eo;
11 } regmatch_t;
13 typedef struct regex *regex_t;
15 int regcomp(regex_t *preg, char *regex, int cflags);
16 int regexec(regex_t *preg, char *str, int nmatch, regmatch_t pmatch[], int eflags);
17 int regerror(int errcode, regex_t *preg, char *errbuf, int errbuf_size);
18 void regfree(regex_t *preg);