From 7f60acdfdd89aff2ea4ac2c1943d2d33d4639f16 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 13 Jan 2024 22:54:17 +0100 Subject: [PATCH] util/CharUtil: add IsUpperAlphaNumericASCII() --- src/util/CharUtil.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/CharUtil.hxx b/src/util/CharUtil.hxx index 8fb2f81ad..d599269bc 100644 --- a/src/util/CharUtil.hxx +++ b/src/util/CharUtil.hxx @@ -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 {