Lines Matching refs:str
24 s64 perf_atoll(const char *str) in perf_atoll() argument
30 if (!isdigit(str[0])) in perf_atoll()
33 length = strtoll(str, &p, 10); in perf_atoll()
111 static bool __match_glob(const char *str, const char *pat, bool ignore_space, in __match_glob() argument
114 while (*str && *pat && *pat != '*') { in __match_glob()
117 if (isspace(*str)) { in __match_glob()
118 str++; in __match_glob()
127 str++; in __match_glob()
131 if (__match_charclass(pat + 1, *str, &pat)) { in __match_glob()
132 str++; in __match_glob()
139 if (tolower(*str) != tolower(*pat)) in __match_glob()
141 } else if (*str != *pat) in __match_glob()
143 str++; in __match_glob()
152 while (*str) in __match_glob()
153 if (__match_glob(str++, pat, ignore_space, case_ins)) in __match_glob()
156 return !*str && !*pat; in __match_glob()
171 bool strglobmatch(const char *str, const char *pat) in strglobmatch() argument
173 return __match_glob(str, pat, false, false); in strglobmatch()
176 bool strglobmatch_nocase(const char *str, const char *pat) in strglobmatch_nocase() argument
178 return __match_glob(str, pat, false, true); in strglobmatch_nocase()
189 bool strlazymatch(const char *str, const char *pat) in strlazymatch() argument
191 return __match_glob(str, pat, true, false); in strlazymatch()
252 char *strpbrk_esc(char *str, const char *stopset) in strpbrk_esc() argument
257 ptr = strpbrk(str, stopset); in strpbrk_esc()
258 if (ptr == str || in strpbrk_esc()
259 (ptr == str + 1 && *(ptr - 1) != '\\')) in strpbrk_esc()
261 str = ptr + 1; in strpbrk_esc()
268 char *strdup_esc(const char *str) in strdup_esc() argument
270 char *s, *d, *p, *ret = strdup(str); in strdup_esc()