]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/wildcard.h
OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.
[user/henk/code/inspircd.git] / include / wildcard.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2007 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #include "inspircd_config.h"
15
16 /** Match a string against a mask.
17  * @param str The string to check
18  * @param mask the mask to check against
19  * @return true if the strings match
20  */
21 CoreExport bool match(const char *str, const char *mask);
22 /** Match a string against a mask, and define wether or not to use CIDR rules
23  * @param str The string to check
24  * @param mask the mask to check against
25  * @param use_cidr_match True if CIDR matching rules should be applied first
26  * @return true if the strings match
27  */
28 CoreExport bool match(const char *str, const char *mask, bool use_cidr_match);
29 /** Match a string against a mask, defining wether case sensitivity applies.
30  * @param str The string to check
31  * @param mask the mask to check against
32  * @param case_sensitive True if the match is case sensitive
33  * @return True if the strings match
34  */
35 CoreExport bool match(bool case_sensitive, const char *str, const char *mask);
36 /** Match a string against a mask, defining wether case sensitivity applies,
37  * and defining wether or not to use CIDR rules first.
38  * @param case_sensitive True if the match is case sensitive
39  * @param str The string to check
40  * @param mask the mask to check against
41  * @param use_cidr_match True if CIDR matching rules should be applied first
42  * @return true if the strings match
43  */
44 CoreExport bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match);
45