Skip to content

Commit

Permalink
util/CharUtil: add IsUpperAlphaNumericASCII()
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jan 19, 2024
1 parent 68f02f6 commit 0cfb99d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/CharUtil.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ IsAlphaNumericASCII(char ch) noexcept
return IsAlphaASCII(ch) || IsDigitASCII(ch);
}

constexpr bool
IsUpperAlphaNumericASCII(char ch) noexcept
{
return IsUpperAlphaASCII(ch) || IsDigitASCII(ch);
}

constexpr bool
IsLowerAlphaNumericASCII(char ch) noexcept
{
Expand Down

0 comments on commit 0cfb99d

Please sign in to comment.