summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:13 +0000
committerfcolin2007-02-01 13:00:13 +0000
commit914228ac4531f1ea31ae2987ab875017a28e3b57 (patch)
tree99a3d63223e3d13cc49e5f75957e56e21f88937f /Ivy/IvyApplication.cxx
parentf872905e098d43cc350bfad3903a8ce9756e07e2 (diff)
downloadivy-cplusplus-914228ac4531f1ea31ae2987ab875017a28e3b57.zip
ivy-cplusplus-914228ac4531f1ea31ae2987ab875017a28e3b57.tar.gz
ivy-cplusplus-914228ac4531f1ea31ae2987ab875017a28e3b57.tar.bz2
ivy-cplusplus-914228ac4531f1ea31ae2987ab875017a28e3b57.tar.xz
Utilisateur : Fcolin Date : 14/06/05 Heure : 11:02 Archivé dans $/Bus/Ivy Commentaire: get all the pcre sublist in one time (vss 23)
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx8
1 files changed, 4 insertions, 4 deletions
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++;
}