diff options
author | Mark Whitley <markw@lineo.com> | 2000-06-28 21:58:31 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-06-28 21:58:31 +0000 |
commit | 0c96eba3de7e81e310f30e66bb595980ea13f979 (patch) | |
tree | d73a3bed75453092cd84725d575ff3c55f19b130 | |
parent | a44790f53919f0d129c78b8a288e5f5cac331c66 (diff) | |
download | busybox-w32-0c96eba3de7e81e310f30e66bb595980ea13f979.tar.gz busybox-w32-0c96eba3de7e81e310f30e66bb595980ea13f979.tar.bz2 busybox-w32-0c96eba3de7e81e310f30e66bb595980ea13f979.zip |
Removed some function decls (regex, regcomp, etc.) and put them in regexp.c
-rw-r--r-- | regexp.h | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -25,24 +25,6 @@ | |||
25 | #define _REGEXP_H_ | 25 | #define _REGEXP_H_ |
26 | 26 | ||
27 | 27 | ||
28 | |||
29 | |||
30 | #define NSUBEXP 10 | ||
31 | typedef 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 | |||
42 | extern regexp *regcomp(char* text); | ||
43 | extern int regexec(struct regexp* re, char* str, int bol, int ignoreCase); | ||
44 | extern void regsub(struct regexp* re, char* src, char* dst); | ||
45 | |||
46 | extern int find_match(char *haystack, char *needle, int ignoreCase); | 28 | extern int find_match(char *haystack, char *needle, int ignoreCase); |
47 | extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase); | 29 | extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase); |
48 | 30 | ||