37 #include "CSV_Utils.h"
53 vector<string> &tokens )
72 list<string> tmplist ;
74 list<string>::iterator i = tmplist.begin() ;
75 list<string>::iterator e = tmplist.end() ;
78 tokens.push_back( (*i) ) ;
93 if( *(--str.end()) ==
'\"' and *str.begin() ==
'\"' )
94 str = str.substr( 1, str.length() - 2 ) ;
static void explode(char delim, const std::string &str, std::list< std::string > &values)
static void slim(std::string &str)
Strips leading and trailing double quotes from string.
static void split(const std::string &str, char delimiter, std::vector< std::string > &tokens)
Splits a string into separate strings based on the delimiter.