00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
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