General Utility Library for C++14
2.12
|
Converting ASCII characters to lowercase or uppercase.
Functions | |
constexpr char | gul14::lowercase_ascii (char c) noexcept |
Return the ASCII lowercase equivalent of the given character (or the unchanged character, if it is not an ASCII letter). More... | |
GUL_EXPORT std::string | gul14::lowercase_ascii (gul14::string_view str) |
Return a copy of the given string in which all ASCII characters are replaced by their lowercase equivalents. More... | |
GUL_EXPORT std::string & | gul14::lowercase_ascii_inplace (std::string &str) noexcept |
Replace all ASCII characters in a string by their lowercase equivalents. More... | |
constexpr char | gul14::uppercase_ascii (char c) noexcept |
Return the ASCII uppercase equivalent of the given character (or the unchanged character, if it is not an ASCII letter). More... | |
GUL_EXPORT std::string | gul14::uppercase_ascii (gul14::string_view str) |
Return a copy of the given string in which all ASCII characters are replaced by their uppercase equivalents. More... | |
GUL_EXPORT std::string & | gul14::uppercase_ascii_inplace (std::string &str) noexcept |
Replace all ASCII characters in a string by their uppercase equivalents. More... | |
|
constexprnoexcept |
Return the ASCII lowercase equivalent of the given character (or the unchanged character, if it is not an ASCII letter).
c | The original character. |
Referenced by gul14::contains_nocase(), gul14::ends_with_nocase(), gul14::equals_nocase(), gul14::lowercase_ascii(), gul14::lowercase_ascii_inplace(), and gul14::starts_with_nocase().
std::string gul14::lowercase_ascii | ( | gul14::string_view | str | ) |
Return a copy of the given string in which all ASCII characters are replaced by their lowercase equivalents.
str | The original string. |
References gul14::lowercase_ascii().
|
noexcept |
Replace all ASCII characters in a string by their lowercase equivalents.
This function modifies the original string and returns a reference to it (which may be helpful for chaining function calls).
str | The string to be modified. |
References gul14::lowercase_ascii().
|
constexprnoexcept |
Return the ASCII uppercase equivalent of the given character (or the unchanged character, if it is not an ASCII letter).
c | The original character. |
Referenced by gul14::uppercase_ascii(), and gul14::uppercase_ascii_inplace().
std::string gul14::uppercase_ascii | ( | gul14::string_view | str | ) |
Return a copy of the given string in which all ASCII characters are replaced by their uppercase equivalents.
str | The original string. |
References gul14::uppercase_ascii().
|
noexcept |
Replace all ASCII characters in a string by their uppercase equivalents.
This function modifies the original string and returns a reference to it (which may be helpful for chaining function calls).
str | The string to be modified. |
References gul14::uppercase_ascii().