Lines Matching refs:glob
28 match_character_class(const char *glob, size_t length, size_t from) in match_character_class() argument
31 const char *colon = memchr(glob + from + 2, ':', length - 1); in match_character_class()
34 return colon - glob; in match_character_class()
38 match_brack(const char *glob, size_t length, size_t from, int *exclmp) in match_brack() argument
47 if (glob[i] == '^' || glob[i] == '!') { in match_brack()
48 *exclmp = glob[i++] == '!'; in match_brack()
55 if (glob[i] == '[' && glob[i + 1] == ':') { in match_brack()
56 ssize_t j = match_character_class(glob, length, i); in match_brack()
65 char c = glob[i]; in match_brack()
66 if (c == '[' && glob[i + 1] == ':') { in match_brack()
67 ssize_t j = match_character_class(glob, length, i); in match_brack()
101 glob_to_regex(const char *glob, char **retp) in glob_to_regex() argument
107 size_t length = strlen(glob); in glob_to_regex()
111 char c = glob[i]; in glob_to_regex()
136 ssize_t j = match_brack(glob, length, i, &exclm); in glob_to_regex()
145 if (append(&buf, glob + i + 2*exclm, in glob_to_regex()
180 globcomp(regex_t *preg, const char *glob, int cflags) in globcomp() argument
183 int status = glob_to_regex(glob, ®ex); in globcomp()
196 translate(const char *glob, int exp_status, const char *expect) in translate() argument
199 int status = glob_to_regex(glob, &pattern); in translate()
202 glob, exp_status, status); in translate()
210 glob, expect, pattern); in translate()
218 try_match(const char *glob, const char *str, int expect) in try_match() argument
221 int status = globcomp(&preg, glob, 0); in try_match()