X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstrings%2Fregex.h;h=42c1e01a6951a4c3229c4d5b9eadad18bc119d0d;hb=HEAD;hp=094a295cdb77bc230dd0c79254a4459f1567d945;hpb=f24e7b96e76b63c9b9b8a6bce4c7a9db64276ea8;p=libs%2Fcore.git diff --git a/source/strings/regex.h b/source/strings/regex.h index 094a295..42c1e01 100644 --- a/source/strings/regex.h +++ b/source/strings/regex.h @@ -3,15 +3,15 @@ #include #include +#include #include "regmatch.h" namespace Msp { -class bad_regex: public std::logic_error +class MSPCORE_API bad_regex: public std::logic_error { public: bad_regex(const std::string &, const std::string &, const std::string::const_iterator &); - virtual ~bad_regex() throw() { } private: std::string make_where(const std::string &, const std::string::const_iterator &); @@ -70,7 +70,7 @@ a bitmask. The MATCH_ANY instruction consumes the input character and always succeeds. */ -class Regex +class MSPCORE_API Regex { private: typedef std::basic_string Code; @@ -107,7 +107,7 @@ private: }; Code code; - unsigned n_groups; + unsigned n_groups = 0; public: /** Constructs a new Regex object from a string representation. */