|
bool | ept::str::startswith (const std::string &str, const std::string &part) |
| Check if a string starts with the given substring. More...
|
|
bool | ept::str::endswith (const std::string &str, const std::string &part) |
| Check if a string ends with the given substring. More...
|
|
template<typename ITER > |
std::string | ept::str::join (const std::string &sep, const ITER &begin, const ITER &end) |
| Stringify and join a sequence of objects. More...
|
|
template<typename ITEMS > |
std::string | ept::str::join (const std::string &sep, const ITEMS &items) |
| Stringify and join an iterable container. More...
|
|
template<typename FUN > |
std::string | ept::str::lstrip (const std::string &str, const FUN &classifier) |
| Return the substring of 'str' without all leading characters for which 'classifier' returns true. More...
|
|
std::string | ept::str::lstrip (const std::string &str) |
| Return the substring of 'str' without all leading spaces. More...
|
|
template<typename FUN > |
std::string | ept::str::rstrip (const std::string &str, const FUN &classifier) |
| Return the substring of 'str' without all trailing characters for which 'classifier' returns true. More...
|
|
std::string | ept::str::rstrip (const std::string &str) |
| Return the substring of 'str' without all trailing spaces. More...
|
|
template<typename FUN > |
std::string | ept::str::strip (const std::string &str, const FUN &classifier) |
| Return the substring of 'str' without all leading and trailing characters for which 'classifier' returns true. More...
|
|
std::string | ept::str::strip (const std::string &str) |
| Return the substring of 'str' without all leading and trailing spaces. More...
|
|
std::string | ept::str::upper (const std::string &str) |
| Return an uppercased copy of str. More...
|
|
std::string | ept::str::lower (const std::string &str) |
| Return a lowercased copy of str. More...
|
|
std::string | ept::str::basename (const std::string &pathname) |
| Given a pathname, return the file name without its path. More...
|
|
std::string | ept::str::dirname (const std::string &pathname) |
| Given a pathname, return the directory name without the file name. More...
|
|
void | ept::str::appendpath (std::string &dest, const char *path2) |
| Append path2 to path1, adding slashes when appropriate. More...
|
|
void | ept::str::appendpath (std::string &dest, const std::string &path2) |
| Append path2 to path1, adding slashes when appropriate. More...
|
|
template<typename S1 , typename S2 , typename... Args> |
void | ept::str::appendpath (std::string &dest, S1 first, S2 second, Args... next) |
| Append an arbitrary number of path components to dest. More...
|
|
template<typename... Args> |
std::string | ept::str::joinpath (Args... components) |
| Join two or more paths, adding slashes when appropriate. More...
|
|
std::string | ept::str::normpath (const std::string &pathname) |
| Normalise a pathname. More...
|
|
std::string | ept::str::encode_cstring (const std::string &str) |
| Escape the string so it can safely used as a C string inside double quotes. More...
|
|
std::string | ept::str::decode_cstring (const std::string &str, size_t &lenParsed) |
| Unescape a C string, stopping at the first double quotes or at the end of the string. More...
|
|
std::string | ept::str::encode_url (const std::string &str) |
| Urlencode a string. More...
|
|
std::string | ept::str::decode_url (const std::string &str) |
| Decode an urlencoded string. More...
|
|
std::string | ept::str::encode_base64 (const std::string &str) |
| Encode a string in Base64. More...
|
|
std::string | ept::str::decode_base64 (const std::string &str) |
| Decode a string encoded in Base64. More...
|
|