CString.TokenCount() function in ZNCString.cpp, to give the total number of tokens in the string.
Why do you need the total number of tokens?
I think what you are doing should be done with CString::Split().
CString str = "Hello there how are you?";
str.split(" ", tokens, false); // false -> skips empty tokens
cout << "there are " << tokens.size() << " tokens\n";
for (it = tokens.begin(); it != tokens.end(); it)
cout << "Next token: " << *it << "\n";
Because I didn't know I could do that; ty