--- smsdaemon/util.h 2008/12/06 14:43:41 127 +++ smsdaemon/Util.h 2008/12/15 09:10:05 185 @@ -9,6 +9,9 @@ namespace Util { + //use whitespace + std::vector str_split(std::string input); + std::vector str_split(std::string input, std::string delimiter); void str_dump(const std::string& str); @@ -29,6 +32,8 @@ std::string readUrl(std::string url, std::string tempfile); + std::string iconv_wrapper(std::string _input, std::string to_format, std::string from_format); + std::string convertToUnicode(std::string); std::string convertFromUnicode(std::string); @@ -39,6 +44,7 @@ int my_system(const char* cmd, std::string* response = 0); + std::string readfile(std::string filename); inline void Sleep(unsigned int msec) {