Searched refs:matchstate (Results 1 – 2 of 2) sorted by relevance
/titanic_50/usr/src/lib/libast/common/regex/ |
H A D | regcache.c | 55 static State_t matchstate; variable 66 for (i = matchstate.size; i--;) in flushcache() 67 if (matchstate.cache[i] && matchstate.cache[i]->keep) in flushcache() 69 matchstate.cache[i]->keep = 0; in flushcache() 70 regfree(&matchstate.cache[i]->re); in flushcache() 97 if (reflags > matchstate.size) in regcache() 99 if (matchstate.cache = newof(matchstate.cache, Cache_t*, reflags, 0)) in regcache() 100 matchstate.size = reflags; in regcache() 103 matchstate.size = 0; in regcache() 111 if (!matchstate.cache) in regcache() [all …]
|
/titanic_50/usr/src/lib/libast/common/string/ |
H A D | strmatch.c | 65 } matchstate; variable 126 if (n > matchstate.nmatch) in strgrpmatch() 128 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0))) in strgrpmatch() 130 matchstate.nmatch = n; in strgrpmatch() 132 …if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT… in strgrpmatch() 140 *sub++ = matchstate.match[n].rm_so; in strgrpmatch() 141 *sub++ = matchstate.match[n].rm_eo; in strgrpmatch()
|