4 #include <linux/types.h>
8 s64 perf_atoll(const char *str);
9 char **argv_split(const char *str, int *argcp);
10 void argv_free(char **argv);
11 bool strglobmatch(const char *str, const char *pat);
12 bool strglobmatch_nocase(const char *str, const char *pat);
13 bool strlazymatch(const char *str, const char *pat);
14 static inline bool strisglob(const char *str)
16 return strpbrk(str, "*?[") != NULL;
18 int strtailcmp(const char *s1, const char *s2);
19 char *strxfrchar(char *s, char from, char to);
24 static inline char *trim(char *s)
26 return ltrim(rtrim(s));
29 char *asprintf_expr_inout_ints(const char *var, bool in, size_t nints, int *ints);
31 static inline char *asprintf_expr_in_ints(const char *var, size_t nints, int *ints)
33 return asprintf_expr_inout_ints(var, true, nints, ints);
36 static inline char *asprintf_expr_not_in_ints(const char *var, size_t nints, int *ints)
38 return asprintf_expr_inout_ints(var, false, nints, ints);
42 #endif /* PERF_STRING_H */