String: Implement String != regex operator
[libacl.git] / src / String.h
index bd8a354..d83c0a0 100644 (file)
@@ -312,7 +312,8 @@ public:
  
    friend bool operator == (const String &s, const regex &r);
    friend bool operator == (const regex &r, const String &s);
-   // TODO: The != operator
+   friend bool operator != (const String &s, const regex &r);
+   friend bool operator != (const regex &r, const String &s);
 
    SuperString split(const String &separator);
 
@@ -390,6 +391,8 @@ public:
 
    friend bool operator == (const String &s, const regex &r);
    friend bool operator == (const regex &r, const String &s);
+   friend bool operator != (const String &s, const regex &r);
+   friend bool operator != (const regex &r, const String &s);
 };
 
 class SuperString