sources/mystring.h

changeset 183
9b6a0daedfc0
parent 182
20ca0a6be175
child 189
248d0b85cbda
--- a/sources/mystring.h	Wed Jan 27 14:04:53 2021 +0200
+++ b/sources/mystring.h	Wed Jan 27 14:05:39 2021 +0200
@@ -42,15 +42,15 @@
 using namespace std::string_literals;
 
 std::string to_lowercase(const std::string& string);
-std::string join_string_list(const StringList& strings, const String& delim);
+std::string join_string_list(const std::vector<std::string>& strings, const std::string& delim);
 std::string mid(const std::string& str, int rangeBegin, int rangeEnd);
 std::string right(const std::string& str, int length);
 std::string vsprintf(const char* formatString, va_list args);
 std::string __cdecl sprintf(const char* formatString, ...);
 std::string remove_range(const std::string& string, int start, int end);
 void replace_all(std::string& str, const char* text, const char* replacement);
-bool starts_with(const std::string& str, const String& other);
-StringList split(const std::string& string, const String& delimeter);
+bool starts_with(const std::string& str, const std::string& other);
+std::vector<std::string> split(const std::string& string, const std::string& delimeter);
 std::optional<long> to_int(const char* str, int base = 10);
 void normalize(std::string& string, int (*filter)(int) = std::isspace);
 

mercurial