1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2008 InspIRCd Development Team
6 * See: http://www.inspircd.org/wiki/index.php/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
14 #include "inspircd_config.h"
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
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
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
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
44 CoreExport bool match(bool case_sensitive, const char *str, const char *mask, bool use_cidr_match);