diff options
Diffstat (limited to 'Ivy/IvyBinding.cxx')
-rw-r--r-- | Ivy/IvyBinding.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Ivy/IvyBinding.cxx b/Ivy/IvyBinding.cxx index 7501d82..239d56a 100644 --- a/Ivy/IvyBinding.cxx +++ b/Ivy/IvyBinding.cxx @@ -59,10 +59,16 @@ IvyBinding::~IvyBinding() delete regexp;
#endif /* USE_PCRE */
}
+const char* IvyBinding::getExpression()
+{
+ return expression_string.c_str();
+}
+
bool IvyBinding::Compile( const char * expression, int *erroffset, const char **errmessage )
{
int capture_count = 0;
bool compile = false;
+ expression_string = expression;
#ifdef USE_PCRE
regexp = pcre_compile(expression, PCRE_CASELESS, &err_buf, &err_offset, NULL);
if ( regexp != NULL )
|