1 /* $Id: regex.h,v 1.6 2003/09/22 21:02:21 ukai Exp $ */
3 #define STORAGE_MAX 256
13 typedef struct regexchar {
22 typedef struct regex {
23 regexchar re[REGEX_MAX];
24 longchar storage[STORAGE_MAX];
27 struct regex *alt_regex;
31 Regex *newRegex(char *ex, int igncase, Regex *regex, char **error_msg);
33 int RegexMatch(Regex *re, char *str, int len, int firstp);
35 void MatchedPosition(Regex *re, char **first, char **last);
38 /* backward compatibility */
39 char *regexCompile(char *ex, int igncase);
41 int regexMatch(char *str, int len, int firstp);
43 void matchedPosition(char **first, char **last);