X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Fregmatch.cpp;h=4799cfbd4e536b1634ba48b5d5bf625e8da06eb6;hb=468ec9f6554c89b52e10a280411c9b9d99ef451b;hp=f81be1a5225b09886579df8a92582078609b2a61;hpb=b56eb5ec1da675da0c66abc53c1e4f6c4e4cccbd;p=libs%2Fcore.git diff --git a/source/strings/regmatch.cpp b/source/strings/regmatch.cpp index f81be1a..4799cfb 100644 --- a/source/strings/regmatch.cpp +++ b/source/strings/regmatch.cpp @@ -1,11 +1,4 @@ -/* $Id$ - -This file is part of libmspstrings -Copyright © 2007 Mikko Rasa -Distributed under the LGPL -*/ - -#include +#include #include "regmatch.h" using namespace std; @@ -26,7 +19,7 @@ RegMatch::RegMatch(const string &str, const GroupArray &g): const RegMatch::Group &RegMatch::group(unsigned i) const { if(i>=groups.size()) - throw InvalidParameterValue("Group index out of range"); + throw out_of_range("RegMatch::group"); return groups[i]; }