/ast/src/lib/libast/comp/ |
H A D | re_comp.c | 42 re_comp(const char* pattern) argument 46 if (!pattern || !*pattern) 59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL)))
|
H A D | fnmatch.c | 53 fnmatch(const char* pattern, const char* subject, register int flags) argument 65 if (!(reflags = regcomp(&re, pattern, reflags))) 73 else if (!(reflags = regcomp(&re, pattern, reflags|REG_RIGHT)))
|
H A D | regexp.c | 55 _re_comp(regexp_t* re, const char* pattern, char* handle, unsigned int size) argument 65 n = regcomp(&env->re, pattern, REG_LENIENT|REG_NULL);
|
H A D | regcmp.c | 61 regcmp(const char* pattern, ...) argument 78 va_start(ap, pattern); 79 if (pattern || !*pattern || !(sp = sfstropen())) 89 s = (char*)pattern;
|
/ast/src/lib/libast/regex/ |
H A D | regerror.c | 40 /* REG_EESCAPE */ "trailing \\ in pattern", 49 /* REG_ENULL */ "empty subexpr in pattern", 85 fatal(regdisc_t* disc, int code, const char* pattern) argument 89 if (pattern) 90 (*disc->re_errorf)(NiL, disc, disc->re_errorlevel, "regular expression: %s: %s", pattern, reg_error[code+1]); local
|
H A D | regcache.c | 33 #define ROUND 64 /* pattern buffer size round */ 39 char* pattern; 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 93 if (!pattern) 131 * check if the pattern is in the cache 134 for (i = 0; i < sizeof(key) && pattern[i]; i++) 135 ((char*)&key)[i] = pattern[i]; 145 else if (*(Key_t*)matchstate.cache[i]->pattern [all...] |
/ast/src/lib/libtk/generic/ |
H A D | tkFileFilter.h | 26 struct GlobPattern * next; /* Chains to the next glob pattern 27 * in a glob pattern list */ 28 char * pattern; /* String value of the pattern, such member in struct:GlobPattern 43 GlobPattern * patterns; /* Head of glob pattern type list */ 44 GlobPattern * patternsTail; /* Tail of glob pattern type list */
|
/ast/src/cmd/std/ |
H A D | file.c | 66 "[p:pattern|match?Only files with descriptions matching the \bsh\b(1)" 68 " files match, 0 otherwise.]:[pattern]" 69 "[q:quiet|silent?Do not list matching \b--pattern\b files.]" 112 " [+match?case insensitive \bsh\b(1) match pattern operator" 122 " description pattern matches feasible. \adescription\a may" 148 type(Magic_t* mp, char* file, const char* pattern, register Magicdisc_t* disc) argument 162 if (!pattern) 169 else if (strmatch(s, pattern)) 183 char* pattern = 0; local 238 pattern [all...] |
/ast/src/lib/libast/disc/ |
H A D | sfdcmore.c | 49 char pattern[128]; /* match pattern */ member in struct:__anon257 174 for (r = more->pattern[0];; s++) 180 else if (*s == r && (e - s) >= more->match && !strncmp(s, more->pattern, more->match)) 221 if (n >= sizeof(more->pattern)) 222 n = sizeof(more->pattern) - 1; 223 memcpy(more->pattern, s, n); 224 more->pattern[n] = 0; 227 if (more->match = strlen(more->pattern))
|
/ast/src/lib/libcmd/ |
H A D | getconf.c | 141 char* pattern; local 166 pattern = 0; 180 pattern = opt_info.arg; 190 pattern = opt_info.arg; 203 pattern = opt_info.arg; 242 astconflist(sfstdout, path, flags, pattern);
|
/ast/src/cmd/nmake/ |
H A D | metarule.c | 32 * a file that matches the metarule pattern out from 33 * a file that matches the metarule pattern in 108 * we do case insensitive metarule pattern matching for all patterns that 125 * match s against metarule pattern 132 metamatch(char* stem, register char* s, char* pattern) argument 142 p = pattern; 148 else if (!metaccmp(pattern, *p, *s)) 171 p = pattern; 191 if (s <= t || !metaccmp(pattern, *p, *--s)) 220 * expand the metarule pattern [all...] |
/ast/src/cmd/sort/ |
H A D | sfopen.c | 29 * program<del><pattern><del> 30 * input<del><pattern><del>command<del> 31 * output<del><pattern><del>command<del> 38 * (literal) \<n> in command expands to the <n>th subexpression in the file path pattern match 56 char* pattern; member in struct:Io_s 63 char* pattern; member in struct:Match_s 113 io->pattern = v; 128 mv->pattern = v; 182 sfprintf(sfstdout, " program %s \n", mp->pattern); 184 sfprintf(sfstdout, " input %s %s\n", io->pattern, i [all...] |
/ast/src/lib/libast/misc/ |
H A D | fastfind.c | 137 * return a fastfind stream handle for pattern 141 findopen(const char* file, const char* pattern, const char* type, Finddisc_t* disc) argument 356 if (!pattern || !*pattern) 357 pattern = "*"; 358 i += (j = 2 * (strlen(pattern) + 1)); 568 if (p = s = (char*)pattern) 570 b = fp->decode.pattern; 622 if (s != pattern && !streq(pattern, "*")) [all...] |
H A D | findlib.h | 71 char pattern[1]; member in struct:__anon278
|
H A D | glob.c | 573 glob(const char* pattern, int flags, int (*errfn)(const char*, int), register glob_t* gp) argument 587 const char* nocheck = pattern; 682 if (*(pat = (char*)pattern) == '~' && *(pat + 1) == '(') 732 optlen = pat - (char*)pattern; 741 top = ap = (globlist_t*)stakalloc((optlen ? 2 : 1) * strlen(pattern) + sizeof(globlist_t) + suflen + gp->gl_extra); 745 pat = strcopy(ap->gl_begin, pattern + optlen); 749 strlcpy(gp->gl_pat = gp->gl_opt = pat + 1, pattern, optlen);
|
H A D | mime.c | 76 const char* pattern; member in struct:__anon289 348 if (!wp->pattern || !strncasecmp(ent->name, wp->pattern, wp->prefix) && (!ent->name[wp->prefix] || ent->name[wp->prefix] == '/')) 442 mimelist(Mime_t* mp, Sfio_t* fp, register const char* pattern) argument 450 if (ws.pattern = pattern) 452 while (*pattern && *pattern++ != '/'); 453 if (!*pattern || *pattern [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | expand.c | 93 int path_expand(Shell_t *shp,const char *pattern, struct argnod **arghead) argument 123 extra += scantree(shp->alias_tree,pattern,arghead); 124 extra += scantree(shp->fun_tree,pattern,arghead); 141 * instead of being an augmented shell pattern. 193 if(memcmp(pattern,"~(N",3)==0) 195 glob(pattern, flags, 0, gp); 217 * scan tree and add each name that matches the given pattern 219 static int scantree(Dt_t *tree, const char *pattern, struct argnod **arghead) argument 228 if(strmatch(cp=nv_name(np),pattern)) 432 /* generate each pattern an [all...] |
/ast/src/cmd/dsslib/ip_t/ |
H A D | ire.c | 129 irecomp(const char* pattern, int element, int dots, int tuple, int group, Iredisc_t* disc) argument 190 s = (char*)pattern; 388 (*disc->errorf)(NiL, disc, 2, "%-.*s<<<: invalid regular expression", s - (char*)pattern + 1, pattern);
|
/ast/src/cmd/mailx/port/ |
H A D | mime.c | 128 const char* pattern; member in struct:__anon155 399 if (!wp->pattern || !strncasecmp(ent->name, wp->pattern, wp->prefix) && (!ent->name[wp->prefix] || ent->name[wp->prefix] == '/')) 427 mimelist(Mime_t* mp, Sfio_t* fp, const char* pattern) argument 435 if (ws.pattern = pattern) 437 for (s = pattern; *s && *s != '/'; s++); 439 ws.prefix = s - (char*)pattern; 440 else if (ent = (Ent_t*)dtmatch(mp->cap, pattern)) 442 ws.pattern [all...] |
/ast/src/cmd/re/ |
H A D | grep.c | 53 "[e:expression|pattern|regexp?Specify a matching \apattern\a. More than one" 56 " [pattern]" 59 " [pattern-file]" 87 "\n[ pattern ] [ file ... ]\n" 132 Sfulong_t hits; /* labeled pattern matches */ 152 List_t file; /* pattern file list */ 153 List_t pattern; /* pattern list */ member in struct:State_s 160 int any; /* if any pattern hit */ 167 Sfulong_t hits; /* total matched pattern coun [all...] |
/ast/src/cmd/pax/ |
H A D | pax.c | 104 "[ pattern ... ]\n" 248 action(const char* command, int pattern) argument 259 if (pattern && *s && *s == *(s + 1)) 262 pattern = 0; 264 if (pattern) 1152 state.record.pattern = y ? strdup(v) : (char*)0; 1314 matchopt(const char* name, const char* pattern, Option_t* op) argument 1316 return strmatch(name, pattern) || (op->flags & OPT_VENDOR) && strmatch(sfprints("%s.%s", VENDOR, name), pattern); 1498 " pattern \b [all...] |
/ast/src/cmd/builtin/ |
H A D | pty.c | 379 * return 1 is extended re pattern matches text 383 match(char* pattern, char* text, int must) argument 389 if (!pattern[0]) 391 if (pattern[0] == '?' && pattern[1] && !pattern[2]) 393 switch (pattern[1]) 401 return pattern[1] == '1'; 413 error(2, "expected \"%s\", got EOF", pattern); 416 if (!(re = regcache(pattern, REG_EXTENDE [all...] |
/ast/src/lib/libtksh/tcl/ |
H A D | tclCmdMZ.c | 117 char **argPtr, *string, *pattern, *start, *end; 154 * Convert the string and pattern to lower case, if desired, and 163 pattern = Tcl_DStringValue(&patternDString); 164 for (p = pattern; *p != 0; p++) { 178 pattern = argPtr[0]; 181 regExpr = Tcl_RegExpCompile(interp, pattern); 270 char *string, *pattern, *p, *firstChar, *newValue, **argPtr; 306 * Convert the string and pattern to lower case, if desired. 312 pattern = Tcl_DStringValue(&patternDString); 313 for (p = pattern; * 115 char **argPtr, *string, *pattern, *start, *end; local 267 char *string, *pattern, *p, *firstChar, *newValue, **argPtr; local [all...] |
/ast/src/cmd/tw/ |
H A D | tw.h | 188 char* pattern; /* fast find pattern */ member in struct:__anon239
|
/ast/src/lib/libast/port/ |
H A D | astconf.c | 1580 astconflist(Sfio_t* sp, const char* path, int flags, const char* pattern) argument 1611 pattern = 0; 1612 if (pattern) 1618 if (regcomp(&re, pattern, REG_DISCIPLINE|REG_EXTENDED|REG_LENIENT|REG_NULL)) 1625 if (pattern) 1682 if (pattern) 1720 if (pattern)
|