aboutsummaryrefslogtreecommitdiffstats
path: root/src/string_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_utils.h')
-rw-r--r--src/string_utils.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/string_utils.h b/src/string_utils.h
index 4babee63..2ce90ac9 100644
--- a/src/string_utils.h
+++ b/src/string_utils.h
@@ -51,17 +51,7 @@ is_xdigit(const int c)
static inline bool
is_space(const char c)
{
- switch (c) {
- case ' ':
- case '\f':
- case '\n':
- case '\r':
- case '\t':
- case '\v':
- return true;
- default:
- return false;
- }
+ return c == ' ' || (c >= '\t' && c <= '\r');
}
static inline bool