aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-07 15:03:08 +0200
committerMax Kellermann <max@duempel.org>2014-08-07 16:08:02 +0200
commit8c10aa575c55e4e6172f7dba6bd397fa8c318b1e (patch)
tree62782e4cc74a77508fbca44cd08e56d272f0e6ce /src/util
parent17b316b94bcc65ddf60fde645457f3d54e74e446 (diff)
downloadmpd-8c10aa575c55e4e6172f7dba6bd397fa8c318b1e.tar.gz
mpd-8c10aa575c55e4e6172f7dba6bd397fa8c318b1e.tar.xz
mpd-8c10aa575c55e4e6172f7dba6bd397fa8c318b1e.zip
util/CharUtil: fix indent
Diffstat (limited to '')
-rw-r--r--src/util/CharUtil.hxx32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/util/CharUtil.hxx b/src/util/CharUtil.hxx
index dd964f9c3..197f34049 100644
--- a/src/util/CharUtil.hxx
+++ b/src/util/CharUtil.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2013 Max Kellermann <max@duempel.org>
+ * Copyright (C) 2011-2014 Max Kellermann <max@duempel.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -27,75 +27,75 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef CHAR_UTIL_HPP
-#define CHAR_UTIL_HPP
+#ifndef CHAR_UTIL_HXX
+#define CHAR_UTIL_HXX
constexpr
static inline bool
IsASCII(const unsigned char ch)
{
- return ch < 0x80;
+ return ch < 0x80;
}
constexpr
static inline bool
IsASCII(const char ch)
{
- return IsASCII((unsigned char)ch);
+ return IsASCII((unsigned char)ch);
}
static inline bool
IsWhitespaceOrNull(const char ch)
{
- return (unsigned char)ch <= 0x20;
+ return (unsigned char)ch <= 0x20;
}
static inline bool
IsWhitespaceNotNull(const char ch)
{
- return ch > 0 && ch <= 0x20;
+ return ch > 0 && ch <= 0x20;
}
constexpr
static inline bool
IsPrintableASCII(char ch)
{
- return (signed char)ch >= 0x20;
+ return (signed char)ch >= 0x20;
}
constexpr
static inline bool
IsDigitASCII(char ch)
{
- return ch >= '0' && ch <= '9';
+ return ch >= '0' && ch <= '9';
}
constexpr
static inline bool
IsUpperAlphaASCII(char ch)
{
- return ch >= 'A' && ch <= 'Z';
+ return ch >= 'A' && ch <= 'Z';
}
constexpr
static inline bool
IsLowerAlphaASCII(char ch)
{
- return ch >= 'a' && ch <= 'z';
+ return ch >= 'a' && ch <= 'z';
}
constexpr
static inline bool
IsAlphaASCII(char ch)
{
- return IsUpperAlphaASCII(ch) || IsLowerAlphaASCII(ch);
+ return IsUpperAlphaASCII(ch) || IsLowerAlphaASCII(ch);
}
constexpr
static inline bool
IsAlphaNumericASCII(char ch)
{
- return IsAlphaASCII(ch) || IsDigitASCII(ch);
+ return IsAlphaASCII(ch) || IsDigitASCII(ch);
}
/**
@@ -106,9 +106,9 @@ constexpr
static inline char
ToUpperASCII(char ch)
{
- return ch >= 'a' && ch <= 'z'
- ? (ch - ('a' - 'A'))
- : ch;
+ return ch >= 'a' && ch <= 'z'
+ ? (ch - ('a' - 'A'))
+ : ch;
}
#endif