X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fregmatch.h;h=f1f2448d50eb257dfe058af008cde35c9bce51c9;hp=f5a774e601c83c13e33df582187393cae398f29a;hb=9573cffd8df40a81cd7c338d63d07e4965eb3854;hpb=381c89769c0ffaa14e6a92c662323b5c45e1eba3 diff --git a/source/regmatch.h b/source/regmatch.h index f5a774e..f1f2448 100644 --- a/source/regmatch.h +++ b/source/regmatch.h @@ -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 GroupArray;