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);
55 static unsigned int to_uint(std::string s);
56 static int to_int(std::string s);
57 static long to_long(std::string s);
58 static float to_float(std::string s);
60 static bool to_bool(std::string s);
63 static std::string
trim(
const std::string &s);
66 static std::vector<std::string>
resolve_paths(std::vector<std::string> s);
Utility class that holds string methods.
static void trim_inplace(std::string &s)
Trim string.
static std::vector< std::string > resolve_paths(std::vector< std::string > s)
Resolves vector of path-string with @...@ tags.
static std::string to_upper(std::string str)
Convert string to all-uppercase string.
static float to_float(std::string s)
Convert string to a float value.
static double to_double(std::string s)
Convert string to a double value.
static unsigned int to_uint(std::string s)
Convert string to an unsigned int value.
static bool to_bool(std::string s)
Convert string to a bool value.
static long to_long(std::string s)
Convert string to a long int value.
static std::string to_string(const std::string &s)
No-op conversion of string.
static std::string trim(const std::string &s)
Trim spring.
static std::string to_string(unsigned int i)
Convert unsigned int value to a string.
static int to_int(std::string s)
Convert string to an int value.
static std::string resolve_path(std::string s)
Resolves path-string with @...@ tags.
static std::string to_lower(std::string str)
Convert string to all-lowercase string.
Fawkes library namespace.