aboutsummaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/regexp.h b/regexp.h
index 0c7c9d9ae..9e0cb4022 100644
--- a/regexp.h
+++ b/regexp.h
@@ -25,24 +25,6 @@
25#define _REGEXP_H_ 25#define _REGEXP_H_
26 26
27 27
28
29
30#define NSUBEXP 10
31typedef struct regexp {
32 char *startp[NSUBEXP];
33 char *endp[NSUBEXP];
34 int minlen; /* length of shortest possible match */
35 char first; /* first character, if known; else \0 */
36 char bol; /* boolean: must start at beginning of line? */
37 char program[1]; /* Unwarranted chumminess with compiler. */
38} regexp;
39
40
41
42extern regexp *regcomp(char* text);
43extern int regexec(struct regexp* re, char* str, int bol, int ignoreCase);
44extern void regsub(struct regexp* re, char* src, char* dst);
45
46extern int find_match(char *haystack, char *needle, int ignoreCase); 28extern int find_match(char *haystack, char *needle, int ignoreCase);
47extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase); 29extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase);
48 30