24#ifndef GUL17_CASE_ASCII_H_
25#define GUL17_CASE_ASCII_H_
50 if (
c >=
'A' &&
c <=
'Z')
51 c =
static_cast<char>(
c + (
'a' -
'A'));
89 if (
c >=
'a' &&
c <=
'z')
90 c =
static_cast<char>(
c - (
'a' -
'A'));
auto constexpr bit_set(unsigned bit) noexcept -> ReturnT
Set a bit in an integral type.
Definition bit_manip.h:121
GUL_EXPORT std::string & uppercase_ascii_inplace(std::string &str) noexcept
Replace all ASCII characters in a string by their uppercase equivalents.
Definition case_ascii.cc:59
GUL_EXPORT std::string & lowercase_ascii_inplace(std::string &str) noexcept
Replace all ASCII characters in a string by their lowercase equivalents.
Definition case_ascii.cc:40
constexpr char lowercase_ascii(char c) noexcept
Return the ASCII lowercase equivalent of the given character (or the unchanged character,...
Definition case_ascii.h:48
constexpr char uppercase_ascii(char c) noexcept
Return the ASCII uppercase equivalent of the given character (or the unchanged character,...
Definition case_ascii.h:87
Definition of macros used internally by GUL.
Namespace gul17 contains all functions and classes of the General Utility Library.
Definition doxygen.h:26