|
CStringT :: Tokenize
// typedef CStringT <TCHAR, StrTraitATL <TCHAR>> CAtlString;
CAtlString str ("% First Second # Third");
CAtlString resToken;
int curPos = 0;
resToken = str.Tokenize ("% #", curPos);
while (resToken! = "")
{
printf ("Resulting token:% s\n", resToken);
resToken = str.Tokenize ("% #", curPos);
};
-----------------------------
Resulting Token: First
Resulting Token: Second
Resulting Token: Third |
|