1 //---------------------------------------------------------------------------
\r
4 //---------------------------------------------------------------------------
\r
5 typedef vector<string> svector;
\r
6 //---------------------------------------------------------------------------
\r
9 static vector<string> split_str(string str) {
\r
11 bool inQuotation=false;
13 for(unsigned int i=0;i<str.length();i++){
15 inQuotation = !inQuotation;
17 if(!inQuotation && str[i] == ','){
18 string s = str.substr(index,i-index);
23 string s = str.substr(index);
28 //---------------------------------------------------------------------------
\r