--- smsdaemon/Util.h 2008/12/08 21:49:49 158 +++ smsdaemon/Util.h 2008/12/18 06:53:29 196 @@ -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); @@ -27,7 +30,8 @@ std::string str_gsm2latin(std::string str); std::string str_latin2gsm(std::string str); - std::string readUrl(std::string url, std::string tempfile); +// Deprecated:: use HttpClient instead +// std::string readUrl(std::string url, std::string tempfile); std::string iconv_wrapper(std::string _input, std::string to_format, std::string from_format); @@ -45,14 +49,14 @@ inline void Sleep(unsigned int msec) { - if (msec < 1000) + if (msec < 1000) { usleep(1000*msec); } else { - for (unsigned int i=0; i