19 #ifndef _ALEXANDRIAKERNEL_STRINGUTILS_H
20 #define _ALEXANDRIAKERNEL_STRINGUTILS_H
22 #include <boost/algorithm/string/classification.hpp>
23 #include <boost/algorithm/string/split.hpp>
24 #include <boost/algorithm/string/trim.hpp>
25 #include <boost/lexical_cast.hpp>
28 #include <ElementsKernel/Exception.h>
47 boost::split(parts, str, boost::is_any_of(separators), boost::token_compress_on);
51 }
catch (
const boost::bad_lexical_cast& e) {
52 throw Elements::Exception(e.what());
std::vector< T > stringToVector(std::string str, const std::string &separators=std::string(", "))