aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/CharUtil.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-07 15:04:34 +0200
committerMax Kellermann <max@duempel.org>2014-08-07 16:08:02 +0200
commit981be7956b86c4bcf449ff87082f422721a6e8c3 (patch)
tree78b59a2051deecfea9367056e3fec3ae9d299027 /src/util/CharUtil.hxx
parent8c10aa575c55e4e6172f7dba6bd397fa8c318b1e (diff)
downloadmpd-981be7956b86c4bcf449ff87082f422721a6e8c3.tar.gz
mpd-981be7956b86c4bcf449ff87082f422721a6e8c3.tar.xz
mpd-981be7956b86c4bcf449ff87082f422721a6e8c3.zip
util/CharUtil: make IsWhitespace*() "constexpr"
Diffstat (limited to 'src/util/CharUtil.hxx')
-rw-r--r--src/util/CharUtil.hxx2
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)
{