From e274e4ad3f7a5092ba0217986dabd5afcd9ace02 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 21 May 2007 16:41:31 +0000 Subject: Adding GetPattern to Regex, mostly for debugging purposes. --- lib/Regex.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Regex.cc b/lib/Regex.cc index cf8be44..cedd72b 100644 --- a/lib/Regex.cc +++ b/lib/Regex.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Regex.cc,v 1.12 2004-12-18 13:15:26 pixel Exp $ */ +/* $Id: Regex.cc,v 1.13 2007-05-21 16:41:31 pixel Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -63,3 +63,7 @@ bool Regex::Match(const String & s) const { return true; } } + +String Regex::GetPattern() const { + return pattern; +} -- cgit v1.2.3