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

This commit is contained in:
Max Kellermann 2014-08-07 15:04:34 +02:00
parent 8c10aa575c
commit 981be7956b

View File

@ -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)
{