tregex.h - neatvi - [fork] simple vi-type editor with UTF-8 support
(HTM) git clone git://src.adamsgaard.dk/neatvi
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
tregex.h (481B)
---
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
7
8 typedef struct {
9 long rm_so;
10 long rm_eo;
11 } regmatch_t;
12
13 typedef struct regex *regex_t;
14
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);