vector<string> vs;
std::vector<std::string> vs;
vector<string> str2vec(const string &s){	vector<string> vs;	unsigned int lasti=0;	// if it's empty return null	if(s.size()==0) return vs;	bool indquote=false;	for(unsigned int i=0; i<s.size(); i++)	{		if(s[i]=='"')			indquote = !indquote;		else if(isspace(s[i]) && (!indquote))		{			if(lasti!=i)			{				if((s[lasti]=='"') && (s[i-1]=='"'))				{					if((lasti+1)!=(lasti-1))						vs.push_back(s.substr(lasti+1, i-lasti-2));				}				else					vs.push_back(s.substr(lasti, i-lasti));			}			lasti=i+1;		}		if(i==s.size()-1)		{			if((s[lasti]=='"') && (s[i]=='"'))			{				if((lasti+1)!=(lasti-1))					vs.push_back(s.substr(lasti+1, i-lasti-2));			}			else				vs.push_back(s.substr(lasti, i-lasti+1));		}	}	#if 0 //test	for(unsigned int i=0; i<vs.size(); i++)		cout << "\t\"" << vs[i] << "\"" << endl;	#endif ///test	return vs;}