- helpers.cpp: add shortened strftime() function

taken from martiis neutrino-mp
This commit is contained in:
svenhoefer
2014-05-29 22:26:30 +02:00
parent 39eb29e437
commit 672257906e
4 changed files with 858 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ std::string getFileName(std::string &file);
std::string getFileExt(std::string &file);
std::string getNowTimeStr(const char* format);
std::string trim(std::string &str, const std::string &trimChars = " \n\r\t");
std::string strftime(const char *format, const struct tm *tm);
time_t toEpoch(std::string &date);
std::string& str_replace(const std::string &search, const std::string &replace, std::string &text);
std::string& htmlEntityDecode(std::string& text);