Lines Matching refs:re
39 regex_t re;
51 register Regex_t* re = (Regex_t*)handle;
53 if (data || (size = roundof(size, ALIGN_BOUND2)) > (re->buf + re->size - re->cur))
55 data = (void*)re->cur;
56 re->cur += size;
64 register Regex_t* re;
154 re = 0;
158 if ((n += INC) > TOT || !(re = newof(re, Regex_t, 0, n)))
160 if (re)
161 free(re);
165 re->cur = re->buf;
166 re->size = n + ALIGN_BOUND2 - sizeof(Regex_t);
167 regalloc(re, block, REG_NOFREE);
168 c = regcomp(&re->re, s, REG_EXTENDED|REG_LENIENT|REG_NULL);
174 free(re);
177 if (re->nsub = nsub)
178 memcpy(re->sub, sub, (nsub + 1) * sizeof(sub[0]));
179 return (char*)re;
185 register Regex_t* re;
194 if (!(re = (Regex_t*)handle) || !subject)
196 for (n = 0; n < re->nsub; n++)
199 if (regexec(&re->re, subject, SUB + 1, match, 0))
201 for (n = 0; n < re->nsub; n++)
202 if (i = re->sub[n])