From 914228ac4531f1ea31ae2987ab875017a28e3b57 Mon Sep 17 00:00:00 2001 From: fcolin Date: Thu, 1 Feb 2007 13:00:13 +0000 Subject: Utilisateur : Fcolin Date : 14/06/05 Heure : 11:02 Archivé dans $/Bus/Ivy Commentaire: get all the pcre sublist in one time (vss 23) --- Ivy/IvyApplication.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Ivy/IvyApplication.cxx') diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx index fb399a6..91a2d98 100644 --- a/Ivy/IvyApplication.cxx +++ b/Ivy/IvyApplication.cxx @@ -345,14 +345,14 @@ int IvyApplication::SendMsg(const char *message) if ( match_count > 0 ) { ivy::string buffer; - const char *substring; + const char **substring; + pcre_get_substring_list(message,ovector, match_count, &substring); for ( int j = 1; j < match_count; j++ ) { - pcre_get_substring(message, ovector, match_count, j, &substring); - buffer += substring; + buffer += substring[j]; buffer += ARG_END; - pcre_free_substring( substring ); } + pcre_free_substring_list(substring); SendMsg( Msg, i, buffer.c_str() ); count++; } -- cgit v1.1