From d34015c5ba231b95de20e9fcd7a33c5b2b9a1006 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:45 +0200 Subject: tagging ychat-0.5.3 --- src/s_tool.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/s_tool.cpp') diff --git a/src/s_tool.cpp b/src/s_tool.cpp index dba93dc..79c3924 100644 --- a/src/s_tool.cpp +++ b/src/s_tool.cpp @@ -116,24 +116,7 @@ s_tool::strip_html( string *s_str ) return; } -} -string -s_tool::replace( string s_string, string s_search, string s_replace ) -{ - unsigned i_pos[2]; - for ( i_pos[0] = s_string.find( s_search ); - i_pos[0] != string::npos; - i_pos[0] = s_string.find( s_search, i_pos[1] ) ) - { - s_string.replace( i_pos[0], s_search.length(), s_replace ); - i_pos[1] = i_pos[0] + s_replace.length(); - } - - return s_string; } - - - #endif -- cgit v1.2.3