]> git.tdb.fi Git - libs/core.git/blobdiff - source/regmatch.h
Add Id tags and copyright notices to a few files that were missing them
[libs/core.git] / source / regmatch.h
index f5a774e601c83c13e33df582187393cae398f29a..f1f2448d50eb257dfe058af008cde35c9bce51c9 100644 (file)
@@ -1,3 +1,9 @@
+/* $Id$
+
+This file is part of libmspstrings
+Copyright © 2007 Mikko Rasa
+Distributed under the LGPL
+*/
 #ifndef MSP_STRINGS_REGMATCH_H_
 #define MSP_STRINGS_REGMATCH_H_
 
@@ -32,6 +38,7 @@ public:
                std::string str;  //< The part of the string that matched
 
                Group(): match(false) { }
+               operator bool() const { return match; }
        };
        typedef std::vector<Group> GroupArray;