diff options
author | fcolin | 2007-02-01 13:00:13 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 13:00:13 +0000 |
commit | f6314571ae921d623391dbc2856123860f860b1f (patch) | |
tree | 7a18fc5c88949b84cf3bbf25d4e273f921a570b0 /Bus/Ivy/IvyApplication.cxx | |
parent | 44309bb9fb2a7ee412045117b9879b08a1218fe5 (diff) | |
download | ivy-cplusplus-f6314571ae921d623391dbc2856123860f860b1f.zip ivy-cplusplus-f6314571ae921d623391dbc2856123860f860b1f.tar.gz ivy-cplusplus-f6314571ae921d623391dbc2856123860f860b1f.tar.bz2 ivy-cplusplus-f6314571ae921d623391dbc2856123860f860b1f.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 'Bus/Ivy/IvyApplication.cxx')
-rw-r--r-- | Bus/Ivy/IvyApplication.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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++;
}
|