1 /* +------------------------------------+
2 * | Inspire Internet Relay Chat Daemon |
3 * +------------------------------------+
5 * InspIRCd: (C) 2002-2009 InspIRCd Development Team
6 * See: http://wiki.inspircd.org/Credits
8 * This program is free but copyrighted software; see
9 * the file COPYING for details.
11 * ---------------------------------------------------
19 class Regex : public classbase
22 std::string regex_string; // The raw uncompiled regex string.
24 // Constructor may as well be protected, as this class is abstract.
25 Regex(const std::string& rx) : regex_string(rx)
35 virtual bool Matches(const std::string& text) = 0;
37 const std::string& GetRegexString() const
43 class RegexFactoryRequest : public Request
51 RegexFactoryRequest(Module* Me, Module* Target, const std::string& rx) : Request(Me, Target, "REGEX"), regex(rx), result(NULL)
55 const std::string& GetRegex() const
67 class RegexNameRequest : public Request
71 RegexNameRequest(Module* Me, Module* Target) : Request(Me, Target, "REGEX-NAME")