--- smsdaemon/util.h 2008/06/11 06:46:14 43 +++ smsdaemon/Util.h 2008/12/08 21:49:49 158 @@ -19,6 +19,8 @@ std::string str_toupper(std::string str); std::string str_tolower(std::string str); + std::string str_formatint(int i); + std::string str_replace_char(std::string str, char search, char replace); std::string str_characters(std::string str); @@ -27,16 +29,31 @@ 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); int uTimeDiff(const timeval& then, const timeval& now); int mTimeDiff(const timeval& then, const timeval& now); + timeval GetTimeOfDay(); + + int my_system(const char* cmd, std::string* response = 0); + + std::string readfile(std::string filename); + inline void Sleep(unsigned int msec) { - for (unsigned int i=0; i