31 static std::string trim(
const std::string& line);
33 template<
class Container>
34 static void split(
const std::string& str, Container& cont,
char delim =
' ') {
35 std::stringstream stream(str);
38 while (std::getline(stream, token, delim)) {
39 cont.push_back(token);
43 static double convert_to_double(
const std::string& value,
double default_value = 0);