From 0cfb99d2f395abeb7f7ac1a7cb788ca50d0c1508 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 8fb2f81a..d599269b 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 {