![]() |
General Utility Library for C++17 25.4.1
|
Converting ASCII characters to lowercase or uppercase.
Functions | |
constexpr char | gul17::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). | |
GUL_EXPORT std::string | gul17::lowercase_ascii (std::string_view str) |
Return a copy of the given string in which all ASCII characters are replaced by their lowercase equivalents. | |
GUL_EXPORT std::string & | gul17::lowercase_ascii_inplace (std::string &str) noexcept |
Replace all ASCII characters in a string by their lowercase equivalents. | |
constexpr char | gul17::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). | |
GUL_EXPORT std::string | gul17::uppercase_ascii (std::string_view str) |
Return a copy of the given string in which all ASCII characters are replaced by their uppercase equivalents. | |
GUL_EXPORT std::string & | gul17::uppercase_ascii_inplace (std::string &str) noexcept |
Replace all ASCII characters in a string by their uppercase equivalents. | |
Return the ASCII lowercase equivalent of the given character (or the unchanged character, if it is not an ASCII letter).
c | The original character. |
References gul17::bit_set().
Referenced by gul17::contains_nocase(), gul17::contains_nocase(), gul17::ends_with_nocase(), gul17::ends_with_nocase(), gul17::equals_nocase(), gul17::lowercase_ascii(), gul17::lowercase_ascii_inplace(), gul17::starts_with_nocase(), and gul17::starts_with_nocase().
std::string gul17::lowercase_ascii | ( | std::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 gul17::bit_set(), and gul17::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 gul17::bit_set(), and gul17::lowercase_ascii().
Return the ASCII uppercase equivalent of the given character (or the unchanged character, if it is not an ASCII letter).
c | The original character. |
References gul17::bit_set().
Referenced by gul17::uppercase_ascii(), and gul17::uppercase_ascii_inplace().
std::string gul17::uppercase_ascii | ( | std::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 gul17::bit_set(), and gul17::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 gul17::bit_set(), and gul17::uppercase_ascii().