/* Inline functions for rsync.
*
- * Copyright (C) 2007-2008 Wayne Davison
+ * Copyright (C) 2007-2022 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
return isdigit(*(unsigned char *)ptr);
}
+static inline int
+isHexDigit(const char *ptr)
+{
+ return isxdigit(*(unsigned char *)ptr);
+}
+
static inline int
isPrint(const char *ptr)
{
return isspace(*(unsigned char *)ptr);
}
+static inline int
+isAlNum(const char *ptr)
+{
+ return isalnum(*(unsigned char *)ptr);
+}
+
static inline int
isLower(const char *ptr)
{