util/CharUtil: make IsWhitespace*() "constexpr"
This commit is contained in:
parent
8c10aa575c
commit
981be7956b
@ -44,12 +44,14 @@ IsASCII(const char ch)
|
|||||||
return IsASCII((unsigned char)ch);
|
return IsASCII((unsigned char)ch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr
|
||||||
static inline bool
|
static inline bool
|
||||||
IsWhitespaceOrNull(const char ch)
|
IsWhitespaceOrNull(const char ch)
|
||||||
{
|
{
|
||||||
return (unsigned char)ch <= 0x20;
|
return (unsigned char)ch <= 0x20;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
constexpr
|
||||||
static inline bool
|
static inline bool
|
||||||
IsWhitespaceNotNull(const char ch)
|
IsWhitespaceNotNull(const char ch)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user