string.h #ifndef __SHAREWIZ_STRING_H__ #define __SHAREWIZ_STRING_H__ #include #include #include // String class. template std::string numberToString(T pNumber); std::vector string_find(const std::string& s, const std::string& regex); std::string string_replace(const std::string& s, const std::string& regex, const std::string& replacement, std::regex_constants::match_flag_type flags = std::regex_constants::match_default); std::string string_replace(const std::string& s, const std::string& regex, const std::string& replacement, bool retain); bool string_match(const std::string& s, const std::string& regex, std::regex_constants::match_flag_type flags = std::regex_constants::match_default); void show_matches(const std::string& s, const std::string& regex); std::vector string_tokenize(const std::string& s, const std::string& regex); #endif