From 46108978fb72b40c7feeb52c2a7abbd437f8751d Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 17 Feb 2009 00:35:44 +0100 Subject: move replace_all function to base/string.h --- lib/gui/esubtitle.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/gui/esubtitle.cpp') diff --git a/lib/gui/esubtitle.cpp b/lib/gui/esubtitle.cpp index 085a749a..ca5c20d7 100644 --- a/lib/gui/esubtitle.cpp +++ b/lib/gui/esubtitle.cpp @@ -114,15 +114,6 @@ void eSubtitleWidget::setPixmap(ePtr &pixmap, gRegion changed) invalidate(changed); } -std::string eSubtitleWidget::replace_all(const std::string &in, const std::string &entity, const std::string &symbol) -{ - std::string out = in; - std::string::size_type loc = 0; - while (( loc = out.find(entity, loc)) != std::string::npos ) - out.replace(loc, entity.length(), symbol); - return out; -} - int eSubtitleWidget::event(int event, void *data, void *data2) { switch (event) -- cgit v1.2.3