]>
Commit | Line | Data |
---|---|---|
c86edd1d Q |
1 | /* irc_string.h */ |
2 | ||
3 | #ifndef __IRC_STRING_H | |
4 | #define __IRC_STRING_H | |
5 | ||
6 | #include <limits.h> | |
7 | #include <stdlib.h> | |
8 | ||
9 | extern const char ToLowerTab_8859_1[]; | |
10 | ||
11 | #define ToLower(c) (ToLowerTab_8859_1[(c) - CHAR_MIN]) | |
12 | ||
13 | int match2strings(const char *patrn, const char *strng); | |
14 | int match2patterns(const char *patrn, const char *strng); | |
15 | unsigned long crc32(const char *s); | |
16 | unsigned long crc32i(const char *s); | |
17 | int ircd_strcmp(const char *a, const char *b); | |
18 | int ircd_strncmp(const char *a, const char *b, size_t n); | |
19 | char *delchars(char *string, const char *badchars); | |
20 | const char *IPtostr(unsigned long IP); | |
21 | const char *longtoduration(unsigned long interval, int format); | |
22 | int durationtolong(const char *string); | |
23 | ||
24 | int match(const char *, const char *); | |
25 | int mmatch(const char *, const char *); | |
26 | char *collapse(char *mask); | |
27 | ||
28 | int protectedatoi(char *buf, int *value); | |
29 | ||
30 | #endif |