Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

StringTool.h

Go to the documentation of this file.
00001 #ifndef HEADER_STRINGTOOL_H
00002 #define HEADER_STRINGTOOL_H
00003 
00004 #include <string>
00005 #include <vector>
00006 
00007 /**
00008  * String utils.
00009  */
00010 class StringTool {
00011     public:
00012         typedef std::vector<std::string> t_args;
00013     public:
00014         static long readInt(const char *text, bool *ok);
00015         static std::string toString(long value);
00016 
00017         static bool startsWith(const std::string &str,
00018                 const std::string &prefix);
00019         static void replace(std::string &buffer,
00020                 const std::string &pattern, const std::string &newstring);
00021         static t_args split(const std::string &str, char separator);
00022 };
00023 
00024 #endif
00025 

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2