stringtools.h

00001 /***************************************************************************
00002                           stringtools.h  -  description
00003                              -------------------
00004     begin                : Mon Dec 10 2001
00005     copyright            : (C) 2001 by André Simon
00006     email                : andre.simon1@gmx.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef STRINGTOOLS_H
00019 #define STRINGTOOLS_H
00020 
00021 #include <string>
00022 #include <vector>
00023 
00024 using namespace std;
00025 
00030 namespace StringTools
00031   {
00032 
00035   string lowerCase(const string &s);
00036 
00040   int str2int(string s, bool assureGreaterZero=false);
00041 
00043   bool isAlpha(unsigned char c);
00044 
00048   string trimRight(const string &value);
00049 
00051   unsigned char getNextNonWs(const string &line, int index=0);
00052 
00055   string getParantheseVal(const string &s);
00056 
00057   vector <string> splitString(const string& s, unsigned char delim);
00058 
00059 }
00060 
00061 #endif

Generated on Fri Apr 27 13:12:36 2007 for Highlight Code Converter by  doxygen 1.5.2