Some man page changes.
[rsync.git] / itypes.h
blobdb997bba19c247057261c85de068f431aa4a5d5c
1 /* Inline functions for rsync.
3 * Copyright (C) 2007-2020 Wayne Davison
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, visit the http://fsf.org website.
19 static inline int
20 isDigit(const char *ptr)
22 return isdigit(*(unsigned char *)ptr);
25 static inline int
26 isHexDigit(const char *ptr)
28 return isxdigit(*(unsigned char *)ptr);
31 static inline int
32 isPrint(const char *ptr)
34 return isprint(*(unsigned char *)ptr);
37 static inline int
38 isSpace(const char *ptr)
40 return isspace(*(unsigned char *)ptr);
43 static inline int
44 isLower(const char *ptr)
46 return islower(*(unsigned char *)ptr);
49 static inline int
50 isUpper(const char *ptr)
52 return isupper(*(unsigned char *)ptr);
55 static inline int
56 toLower(const char *ptr)
58 return tolower(*(unsigned char *)ptr);
61 static inline int
62 toUpper(const char *ptr)
64 return toupper(*(unsigned char *)ptr);