diff --git a/src/Variant.cpp b/src/Variant.cpp index 3fbddec06..1bf082750 100644 --- a/src/Variant.cpp +++ b/src/Variant.cpp @@ -888,6 +888,13 @@ bool Variant::operator_partial (const Variant& other) const return false; } +//////////////////////////////////////////////////////////////////////////////// +// Inverse of operator_partial. +bool Variant::operator_nopartial (const Variant& other) const +{ + return ! operator_partial (other); +} + //////////////////////////////////////////////////////////////////////////////// bool Variant::operator_hastag (const Variant& other) const { diff --git a/src/Variant.h b/src/Variant.h index bc81892a7..a2a41f091 100644 --- a/src/Variant.h +++ b/src/Variant.h @@ -65,6 +65,7 @@ public: bool operator_match (const Variant&) const; bool operator_nomatch (const Variant&) const; bool operator_partial (const Variant&) const; + bool operator_nopartial (const Variant&) const; bool operator_hastag (const Variant&) const; bool operator_notag (const Variant&) const; bool operator! () const;