24 #ifndef GUL14_CASE_ASCII_H_ 
   25 #define GUL14_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'));
 
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
 
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
 
Definition of macros used internally by GUL.
 
Namespace gul14 contains all functions and classes of the General Utility Library.
Definition: doxygen.h:26
 
Provides a gul14::string_view that is fully compatible with C++17's std::string_view.