24 #ifndef __UTILS_MISC_STRINGTOOLS_H_ 25 #define __UTILS_MISC_STRINGTOOLS_H_ 36 static std::string
to_upper(std::string str);
37 static std::string
to_lower(std::string str);
39 static std::string
to_string(
unsigned int i);
48 static unsigned int to_uint(std::string s);
49 static int to_int(std::string s);
50 static long to_long(std::string s);
51 static float to_float(std::string s);
53 static bool to_bool(std::string s);
56 static std::string
trim(std::string &s);
59 static std::vector<std::string>
resolve_paths(std::vector<std::string> s);
static std::string resolve_path(std::string s)
Resolves path-string with @...@ tags.
static std::string to_upper(std::string str)
Convert string to all-uppercase string.
Fawkes library namespace.
static std::string to_lower(std::string str)
Convert string to all-lowercase string.
static std::vector< std::string > resolve_paths(std::vector< std::string > s)
Resolves vector of path-string with @...@ tags.
static void trim_inplace(std::string &s)
Trim string.
static int to_int(std::string s)
Convert string to an int value.
static std::string trim(std::string &s)
Trim spring.
static std::string to_string(std::string &s)
No-op conversion of string.
Utility class that holds string methods.
static long to_long(std::string s)
Convert string to a long int value.
static float to_float(std::string s)
Convert string to a float value.
static bool to_bool(std::string s)
Convert string to a bool value.
static double to_double(std::string s)
Convert string to a double value.
static std::string to_string(unsigned int i)
Convert unsigned int value to a string.
static unsigned int to_uint(std::string s)
Convert string to an unsigned int value.