Lines Matching refs:regex
30 /* $XFree86: xc/programs/xedit/lisp/regex.c,v 1.10tsi Exp $ */
32 #include "lisp/regex.h"
53 re_cod *regex = LispMalloc(sizeof(re_cod));
55 if ((code = recomp(regex, pattern, cflags)) != 0) {
58 reerror(code, regex, buffer, sizeof(buffer));
59 refree(regex);
60 LispFree(regex);
64 return (regex);
79 re_cod *regex;
92 /* Don't generate an error if it is already a compiled regex. */
107 regex = LispRecomp(builtin, THESTR(pattern), cflags);
110 result->data.regex.regex = regex;
111 result->data.regex.pattern = pattern;
112 result->data.regex.options = cflags;
113 LispMused(regex);
121 re-exec regex string &key count start end notbol noteol
132 LispObj *regex, *ostring, *count, *ostart, *oend, *notbol, *noteol;
140 regex = ARGUMENT(0);
142 if (STRINGP(regex))
143 regexp = LispRecomp(builtin, THESTR(regex), cflags = 0);
145 CHECK_REGEX(regex);
146 regexp = regex->data.regex.regex;
147 cflags = regex->data.regex.options;
203 /* Maybe shoud cache compiled regex, but better the caller do it */
204 if (!XREGEXP(regex)) {