summaryrefslogtreecommitdiff
path: root/other/split.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'other/split.cpp')
-rw-r--r--other/split.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/other/split.cpp b/other/split.cpp
deleted file mode 100644
index 5e3966c..0000000
--- a/other/split.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// Zerlegt s anhand aller Zeichen in delim.
-vector<string> split(string &s, string delim) {
- vector<string> result; char *token;
- token = strtok((char*)s.c_str(), (char*)delim.c_str());
- while (token != NULL) {
- result.push_back(string(token));
- token = strtok(NULL, (char*)delim.c_str());
- }
- return result;
-}