X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fregmatch.h;h=f1f2448d50eb257dfe058af008cde35c9bce51c9;hb=f9e0275e476540c1b5d61c03a6a87d521856059b;hp=f5a774e601c83c13e33df582187393cae398f29a;hpb=381c89769c0ffaa14e6a92c662323b5c45e1eba3;p=libs%2Fcore.git 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;