#include "DisksClient.h" #include #include #include #include #include #include #include #include #include "ICommand.h" #include #include #include #include #include namespace DB { std::vector split(const String & text, const String & delimiters) { std::vector arguments; auto prev = text.begin(); auto pos = std::find_if(text.begin(), text.end(), [&](char x) { return delimiters.contains(x); }); while (pos != text.end()) { if (pos > prev) { arguments.push_back({prev, pos}); } prev = ++pos; pos = std::find_if(prev, text.end(), [&](char x) { return delimiters.contains(x); }); } if (pos > prev) { arguments.push_back({prev, text.end()}); } return arguments; } }