From CodeProject:
The C++ source files for the string tokenisers discussed in this post and the Splitting strings post, plus the code for Removing whitespace and Static assert in C++, can be found here:http://coolcowstudio.co.uk/source/cpp/utilities.zip.