OGS 6.2.0-405-gb717f6088
StringTools.h File Reference

Detailed Description

Definition of string helper functions.

Thomas Fischer

Definition in file StringTools.h.

#include <string>
#include <list>
#include <sstream>
#include <vector>
Include dependency graph for StringTools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


 Build information.


std::vector< std::string > BaseLib::splitString (std::string const &str)
std::list< std::string > BaseLib::splitString (const std::string &str, char delim)
std::string BaseLib::replaceString (const std::string &searchString, const std::string &replaceString, std::string stringToReplace)
template<typename T >
BaseLib::str2number (const std::string &str)
void BaseLib::trim (std::string &str, char ch)
void BaseLib::simplify (std::string &str)
std::string BaseLib::padLeft (std::string const &str, int maxlen, char ch)
template<typename T >
std::string BaseLib::tostring (T const &value)
 Method for handling conversion to string uniformly across all types and std::string; see std::string overload below. More...
std::string const & BaseLib::tostring (std::string const &value)
std::string BaseLib::format (const char *format_string,...)
 returns printf-like formatted string More...