Belle II Software  release-05-02-19
StringUtil.h
1 #ifndef _Belle2_StringUtil_hh
2 #define _Belle2_StringUtil_hh
3 
4 #include <string>
5 #include <vector>
6 
7 namespace Belle2 {
13  typedef std::vector<std::string> StringList;
14 
15  struct StringUtil {
16 
17  static StringList split(const std::string& str,
18  const char type, size_t max = 0);
19  static std::string join(StringList str_v, const std::string& s,
20  size_t start = 0, size_t end = 0);
21  static std::string replace(const std::string& source,
22  const std::string& pattern,
23  const std::string& placement);
24  static std::string form(const std::string& string, ...);
25  static std::string toupper(const std::string& str);
26  static std::string tolower(const std::string& str);
27  static int atoi(const std::string str);
28  static double atof(const std::string str);
29  static long long atoll(const std::string str);
30  static bool find(const std::string& s, const std::string& str);
31  static bool isdigit(const std::string& s);
32 
33  };
34 
36 };
37 
38 #endif
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StringUtil
Definition: StringUtil.h:15