The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

wildcard.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

CoreExport bool match (const std::string &str, const std::string &mask)
 Match a string against a mask.
CoreExport bool match (const std::string &str, const std::string &mask, bool use_cidr_match)
 Match a string against a mask, and define wether or not to use CIDR rules.
CoreExport bool match (bool case_sensitive, const std::string &str, const std::string &mask)
 Match a string against a mask, defining wether case sensitivity applies.
CoreExport bool match (bool case_sensitive, const std::string &str, const std::string &mask, bool use_cidr_match)
 Match a string against a mask, defining wether case sensitivity applies, and defining wether or not to use CIDR rules first.


Function Documentation

CoreExport bool match bool  case_sensitive,
const std::string str,
const std::string mask,
bool  use_cidr_match
 

Match a string against a mask, defining wether case sensitivity applies, and defining wether or not to use CIDR rules first.

Parameters:
case_sensitive True if the match is case sensitive
str The string to check
mask the mask to check against
use_cidr_match True if CIDR matching rules should be applied first
Returns:
true if the strings match

Definition at line 162 of file wildcard.cpp.

References csmatch(), match(), and irc::sockets::MatchCIDR().

CoreExport bool match bool  case_sensitive,
const std::string str,
const std::string mask
 

Match a string against a mask, defining wether case sensitivity applies.

Parameters:
str The string to check
mask the mask to check against
case_sensitive True if the match is case sensitive
Returns:
True if the strings match

Definition at line 170 of file wildcard.cpp.

References csmatch(), and match().

CoreExport bool match const std::string str,
const std::string mask,
bool  use_cidr_match
 

Match a string against a mask, and define wether or not to use CIDR rules.

Parameters:
str The string to check
mask the mask to check against
use_cidr_match True if CIDR matching rules should be applied first
Returns:
true if the strings match

Definition at line 155 of file wildcard.cpp.

References match(), and irc::sockets::MatchCIDR().

CoreExport bool match const std::string str,
const std::string mask
 

Match a string against a mask.

Parameters:
str The string to check
mask the mask to check against
Returns:
true if the strings match

Definition at line 89 of file wildcard.cpp.

References lowermap.