summaryrefslogtreecommitdiff
path: root/cpp11addition.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
committerThomas Preud'homme <robotux@celest.fr>2020-08-11 22:35:12 +0100
commit3ac113857071fc1f225b2e1b42547269e568c6b7 (patch)
tree8b28dd9c44a0d3c7ab8187cd8d8f19d47591d813 /cpp11addition.h
parent9b10c21f5cad0e2ec27d23c59e65af7141a226f3 (diff)
New upstream version 2.2.4.4
Diffstat (limited to 'cpp11addition.h')
-rwxr-xr-x[-rw-r--r--]cpp11addition.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp11addition.h b/cpp11addition.h
index 022f175..061285e 100644..100755
--- a/cpp11addition.h
+++ b/cpp11addition.h
@@ -39,6 +39,14 @@ std::string stringimplode(const std::vector<std::string>& elems, char delim);
std::string stringimplode(const std::queue<std::string>& elems, char delim);
std::string stringimplode(const std::vector<std::string>& elems, const std::string &delim);
+bool stringreplaceOne(std::wstring& str, const std::wstring& from, const std::wstring& to);
+uint8_t stringreplaceAll(std::wstring& str, const std::wstring& from, const std::wstring& to);
+bool stringEndsWith(std::wstring const &fullString, std::wstring const &ending);
+bool stringEndsWith(std::wstring const &fullString, char const &ending);
+bool stringStartWith(std::wstring const &fullString, std::wstring const &starting);
+bool stringStartWith(std::wstring const &fullString, char const &starting);
+std::vector<std::wstring> stringsplit(const std::wstring &s, wchar_t delim);
+
uint8_t stringtouint8(const std::string &string,bool *ok=NULL);
uint16_t stringtouint16(const std::string &string,bool *ok=NULL);
uint32_t stringtouint32(const std::string &string,bool *ok=NULL);
@@ -65,6 +73,8 @@ void binaryAppend(std::vector<char> &data, const char * const add, const uint32_
std::vector<char> base64toBinary(const std::string &string);
std::string FSabsoluteFilePath(const std::string &string);
std::string FSabsolutePath(const std::string &string);
+std::wstring FSabsoluteFilePath(const std::wstring &string);
+std::wstring FSabsolutePath(const std::wstring &string);
uint64_t msFrom1970();
uint64_t sFrom1970();