|
Aurore
A Switch-like interface for your app, on every screen
|
Classes | |
| class | ConsoleComments |
Functions | |
| std::string | trim_space (const std::string &s) |
| std::string | trim_space_end (std::string s) |
s without the white space (as trim_space) at its end; its start as it is. | |
| std::string | trim_blank (const std::string &s) |
| std::string | lower_ascii (std::string s) |
| A..Z as a..z, every other byte as it is. | |
| std::string | capitalise_ascii (std::string s) |
| bool | starts_with (const std::string &s, const char *prefix) |
| bool | starts_with (const std::string &s, const std::string &prefix) |
| bool | ends_with (const std::string &s, const std::string &suffix) |
| std::vector< std::string > | lines (const std::string &s) |
| std::string | short_url (const std::string &url) |
| std::string | url_encode (const std::string &s) |
| std::string | join (const std::vector< std::string > &parts, const std::string &sep) |
|
inline |
The first byte a..z as A..Z ("play time" -> "Play time"); a text that starts with anything else (a digit, a UTF-8 character) as it is.
|
inline |
|
inline |
The parts one after the other, sep between two of them: {"a", "b"} with "\n" -> "a\nb"; none -> "".
|
inline |
The lines of s, split at each \n, a \r before it dropped (CRLF read as LF). The empty ones too: a text that ends with \n ends with an empty line, and "" is one empty line.
|
inline |
A..Z as a..z, every other byte as it is.
|
inline |
"https://ko-fi.com/jigsawfr" -> "ko-fi.com/jigsawfr": what to type by hand. A text without a scheme as it is.
|
inline |
|
inline |
|
inline |
s without the spaces and tabs at either end (what Markdown calls blank); line ends stay.
|
inline |
s without the white space (std::isspace in the C locale: space, \t, \n, \v, \f, \r) at either end.
|
inline |
s without the white space (as trim_space) at its end; its start as it is.
|
inline |
s percent-encoded (RFC 3986) for a URL's query: the unreserved characters (A..Z, a..z, 0..9, -_.~) as they are, every other byte as XX ("a b/é" -> "a%20b%2F%C3%A9").