24 #ifndef __UTILS_MISC_STRINGTOOLS_H_
25 #define __UTILS_MISC_STRINGTOOLS_H_
35 static std::string
to_upper(std::string str);
36 static std::string
to_lower(std::string str);
38 static std::string
to_string(
unsigned int i);
45 static unsigned int to_uint(std::string s);
46 static int to_int(std::string s);
47 static float to_float(std::string s);
49 static bool to_bool(std::string s);
52 static std::string
trim(std::string &s);
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 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.
Utility class that holds string methods.
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.