summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/BRegex.h3
-rw-r--r--lib/Regex.cc6
2 files changed, 7 insertions, 2 deletions
diff --git a/include/BRegex.h b/include/BRegex.h
index f32405a..cd815b9 100644
--- a/include/BRegex.h
+++ b/include/BRegex.h
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: BRegex.h,v 1.2 2004-12-18 13:15:25 pixel Exp $ */
+/* $Id: BRegex.h,v 1.3 2007-05-21 16:41:31 pixel Exp $ */
#ifndef __REGEX_H__
#define __REGEX_H__
@@ -32,6 +32,7 @@ class Regex : public Base {
Regex(const Regex &);
~Regex();
bool Match(const String &) const;
+ String GetPattern() const;
private:
regex_t preg;
int cflags, eflags;
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;
+}