bool ends_with(const std::string &s, const std::string &suffix)
Definition text.hpp:72
std::string join(const std::vector< std::string > &parts, const std::string &sep)
Definition text.hpp:129
std::string lower_ascii(std::string s)
A..Z as a..z, every other byte as it is.
Definition text.hpp:45
std::string trim_blank(const std::string &s)
Definition text.hpp:36
std::string capitalise_ascii(std::string s)
Definition text.hpp:55
std::vector< std::string > lines(const std::string &s)
Definition text.hpp:80
bool starts_with(const std::string &s, const char *prefix)
Definition text.hpp:62
std::string trim_space_end(std::string s)
s without the white space (as trim_space) at its end; its start as it is.
Definition text.hpp:27
std::string url_encode(const std::string &s)
Definition text.hpp:107
std::string trim_space(const std::string &s)
Definition text.hpp:17
std::string short_url(const std::string &url)
Definition text.hpp:98