Searched refs:reflags (Results 1 - 8 of 8) sorted by relevance
/ast/src/lib/libast/comp/ |
H A D | fnmatch.c | 55 register int reflags = REG_SHELL|REG_LEFT; local 62 reflags |= mp->reg; 65 if (!(reflags = regcomp(&re, pattern, reflags))) 67 reflags = regexec(&re, subject, 1, &match, 0); 69 if (!reflags && (reflags = subject[match.rm_eo])) 70 reflags = reflags == '/' ? 0 : FNM_NOMATCH; 73 else if (!(reflags [all...] |
/ast/src/lib/libast/string/ |
H A D | strmatch.c | 85 register regflags_t reflags; local 118 reflags = flags & ~REG_ADVANCE; 121 reflags = REG_SHELL|REG_AUGMENTED; 123 reflags |= REG_MINIMAL; 125 reflags |= REG_SHELL_GROUP; 127 reflags |= REG_LEFT; 129 reflags |= REG_RIGHT; 131 reflags |= REG_ICASE; 134 reflags |= REG_NOSUB; 135 if (!(re = regcache(p, reflags, Ni [all...] |
/ast/src/lib/libast/regex/ |
H A D | regcache.c | 42 regflags_t reflags; member in struct:Cache_s 75 * return regcomp() compiled re for pattern and reflags 79 regcache(const char* pattern, regflags_t reflags, int* status) argument 90 * 0 pattern flushes the cache and reflags>0 extends cache 97 if (reflags > matchstate.size) 99 if (matchstate.cache = newof(matchstate.cache, Cache_t*, reflags, 0)) 100 matchstate.size = reflags; 145 else if (*(Key_t*)matchstate.cache[i]->pattern == key && !strcmp(matchstate.cache[i]->pattern, pattern) && matchstate.cache[i]->reflags == reflags) 183 if (i = regcomp(&cp->re, pattern, reflags)) [all...] |
/ast/src/cmd/re/ |
H A D | sed3.c | 37 if (code = regcomp((regex_t*)rebuf->w,(char*)t->w,reflags|REG_DELIMITED|REG_MUSTDELIM|((reflags®_LENIENT)?0:REG_ESCAPE))) 41 if (!(reflags®_ICASE) && (code = regcomp((regex_t*)rebuf->w,(char*)t->w-((regex_t*)rebuf->w)->re_npat,reflags|REG_ICASE|REG_DELIMITED|REG_MUSTDELIM|((reflags®_LENIENT)?0:REG_ESCAPE))))
|
H A D | sed0.c | 72 int reflags = 0; /* regcomp() flags */ variable 264 reflags = REG_LENIENT; 271 reflags |= REG_AUGMENTED; 275 reflags |= REG_EXTENDED; 278 reflags |= REG_LENIENT; 281 reflags &= ~REG_LENIENT; 293 reflags |= REG_MULTIREF;
|
H A D | sed.h | 66 extern int reflags;
|
H A D | ed.c | 167 int reflags; member in struct:__anon200 375 ed.reflags = REG_DISCIPLINE|REG_DELIMITED; 377 ed.reflags |= REG_LENIENT; 675 if (c = regcomp(&ed.re, s, ed.reflags)) { 707 if (c = regexec(&ed.re, s, elementsof(ed.match), ed.match, ed.reflags|flags)) { 1778 ed.reflags |= REG_LENIENT; 1782 ed.reflags &= ~REG_LENIENT;
|
H A D | sed1.c | 147 if(reflags & REG_LENIENT) 169 if(reflags & REG_LENIENT)
|
Completed in 22 milliseconds