Back to index

supertuxkart  0.5+dfsg1
Namespaces | Functions
string_utils.cpp File Reference
#include <algorithm>
#include <cstring>
#include "string_utils.hpp"

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::path (const std::string &filename)
 Return the path (i.e.
std::string StringUtils::basename (const std::string &filename)
 Return the filename part of a path.
std::string StringUtils::without_extension (const std::string &filename)
std::string StringUtils::extension (const std::string &filename)
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)