vector<string> split(conststring& src, string delimit, string null_subst="") { if( src.empty() || delimit.empty() )throw"split: empty string\0"; vector<string> v; S_T deli_len = delimit.size(); longindex = npos, last_search_position = 0; while( (index=src.find(delimit, last...
num用来确定最多分割为多少个串,如果是0(默认),则按照delimit32* 分割,若为1,则返回源串。33*/34voidSplit(constCString& src, CString delimit, CStringList* pOutList,intnum=0, CString nullSubst="")35{36ASSERT( !src.IsEmpty() && !delimit.IsEmpty() );37if(num==1)38{39pOutList->AddTail(s...