From d7c8e3036f3ee38d5e2354990214ccaaa2a89e5a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Aug 2012 14:33:36 +0200 Subject: Reimplement regex support not to rely on any extensions to std::tr1::regex --- cutl/re.hxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'cutl/re.hxx') diff --git a/cutl/re.hxx b/cutl/re.hxx index 6bca3f5..92dfdd5 100644 --- a/cutl/re.hxx +++ b/cutl/re.hxx @@ -107,11 +107,17 @@ namespace cutl bool first_only = false) const; public: - string_type - str () const; + string_type const& + str () const + { + return str_; + } bool - empty () const; + empty () const + { + return str_.empty (); + } private: void @@ -119,6 +125,8 @@ namespace cutl private: struct impl; + + string_type str_; // Text representation of regex. impl* impl_; }; -- cgit v1.1