Commit 981be795 authored by Max Kellermann's avatar Max Kellermann

util/CharUtil: make IsWhitespace*() "constexpr"

parent 8c10aa57
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment