27#ifndef GUL17_CASE_ASCII_H_
28#define GUL17_CASE_ASCII_H_
53 if (
c >=
'A' &&
c <=
'Z')
54 c =
static_cast<char>(
c + (
'a' -
'A'));
92 if (
c >=
'a' &&
c <=
'z')
93 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:124
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:61
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:42
constexpr char lowercase_ascii(char c) noexcept
Return the ASCII lowercase equivalent of the given character (or the unchanged character,...
Definition case_ascii.h:51
constexpr char uppercase_ascii(char c) noexcept
Return the ASCII uppercase equivalent of the given character (or the unchanged character,...
Definition case_ascii.h:90
Definition of macros used internally by GUL.
Namespace gul17 contains all functions and classes of the General Utility Library.
Definition doxygen.h:29