--- smsdaemon/util.h 2008/06/09 18:15:53 26 +++ smsdaemon/util.h 2008/06/10 22:22:19 42 @@ -12,11 +12,19 @@ { std::vector str_split(std::string input, std::string delimiter); void str_dump(const std::string& str); - void str_clean(std::string* str, std::string search, std::string replace = ""); + + std::string str_replace(std::string str, std::string search, std::string replace = ""); + std::string str_striptags(std::string str); + std::string str_trim(std::string str); + + std::string str_replace_char(std::string str, char search, char replace); + std::string str_characters(std::string str); + std::string str_gsm2latin1(std::string str); std::string readUrl(std::string url, std::string tempfile); std::string convertToUnicode(std::string); + std::string convertFromUnicode(std::string); int uTimeDiff(const timeval& then, const timeval& now); int mTimeDiff(const timeval& then, const timeval& now);