Prepare the customization of the cluster types
This commit is contained in:
+9
-1
@@ -20,10 +20,12 @@
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/algorithm/string/split.hpp>
|
||||
#include <boost/algorithm/string/join.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <iostream>
|
||||
|
||||
#include "Utils.hpp"
|
||||
|
||||
bool readList(const std::string& str, const std::string& separators, std::list<std::string>& results)
|
||||
@@ -62,6 +64,12 @@ splitString(std::string string, std::string separators)
|
||||
return res;
|
||||
}
|
||||
|
||||
std::string
|
||||
joinStrings(std::vector<std::string> strings, std::string delimiter)
|
||||
{
|
||||
return boost::algorithm::join(strings, delimiter);
|
||||
}
|
||||
|
||||
std::string
|
||||
stringTrim(const std::string& str, const std::string& whitespace)
|
||||
{
|
||||
|
||||
@@ -35,6 +35,9 @@ readList(const std::string& str, const std::string& separators, std::list<std::s
|
||||
std::vector<std::string>
|
||||
splitString(std::string string, std::string separators);
|
||||
|
||||
std::string
|
||||
joinStrings(std::vector<std::string> strings, std::string delimiter);
|
||||
|
||||
std::string
|
||||
stringTrim(const std::string& str, const std::string& whitespaces = " \t");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user