Searched refs:matchstate (Results 1 - 2 of 2) sorted by relevance

/ast/src/lib/libast/regex/
H A Dregcache.c55 static State_t matchstate; variable
66 for (i = matchstate.size; i--;)
67 if (matchstate.cache[i] && matchstate.cache[i]->keep)
69 matchstate.cache[i]->keep = 0;
70 regfree(&matchstate.cache[i]->re);
97 if (reflags > matchstate.size)
99 if (matchstate.cache = newof(matchstate.cache, Cache_t*, reflags, 0))
100 matchstate
[all...]
/ast/src/lib/libast/string/
H A Dstrmatch.c65 } matchstate; variable in typeref:struct:State_s
137 if (n > matchstate.nmatch)
139 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0)))
141 matchstate.nmatch = n;
143 if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT|REG_ICASE)))
155 *subi++ = matchstate.match[n].rm_so;
156 *subi++ = matchstate.match[n].rm_eo;
164 *sub++ = matchstate.match[n].rm_so;
165 *sub++ = matchstate
[all...]

Completed in 10 milliseconds