X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhashcomp.cpp;h=ab4d8368ddbb42a0f3351d4408d4d37132c4b08a;hb=56c4074af5b848b10623f6bcc63da188038ad037;hp=0d036d528b9447c811d396a376df7452d4159553;hpb=a3fb932831ca09b2a931616f1701ea39429356c2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 0d036d528..ab4d8368d 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -501,7 +501,7 @@ long irc::portparser::GetToken() } } -const std::string& SearchAndReplace(std::string& text, const std::string& pattern, const std::string& replace) +/*const std::basic_string& SearchAndReplace(std::string& text, const std::string& pattern, const std::string& replace) { std::string replacement; if ((!pattern.empty()) && (!text.empty())) @@ -510,7 +510,6 @@ const std::string& SearchAndReplace(std::string& text, const std::string& patter { if (text.length() >= pattern.length() && text.substr(n, pattern.length()) == pattern) { - /* Found the pattern in the text, replace it, and advance */ replacement.append(replace); n = n + pattern.length() - 1; } @@ -522,5 +521,5 @@ const std::string& SearchAndReplace(std::string& text, const std::string& patter } text = replacement; return text; -} +}*/