1 #ifndef LICORNEA_UTILITY_STRING_H_ 2 #define LICORNEA_UTILITY_STRING_H_ 11 template<
typename T> std::string
to_string(
const T&);
12 template<
typename T> T
from_string(
const std::string&);
14 template<
typename It> std::string
to_string(It begin, It end,
const std::string& separator =
", ");
16 std::vector<std::string>
explode(
char separator,
const std::string&);
17 std::string
implode(
char separator,
const std::vector<std::string>&);
25 std::string
to_lower(
const std::string&);
26 std::string
to_upper(
const std::string&);
28 std::string
replace_all(
const std::string& subject,
const std::string& find,
const std::string& replace);
29 std::size_t
replace_all_inplace(std::string& subject,
const std::string& find,
const std::string& replace);
std::size_t replace_all_inplace(std::string &subject, const std::string &find, const std::string &replace)
std::string implode(char separator, const std::vector< std::string > &vec)
std::vector< T > explode_from_string(char separator, const std::string &)
T from_string(const std::string &)
int string_hash(const std::string &str)
std::string replace_all(const std::string &subject_orig, const std::string &find, const std::string &replace)
std::string to_upper(const std::string &s_orig)
std::string to_string(const T &)
std::string implode_to_string(char separator, const std::vector< T > &)
std::string file_name_extension(const std::string &filename)
std::string to_lower(const std::string &s_orig)
std::vector< std::string > explode(char separator, const std::string &str)