From 0b44d28a3143c7f6925a5d3956d9e982974a46de Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 Jan 2009 13:40:24 +0000 Subject: Templateise this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10991 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/hashcomp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/hashcomp.cpp') 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; -} +}*/ -- cgit v1.2.3