FindToken
Find a token in this string
int FindToken( LPCSTR lpcszToken, char chDelimiter = 0 )
The zero based index of the token if found, -1 if token was not found
EX1
void string_FindToken_ex1() { string strColors = "red|green|blue"; int nToken; nToken = strColors.FindToken("green", '|'); out_int("", nToken);//1 nToken = strColors.FindToken("yellow", '|'); out_int("", nToken);//-1 }
string::GetNumTokens, string::GetToken
origin.h