2 * Copyright notice from original mutt:
3 * Copyright (C) 2001 Thomas Roessler <roessler@does-not-exist.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
11 * Versions of the string comparison functions which are
15 #ifndef MUTT_LIB_LIB_ASCII_H
16 #define MUTT_LIB_LIB_ASCII_H
18 static inline int ascii_isupper(int c) {
19 return c >= 'A' && c <= 'Z';
22 static inline int ascii_islower(int c) {
23 return c >= 'a' && c <= 'z';
26 static inline int ascii_toupper(int c) {
33 static inline int ascii_tolower(int c) {
40 int ascii_strcasecmp(const char *a, const char *b);
41 int ascii_strncasecmp(const char *a, const char *b, int n);
43 #define ascii_strcmp(a,b) str_cmp(a,b)
44 #define ascii_strncmp(a,b,c) str_ncmp(a,b,c)
46 #endif /* MUTT_LIB_LIB_ASCII_H */