00001 //----------------------------------------------------------------------- 00002 // 00003 // File: StringUtils.h 00004 // 00005 // Purpose: STL split string utility 00006 // Author: Paul J. Weiss 00007 // 00008 //------------------------------------------------------------------------ 00009 00010 #ifndef __STRINGUTILS_H_ 00011 #define __STRINGUTILS_H_ 00012 00013 #include <string> 00014 #include <vector> 00015 00016 using namespace std; 00017 00022 class StringUtils 00023 { 00024 00025 public: 00026 00027 static int SplitString(const string& input, const string& delimiter, 00028 vector<string>& results); 00029 00030 }; 00031 00032 #endif