From f6314571ae921d623391dbc2856123860f860b1f 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) --- Bus/Ivy/IvyApplication.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Bus') diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx index fb399a6..91a2d98 100644 --- a/Bus/Ivy/IvyApplication.cxx +++ b/Bus/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