UtilString Namespace Reference

Functions

bool atob (const char *s)
bool atob (const char *s, bool &isvalid)
int cmp_nocase (const std::string &s1, const std::string &s2)
int cmp_wildcard (const std::string &s, const std::string &w)
void MakePrintable (const char *in, std::string &out)
void StringTok (std::vector< std::string > &ls, const std::string &str, const std::string &tok)
bool IsBool (const char *s)
bool IsInt (const char *s)
bool IsFloat (const char *s)
std::string ToLower (const std::string &str)
std::string ToUpper (const std::string &str)
template<class T >
std::string ToString (const T &t, std::ios_base &(*f)(std::ios_base &)=std::dec)

Function Documentation

bool UtilString::atob ( const char *  s,
bool &  isvalid 
)
bool UtilString::atob ( const char *  s  ) 
int UtilString::cmp_nocase ( const std::string &  s1,
const std::string &  s2 
)
int UtilString::cmp_wildcard ( const std::string &  s,
const std::string &  w 
)
bool UtilString::IsBool ( const char *  s  ) 

Referenced by parseCfg(), and Cfg::StringToRegistry().

bool UtilString::IsFloat ( const char *  s  ) 

Referenced by parseCfg(), and Cfg::StringToRegistry().

bool UtilString::IsInt ( const char *  s  ) 
void UtilString::MakePrintable ( const char *  in,
std::string &  out 
)
void UtilString::StringTok ( std::vector< std::string > &  ls,
const std::string &  str,
const std::string &  tok 
)
std::string UtilString::ToLower ( const std::string &  str  ) 
template<class T >
std::string UtilString::ToString ( const T &  t,
std::ios_base &(*)(std::ios_base &)  f = std::dec 
) [inline]

Definition at line 53 of file UtilString.h.

Referenced by main().

00053                                                                             {
00054     std::ostringstream oss;
00055     oss << f << t;
00056     return oss.str();
00057   }

std::string UtilString::ToUpper ( const std::string &  str  ) 

Generated on 15 Jul 2018 for loon by  doxygen 1.6.1