Lines Matching defs:pattern
125 const char *pattern, int separate);
126 static int ef_matches_range(int c, const char *pattern, const char **endp);
127 static int ef_string_matches_pattern(const char *file, const char *pattern,
378 * a copy of the resulting pattern in the cache.
417 * Only existing files that match the pattern will be returned in the
481 * Attempt to recursively match the given pattern with the contents of
488 * pattern const char * The pattern to match with files in the current
499 const char *pattern, int separate)
502 /* of the pattern that is to be matched with files */
514 * the pattern that should be matched to files within the current directory.
516 * of the pattern string.
518 for(nextp=pattern; *nextp && strncmp(nextp, FS_DIR_SEP, FS_DIR_SEP_LEN) != 0;
523 * current pattern.
527 * Does the latest file match the pattern up to nextp?
529 if(ef_string_matches_pattern(file, pattern, file[0]=='.', nextp)) {
540 * If we have reached the end of the pattern, record the accumulated
548 * next character of the pattern is a directory separator,
555 * If the pattern finishes with the directory separator, then
797 * pattern.
800 * file const char * The file-name component to be matched to the pattern.
801 * pattern const char * The start of the pattern to match against file[].
805 * end of the pattern in pattern[].
808 * 1 - The file-name string matches the pattern.
810 static int ef_string_matches_pattern(const char *file, const char *pattern,
813 const char *pptr = pattern; /* The pointer used to scan the pattern */
816 * Match each character of the pattern in turn.
820 * Handle the next character of the pattern.
828 * Skip the '*' character in the pattern.
832 * If wildcards aren't allowed, the pattern doesn't match.
837 * If the pattern ends with a the '*' wildcard, then the
845 * the tail of the filename against the tail of the pattern.
851 return 0; /* The pattern following the '*' didn't match */
859 * pattern pointer.
881 * A backslash in the pattern prevents the following character as
906 * To get here the pattern must have been exhausted. If the filename
919 * pattern.
920 * pattern const char * The range pattern to be matched (ie. after the
928 static int ef_matches_range(int c, const char *pattern, const char **endp)
930 const char *pptr = pattern; /* The pointer used to scan the pattern */
932 int matched = 0; /* True if the character matched the pattern */
1006 * If the pattern didn't end with a ']' then it doesn't match, regardless