Lines Matching refs:pattern
160 PHPAPI int glob(const char *pattern, int flags, int (*errfunc)(const char *, int), glob_t *pglob) in glob() argument
173 patnext = (uint8_t *) pattern; in glob()
214 static int globexp1(const Char *pattern,glob_t *pglob) in globexp1() argument
216 const Char* ptr = pattern; in globexp1()
220 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS) in globexp1()
221 return glob0(pattern, pglob); in globexp1()
224 if (!globexp2(ptr, pattern, pglob, &rv)) in globexp1()
227 return glob0(pattern, pglob); in globexp1()
236 static int globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, int *rv) in globexp2() argument
244 for (lm = patbuf, pm = pattern; pm != ptr; *lm++ = *pm++) in globexp2()
342 static const Char *globtilde(const Char *pattern, Char *patbuf, size_t patbuf_len, glob_t *pglob) in globtilde() argument
351 if (*pattern != TILDE || !(pglob->gl_flags & GLOB_TILDE)) in globtilde()
352 return pattern; in globtilde()
356 for (p = pattern + 1, h = (char *) patbuf; in globtilde()
375 return pattern; in globtilde()
379 return pattern; in globtilde()
388 return pattern; in globtilde()
392 return pattern; in globtilde()
416 static int glob0( const Char *pattern, glob_t *pglob) in glob0() argument
423 qpatnext = globtilde(pattern, patbuf, MAXPATHLEN, pglob); in glob0()
492 return(globextend(pattern, pglob, &limit)); in glob0()
508 glob1(pattern, pattern_last, pglob, limitp) in glob1() argument
509 Char *pattern, *pattern_last; in glob1()
516 if (*pattern == EOS)
520 pattern, pattern_last, pglob, limitp));
528 …atic int glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, in glob2() argument
540 if (*pattern == EOS) { /* End of pattern? */ in glob2()
561 p = pattern; in glob2()
572 pattern = p; in glob2()
573 while (IS_SLASH(*pattern)) { in glob2()
576 *pathend++ = *pattern++; in glob2()
581 pathend_last, pattern, pattern_last, in glob2()
587 …r *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *pattern_la… in glob3() argument
632 if (dp->d_name[0] == DOT && *pattern != DOT) in glob3()
644 if (!match(pathend, pattern, restpattern)) { in glob3()