Lines Matching full:patterns
53 /* The Regex compiled patterns. */
54 static struct patterns struct
62 struct patterns *patterns; argument
189 /* For GNU regex compiler we have to pass the patterns separately to detect in Gcompile()
190 errors like "[\nallo\n]\n". The patterns here are "[", "allo" and "]" in Gcompile()
209 patterns = realloc (patterns, (pcount + 1) * sizeof (*patterns)); in Gcompile()
210 if (patterns == NULL) in Gcompile()
213 patterns[pcount] = patterns0; in Gcompile()
216 &(patterns[pcount].regexbuf))) != 0) in Gcompile()
273 /* For GNU regex compiler we have to pass the patterns separately to detect in Ecompile()
274 errors like "[\nallo\n]\n". The patterns here are "[", "allo" and "]" in Ecompile()
293 patterns = realloc (patterns, (pcount + 1) * sizeof (*patterns)); in Ecompile()
294 if (patterns == NULL) in Ecompile()
296 patterns[pcount] = patterns0; in Ecompile()
299 &(patterns[pcount].regexbuf))) != 0) in Ecompile()
407 patterns[i].regexbuf.not_eol = 0; in EGexecute()
408 if (0 <= (start = re_search (&(patterns[i].regexbuf), beg, in EGexecute()
410 end - beg - 1, &(patterns[i].regs)))) in EGexecute()
412 len = patterns[i].regs.end[0] - start; in EGexecute()
436 patterns[i].regexbuf.not_eol = 1; in EGexecute()
437 len = re_match (&(patterns[i].regexbuf), beg, in EGexecute()
439 &(patterns[i].regs)); in EGexecute()
447 patterns[i].regexbuf.not_eol = 0; in EGexecute()
448 start = re_search (&(patterns[i].regexbuf), beg, in EGexecute()
451 &(patterns[i].regs)); in EGexecute()
452 len = patterns[i].regs.end[0] - start; in EGexecute()
456 } /* for Regex patterns. */ in EGexecute()