X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fregmatch.cpp;h=f81be1a5225b09886579df8a92582078609b2a61;hp=f08f08a7aa589b42a2de0db81d9d894fc88c10cc;hb=5b1368cb791cab043f0435628cacbaff36e39b7b;hpb=381c89769c0ffaa14e6a92c662323b5c45e1eba3 diff --git a/source/regmatch.cpp b/source/regmatch.cpp index f08f08a..f81be1a 100644 --- a/source/regmatch.cpp +++ b/source/regmatch.cpp @@ -1,4 +1,11 @@ -#include +/* $Id$ + +This file is part of libmspstrings +Copyright © 2007 Mikko Rasa +Distributed under the LGPL +*/ + +#include #include "regmatch.h" using namespace std; @@ -11,8 +18,8 @@ RegMatch::RegMatch(const string &str, const GroupArray &g): for(GroupArray::iterator i=groups.begin(); i!=groups.end(); ++i) if(i->match) { - i->length=i->end-i->begin; - i->str=str.substr(i->begin, i->length); + i->length = i->end-i->begin; + i->str = str.substr(i->begin, i->length); } }