|
@@ -9,6 +9,7 @@
|
|
#include <string>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <vector>
|
|
#include <regex>
|
|
#include <regex>
|
|
|
|
+#include <functional>
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// strutil.h - Declarations:
|
|
// strutil.h - Declarations:
|
|
@@ -30,6 +31,8 @@ std::string trim(const std::string &s, const char *sep);
|
|
int strsplit(const std::string &str, const char *sep, std::vector<std::string> &vec);
|
|
int strsplit(const std::string &str, const char *sep, std::vector<std::string> &vec);
|
|
std::string strFormatByteSize(uint64_t s, unsigned int dec = 1);
|
|
std::string strFormatByteSize(uint64_t s, unsigned int dec = 1);
|
|
std::string formatString(const char *fmt, ...);
|
|
std::string formatString(const char *fmt, ...);
|
|
|
|
+bool readFile(const char *pszFilePath, std::string &str);
|
|
|
|
+bool writeFile(const char *pszFilePath, const std::string &str);
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#endif // __cplusplus
|
|
#endif // __cplusplus
|