X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Fregex.h;h=e830c5bbda253cb111e7e3e07199707c8b884e73;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=67925023e544e76cd3f594addd0693d2b860d2c4;hpb=c7afef88380ebebc8c2b04e48664d73281ec8848;p=libs%2Fcore.git diff --git a/source/strings/regex.h b/source/strings/regex.h index 6792502..e830c5b 100644 --- a/source/strings/regex.h +++ b/source/strings/regex.h @@ -103,11 +103,11 @@ private: struct RunContext { Code::const_iterator citer; - RegMatch::GroupArray groups; + std::vector groups; }; Code code; - unsigned n_groups; + unsigned n_groups = 0; public: /** Constructs a new Regex object from a string representation. */ @@ -128,7 +128,7 @@ public: RegMatch match(const std::string &str) const; private: - bool run(const std::string &, const std::string::const_iterator &, RegMatch::GroupArray &) const; + bool run(const std::string &, const std::string::const_iterator &, std::vector &) const; bool group_compare(const RegMatch::Group &, const RegMatch::Group &) const; public: