Lines Matching defs:pattern
158 * return a fastfind stream handle for pattern
162 findopen(const char* file, const char* pattern, const char* type, Finddisc_t* disc)
377 if (!pattern || !*pattern)
378 pattern = "*";
379 i += (j = 2 * (strlen(pattern) + 1));
589 if (p = s = (char*)pattern)
591 b = fp->decode.pattern;
643 if (s != pattern && !streq(pattern, "*"))
646 if (i = regcomp(&fp->decode.re, pattern, REG_SHELL|REG_AUGMENTED|(fp->decode.ignorecase?REG_ICASE:0)))
651 (*fp->disc->errorf)(fp, fp->disc, 2, "%s: %s", pattern, fp->decode.temp);
664 for (s = fp->decode.pattern; s <= b; s++)
897 if (*fp->decode.pattern == '/' && b > fp->decode.path)
909 if (!fp->decode.match || strgrpmatch(fp->decode.path, fp->decode.pattern, NiL, 0, STR_MAXIMAL|STR_LEFT|STR_RIGHT|ignorecase))
934 (*fp->disc->errorf)(fp, fp->disc, 2, "%s: %s", fp->decode.pattern, fp->decode.temp);