]>
jfr.im git - irc/quakenet/newserv.git/blob - lib/irc_string.h
9 extern const char ToLowerTab_8859_1
[];
11 #define ToLower(c) (ToLowerTab_8859_1[(c) - CHAR_MIN])
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 *s1
, const char *s2
);
18 int ircd_strncmp(const char *s1
, const char *s2
, size_t len
);
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
);
24 int match(const char *, const char *);
25 int mmatch(const char *, const char *);
26 char *collapse(char *mask
);
28 int protectedatoi(char *buf
, int *value
);