Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

StringUtil.h

Go to the documentation of this file.
00001 //
00002 //      Copyright (C) 2002 Robert Renaud
00003 //
00004 //      This program is free software; you can redistribute it and/or
00005 //      modify it under the terms of the GNU General Public License
00006 //      as published by the Free Software Foundation; either version 2
00007 //      of the License, or (at your option) any later version.
00008 //
00009 //      This program is distributed in the hope that it will be useful,
00010 //      but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 //      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 //
00013 //      See the GNU General Public License for more details.
00014 //
00015 //      You should have received a copy of the GNU General Public License
00016 //      along with this program; if not, write to the Free Software
00017 //      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 //
00019 
00020 #ifndef STRING_UTIL_H_
00021 #define STRING_UTIL_H_
00022 
00023 #include "../Config.h"
00024 #include <set>
00025 #include <string>
00026 #include <sstream>
00027 
00028 using std::string; using std::set; using std::istream;
00029 
00034 namespace Util {
00046         string getNextIdentifier(istream &input, set<char> &terminatingSet);
00047 
00049         void makeLowercase(string& str);
00050 
00052         template <class T>      std::string toString(const T& val) {
00053                 std::ostringstream strWriter;
00054                 strWriter << val;
00055                 return strWriter.str();
00056         }
00057 
00059         void eraseSpaces(string& str);
00060 };
00061 
00062 #endif // ifndef STRING_UTIL_H_
00063 

Generated on Tue May 21 07:26:51 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001