00001 #ifndef STRING_UTIL_H
00002 #define STRING_UTIL_H
00003
00004 #ifndef INCLUDED_STD_VECTOR
00005 #define INCLUDED_STD_VECTOR
00006 #include <vector>
00007 #endif
00008
00009 #ifndef INCLUDED_STD_STRING
00010 #define INCLUDED_STD_STRING
00011 #include <string>
00012 #endif
00013
00014 namespace MFUtil
00015 {
00016 using namespace std;
00017 void tokenize( vector<string>& p_Tokens, const string& p_String, const string p_Delimiter = " " );
00018 string tokenize( string& p_String, const string& p_Delimiters );
00019
00020 template< typename TYPE >
00021 TYPE convertString( const string& p_String );
00022
00023 template< typename TYPE >
00024 string toString( const TYPE& p_ToConvert );
00025
00026 string joinChar( int p_NumberWords, char** p_Words, const int p_StartingWord = 0, const string& p_Separator = " " );
00027 }
00028
00029 #include "StringUtil.template.cc"
00030
00031 #endif
00032
00033
00034 Util.template.cc"
00035
00036 #endif
00037
00038