From 981be7956b86c4bcf449ff87082f422721a6e8c3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 7 Aug 2014 15:04:34 +0200 Subject: util/CharUtil: make IsWhitespace*() "constexpr" --- src/util/CharUtil.hxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util') diff --git a/src/util/CharUtil.hxx b/src/util/CharUtil.hxx index 197f34049..3c1959b22 100644 --- a/src/util/CharUtil.hxx +++ b/src/util/CharUtil.hxx @@ -44,12 +44,14 @@ IsASCII(const char ch) return IsASCII((unsigned char)ch); } +constexpr static inline bool IsWhitespaceOrNull(const char ch) { return (unsigned char)ch <= 0x20; } +constexpr static inline bool IsWhitespaceNotNull(const char ch) { -- cgit v1.2.3