]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/regex.h
Fix a bunch of weird indentation and spacing issues.
[user/henk/code/inspircd.git] / include / modules / regex.h
index e278df502134d7581f6965c5e688e7ddb5e4812b..6d036e148063e0615163b968fcfb357fd13a0a77 100644 (file)
@@ -1,6 +1,11 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
+ *   Copyright (C) 2013 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2013 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2012 Robby <robby@chatbelgie.be>
+ *   Copyright (C) 2010 Craig Edwards <brain@inspircd.org>
+ *   Copyright (C) 2009 Uli Schlachter <psychon@inspircd.org>
  *   Copyright (C) 2009 Daniel De Graaf <danieldg@inspircd.org>
  *   Copyright (C) 2008 Thomas Stagner <aquanight@inspircd.org>
  *
 
 #pragma once
 
-#include "inspircd.h"
+#include "event.h"
 
 class Regex : public classbase
 {
 protected:
-       std::string regex_string; // The raw uncompiled regex string.
+       /** The uncompiled regex string. */
+       std::string regex_string;
 
        // Constructor may as well be protected, as this class is abstract.
-       Regex(const std::string& rx) : regex_string(rx)
-       {
-       }
+       Regex(const std::string& rx) : regex_string(rx) { }
 
 public:
 
-       virtual ~Regex()
-       {
-       }
+       virtual ~Regex() { }
 
        virtual bool Matches(const std::string& text) = 0;
 
@@ -49,7 +51,7 @@ public:
 class RegexFactory : public DataProvider
 {
  public:
-       RegexFactory(Module* Creator, const std::string& Name) : DataProvider(Creator, Name) {}
+       RegexFactory(Module* Creator, const std::string& Name) : DataProvider(Creator, Name) { }
 
        virtual Regex* Create(const std::string& expr) = 0;
 };
@@ -57,9 +59,9 @@ class RegexFactory : public DataProvider
 class RegexException : public ModuleException
 {
  public:
-        RegexException(const std::string& regex, const std::string& error)
-                : ModuleException("Error in regex '" + regex + "': " + error) { }
+       RegexException(const std::string& regex, const std::string& error)
+               : ModuleException("Error in regex '" + regex + "': " + error) { }
 
-        RegexException(const std::string& regex, const std::string& error, int offset)
-                : ModuleException("Error in regex '" + regex + "' at offset " + ConvToStr(offset) + ": " + error) { }
+       RegexException(const std::string& regex, const std::string& error, int offset)
+               : ModuleException("Error in regex '" + regex + "' at offset " + ConvToStr(offset) + ": " + error) { }
 };