Class StringTools

Class Documentation

class StringTools

Tools to handle std::string objects.

Public Static Functions

static inline void tokenize(const std::string &str, std::vector<std::string> &tokens, const std::string &delimiters = " ")
template<typename T>
static inline std::string to_string_with_precision(const T val, const int n = 6)

converts a value to a string with a given precistion

template<typename T>
static inline std::string real2String(const T r)

converts a double or a float to a string

static inline std::string to_upper(const std::string &str)