Back to index

supertuxkart  0.5+dfsg1
Namespaces | Functions
string_utils.hpp File Reference
#include <string>
#include <vector>
#include <sstream>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  StringUtils


bool StringUtils::has_suffix (const std::string &lhs, const std::string rhs)
std::string StringUtils::basename (const std::string &filename)
 Return the filename part of a path.
std::string StringUtils::path (const std::string &filename)
 Return the path (i.e.
std::string StringUtils::without_extension (const std::string &filename)
std::string StringUtils::extension (const std::string &filename)
template<class T >
std::string StringUtils::to_string (const T &any)
template<class T >
bool StringUtils::from_string (const std::string &rep, T &x)
 Convert the contents in string rep to type T, if conversion fails false is returned and the value of x is unchanged, if true is returned the conversation was successfull.
std::string StringUtils::upcase (const std::string &str)
std::string StringUtils::downcase (const std::string &str)
std::vector< std::string > StringUtils::split (const std::string &s, char c)