Lines Matching full:patterns

52   /* The Regex compiled patterns.  */
53 struct patterns struct
59 } *patterns; member
133 cregex->patterns = NULL; in Gcompile()
139 /* For GNU regex compiler we have to pass the patterns separately to detect in Gcompile()
140 errors like "[\nallo\n]\n". The patterns here are "[", "allo" and "]" in Gcompile()
159 … cregex->patterns = xrealloc (cregex->patterns, (cregex->pcount + 1) * sizeof (struct patterns)); in Gcompile()
160 memset (&cregex->patterns[cregex->pcount], '\0', sizeof (struct patterns)); in Gcompile()
163 &(cregex->patterns[cregex->pcount].regexbuf))) != NULL) in Gcompile()
219 cregex->patterns = NULL; in compile()
225 /* For GNU regex compiler we have to pass the patterns separately to detect in compile()
226 errors like "[\nallo\n]\n". The patterns here are "[", "allo" and "]" in compile()
245 … cregex->patterns = xrealloc (cregex->patterns, (cregex->pcount + 1) * sizeof (struct patterns)); in compile()
246 memset (&cregex->patterns[cregex->pcount], '\0', sizeof (struct patterns)); in compile()
249 &(cregex->patterns[cregex->pcount].regexbuf))) != NULL) in compile()
391 cregex->patterns[i].regexbuf.not_eol = 0; in EGexecute()
392 if (0 <= (start = re_search (&(cregex->patterns[i].regexbuf), beg, in EGexecute()
394 end - beg - 1, &(cregex->patterns[i].regs)))) in EGexecute()
396 len = cregex->patterns[i].regs.end[0] - start; in EGexecute()
423 cregex->patterns[i].regexbuf.not_eol = 1; in EGexecute()
424 len = re_match (&(cregex->patterns[i].regexbuf), beg, in EGexecute()
426 &(cregex->patterns[i].regs)); in EGexecute()
434 cregex->patterns[i].regexbuf.not_eol = 0; in EGexecute()
435 start = re_search (&(cregex->patterns[i].regexbuf), beg, in EGexecute()
438 &(cregex->patterns[i].regs)); in EGexecute()
439 len = cregex->patterns[i].regs.end[0] - start; in EGexecute()
443 } /* for Regex patterns. */ in EGexecute()
466 free (cregex->patterns); in EGfree()