X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fregmatch.cpp;h=f81be1a5225b09886579df8a92582078609b2a61;hp=abc5fd4f65dcc50037ffdf4a5630e8d7f532f7d8;hb=5b1368cb791cab043f0435628cacbaff36e39b7b;hpb=79d472ad3fde75de2eba2487579b047d35e56978 diff --git a/source/regmatch.cpp b/source/regmatch.cpp index abc5fd4..f81be1a 100644 --- a/source/regmatch.cpp +++ b/source/regmatch.cpp @@ -4,7 +4,8 @@ This file is part of libmspstrings Copyright © 2007 Mikko Rasa Distributed under the LGPL */ -#include + +#include #include "regmatch.h" using namespace std; @@ -17,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); } }