borg_public/libLSS/tools/string_tools.cpp
2023-05-29 10:41:03 +02:00

15 lines
415 B
C++

#include <string>
#include <vector>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include "libLSS/tools/string_tools.hpp"
std::vector<std::string>
LibLSS::tokenize(std::string const &in, std::string const &seps) {
using namespace boost::algorithm;
std::vector<std::string> result;
split(result, in, is_any_of(seps), token_compress_on);
return result;
}