diff options
author | Max Kellermann <max@duempel.org> | 2014-08-07 15:04:34 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-07 16:08:02 +0200 |
commit | 981be7956b86c4bcf449ff87082f422721a6e8c3 (patch) | |
tree | 78b59a2051deecfea9367056e3fec3ae9d299027 | |
parent | 8c10aa575c55e4e6172f7dba6bd397fa8c318b1e (diff) | |
download | mpd-981be7956b86c4bcf449ff87082f422721a6e8c3.tar.gz mpd-981be7956b86c4bcf449ff87082f422721a6e8c3.tar.xz mpd-981be7956b86c4bcf449ff87082f422721a6e8c3.zip |
util/CharUtil: make IsWhitespace*() "constexpr"
-rw-r--r-- | src/util/CharUtil.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |