aboutsummaryrefslogtreecommitdiff
path: root/cutl/re.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'cutl/re.hxx')
-rw-r--r--cutl/re.hxx14
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_;
};