blob: 542e44de37194ae78839ec6201b6c88777ec867d [file] [log] [blame]
John Kacur8b40f522009-09-24 18:02:18 +02001#ifndef __PERF_STRING_H_
2#define __PERF_STRING_H_
Arnaldo Carvalho de Meloea5cc872009-06-01 22:31:03 -03003
Masami Hiramatsubbbb5212009-12-15 10:32:10 -05004#include <stdbool.h>
Peter Zijlstra7c6a1c62009-06-25 17:05:54 +02005#include "types.h"
Arnaldo Carvalho de Meloea5cc872009-06-01 22:31:03 -03006
Paul Mackerras9cffa8d2009-06-19 22:21:42 +10007int hex2u64(const char *ptr, u64 *val);
Arnaldo Carvalho de Meloa2a99e82009-10-05 14:26:18 -03008char *strxfrchar(char *s, char from, char to);
Hitoshi Mitaked2fb8b42009-11-15 20:36:53 +09009s64 perf_atoll(const char *str);
Masami Hiramatsue1c01d62009-11-30 19:20:05 -050010char **argv_split(const char *str, int *argcp);
11void argv_free(char **argv);
Masami Hiramatsubbbb5212009-12-15 10:32:10 -050012bool strglobmatch(const char *str, const char *pat);
Masami Hiramatsu2a9c8c32010-02-25 08:36:12 -050013bool strlazymatch(const char *str, const char *pat);
Arnaldo Carvalho de Meloea5cc872009-06-01 22:31:03 -030014
Jason Baron5beeded2009-07-21 14:16:29 -040015#define _STR(x) #x
16#define STR(x) _STR(x)
17
John Kacur8b40f522009-09-24 18:02:18 +020018#endif /* __PERF_STRING_H */