diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-17 00:35:44 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-02-17 00:35:44 +0100 |
| commit | 46108978fb72b40c7feeb52c2a7abbd437f8751d (patch) | |
| tree | 944b8b4c2e59a27fa6fffacf5bdfa218104e54cb /lib/gui | |
| parent | 3b10e39dace3cda3669de0018bb591ecfadb5ca5 (diff) | |
| download | enigma2-46108978fb72b40c7feeb52c2a7abbd437f8751d.tar.gz enigma2-46108978fb72b40c7feeb52c2a7abbd437f8751d.zip | |
move replace_all function to base/string.h
Diffstat (limited to 'lib/gui')
| -rw-r--r-- | lib/gui/esubtitle.cpp | 9 | ||||
| -rw-r--r-- | lib/gui/esubtitle.h | 1 |
2 files changed, 0 insertions, 10 deletions
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<gPixmap> &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) diff --git a/lib/gui/esubtitle.h b/lib/gui/esubtitle.h index 1635e6de..c88df0e6 100644 --- a/lib/gui/esubtitle.h +++ b/lib/gui/esubtitle.h @@ -58,7 +58,6 @@ private: gRegion m_visible_region; ePtr<gPixmap> m_pixmap; // pixmap to paint on next evtPaint - std::string replace_all(const std::string &in, const std::string &entity, const std::string &symbol); }; #endif |
