include/xot/string.h in xot-0.1.41 vs include/xot/string.h in xot-0.1.42
- old
+ new
@@ -4,10 +4,11 @@
#define __XOT_STRING_H__
#include <stdarg.h>
#include <string>
+#include <vector>
#define XOT_STRINGF(format, result) \
Xot::String result; \
do \
@@ -56,12 +57,17 @@
friend String operator + (const char* lhs, const String& rhs);
};// String
+ typedef std::vector<String> StringList;
+
+
String stringf (const char* format, ...);
String stringf (const char* format, va_list args);
+
+ void split(StringList* result, const char* string, char separator = '\n');
template <typename T> String to_s (const T& val);
}// Xot