]>
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); | |
abfd7194 CP |
17 | int ircd_strcmp(const char *s1, const char *s2); |
18 | int ircd_strncmp(const char *s1, const char *s2, size_t len); | |
c86edd1d | 19 | char *delchars(char *string, const char *badchars); |
7b1dadec | 20 | const char *IPlongtostr(unsigned long IP); |
c86edd1d Q |
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 |