GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
ascii.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  grem
namespace  grem::ascii

Functions

constexpr bool grem::ascii::isValidCharacter (char ch) noexcept
 Check if a character value represents a valid character in the ASCII table (values 0-127).
constexpr bool grem::ascii::isControlCharacter (char ch) noexcept
 Check if a character value represents a control character in the ASCII table (values 0-31 and 127).
constexpr bool grem::ascii::isPrintableCharacter (char ch) noexcept
 Check if a character value represents a printable character in the ASCII table (values 32-126).
constexpr bool grem::ascii::isUppercase (char ch) noexcept
 Check if a character is an uppercase ASCII letter (A-Z).
constexpr bool grem::ascii::isLowercase (char ch) noexcept
 Check if a character is a lowercase ASCII letter (a-z).
constexpr bool grem::ascii::isLetter (char ch) noexcept
 Check if a character is an ASCII letter (A-Z or a-z).
constexpr bool grem::ascii::isDecimalDigit (char ch) noexcept
 Check if a character is an ASCII decimal numeric digit (0-9).
constexpr char grem::ascii::convertUppercaseToLowercaseCharacter (char ch)
 Convert an uppercase ASCII letter (A-Z) to its corresponding lowercase ASCII letter (a-z).
constexpr char grem::ascii::convertLowercaseToUppercaseCharacter (char ch)
 Convert a lowercase ASCII letter (a-z) to its corresponding uppercase ASCII letter (A-Z).
constexpr char grem::ascii::convertToLowercaseCharacter (char ch) noexcept
 Convert a character to its corresponding lowercase ASCII letter (a-z) if it has one.
constexpr char grem::ascii::convertToUppercaseCharacter (char ch) noexcept
 Convert a character to its corresponding uppercase ASCII letter (A-Z) if it has one.
constexpr char grem::ascii::convertToOppositeCaseCharacter (char ch) noexcept
 Convert a character to its opposite case if it is an ASCII letter.
constexpr String grem::ascii::convertToLowercaseString (StringView string)
 Convert each character in a string to its corresponding lowercase ASCII letter (a-z) if it has one.
constexpr String grem::ascii::convertToLowercaseString (String &&string)
 Convert each character in a string to its corresponding lowercase ASCII letter (a-z) if it has one.
constexpr String grem::ascii::convertToUppercaseString (StringView string)
 Convert each character in a string to its corresponding uppercase ASCII letter (A-Z) if it has one.
constexpr String grem::ascii::convertToUppercaseString (String &&string)
 Convert each character in a string to its corresponding uppercase ASCII letter (A-Z) if it has one.
constexpr bool grem::ascii::caseInsensitiveEqual (char a, char b) noexcept
 Check if two characters are equal if any ASCII letters are treated as the same case, i.e. ignoring whether they are lowercase (a-z) or uppercase (A-Z).
constexpr bool grem::ascii::caseInsensitiveEqual (const char *a, const char *b)
 Check if two null-terminated strings are equal if any ASCII letters are treated as the same case, i.e. ignoring whether they are lowercase (a-z) or uppercase (A-Z).
constexpr bool grem::ascii::caseInsensitiveEqual (StringView a, StringView b)
 Check if two strings are equal if any ASCII letters are treated as the same case, i.e. ignoring whether they are lowercase (a-z) or uppercase (A-Z).