Go to the documentation of this file.
12 static void lTrim(std::string &s);
15 static void rTrim(std::string &s);
18 static void trim(std::string &s);
21 static std::string
lTrimCopy(std::string s);
24 static std::string
rTrimCopy(std::string s);
27 static std::string
trimCopy(std::string s);
30 static int findFrequency(
const std::string &s,
const std::string &pattern);
34 static bool tryParse(
const std::string &s, T &f)
36 std::istringstream iss(s);
38 iss >> std::noskipws >> f;
39 return iss.eof() && !iss.fail();
43 static std::vector<std::string>
splitStr(
const std::string &str,
char delim);
static void rTrim(std::string &s)
trim right end
Definition: Utils.cpp:23
static std::vector< std::string > splitStr(const std::string &str, char delim)
split a string with a delim char
Definition: Utils.cpp:63
Definition: AnimationsComponent.cpp:9
static void trim(std::string &s)
trim from both ends
Definition: Utils.cpp:30
static std::string trimCopy(std::string s)
trim from both ends (copying)
Definition: Utils.cpp:48
static bool tryParse(const std::string &s, T &f)
return true if parsing has been successful result ill be in i
Definition: Utils.hpp:34
static int findFrequency(const std::string &s, const std::string &pattern)
find the frequency of a substring in a string
Definition: Utils.cpp:54
static void lTrim(std::string &s)
trim left end
Definition: Utils.cpp:16
static std::string lTrimCopy(std::string s)
trim left end (copying)
Definition: Utils.cpp:36
static std::string rTrimCopy(std::string s)
trim right end (copying)
Definition: Utils.cpp:42