diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-08-27 14:33:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-08-27 14:33:36 +0200 |
commit | d7c8e3036f3ee38d5e2354990214ccaaa2a89e5a (patch) | |
tree | 7d2f7f5c31cc370a6a230c9053651cf7211148c7 /cutl/re.hxx | |
parent | 526a1773d487207551495e7ca548c9c8876e6898 (diff) |
Reimplement regex support not to rely on any extensions to std::tr1::regex
Diffstat (limited to 'cutl/re.hxx')
-rw-r--r-- | cutl/re.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
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_; }; |