/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

UtilString.h
Go to the documentation of this file.
00001 
00022 #ifndef UTILSTRING_H
00023 #define UTILSTRING_H
00024 #ifndef VECTOR
00025 #include <vector>
00026 #define VECTOR
00027 #endif
00028 #ifndef STRING
00029 #include <string>
00030 #define STRING
00031 #endif
00032 #include <sstream>
00033 
00034 namespace UtilString
00035 {
00036   bool atob(const char* s);
00037   bool atob(const char* s, bool& isvalid);
00038   int  cmp_nocase(const std::string& s1, const std::string& s2);
00039   int  cmp_wildcard(const std::string& s, const std::string& w);
00040   void MakePrintable(const char* in,
00041                      std::string& out);
00042   void Strip(std::string& str);
00043   void StringTok(std::vector<std::string>& ls,
00044                  const std::string& str,
00045                  const std::string& tok);
00046   bool IsBool(const char* s);
00047   bool IsInt(const char* s);
00048   bool IsFloat(const char* s);
00049 
00050   std::string ToLower(const std::string& str);
00051   std::string ToUpper(const std::string& str);
00052   //Has to be inline, won't work otherwise
00053   template <class T>
00054   std::string ToString(const T& t, std::ios_base & (*f)(std::ios_base&) = std::dec) {
00055     std::ostringstream oss;
00056     oss << f << t;
00057     return oss.str();
00058   }
00059 }
00060 #endif // UTILSTRING_H
00061 
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:45 for DatabaseInterface by doxygen 1.7.4