diff options
Diffstat (limited to 'dbus/dbus-string-private.h')
-rw-r--r-- | dbus/dbus-string-private.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dbus/dbus-string-private.h b/dbus/dbus-string-private.h index fbdde70a..65f62794 100644 --- a/dbus/dbus-string-private.h +++ b/dbus/dbus-string-private.h @@ -107,6 +107,18 @@ typedef struct #define DBUS_CONST_STRING_PREAMBLE(str) const DBusRealString *real = (DBusRealString*) str; \ DBUS_GENERIC_STRING_PREAMBLE (real) +/** + * Checks for ASCII blank byte + * @param c the byte + */ +#define DBUS_IS_ASCII_BLANK(c) ((c) == ' ' || (c) == '\t') + +/** + * Checks for ASCII whitespace byte + * @param c the byte + */ +#define DBUS_IS_ASCII_WHITE(c) ((c) == ' ' || (c) == '\t' || (c) == '\n' || (c) == '\r') + /** @} */ DBUS_END_DECLS |