]> Creatis software - clitk.git/blobdiff - common/clitkCommon.h
Add findAndReplace
[clitk.git] / common / clitkCommon.h
index 8f9ce0f0ee20fb8ad45b48f38876fc3d993695c5..8cd82fbe0b0bc1b20f38876368f0d6348615b1a9 100644 (file)
@@ -235,6 +235,11 @@ namespace clitk {
   template <typename M, typename V> 
   void MapToVecSecond(const M & m, V & v);
 
+  //--------------------------------------------------------------------
+  // Find/replace string
+  template<class T>
+  int inline findAndReplace(T& source, const T& find, const T& replace);
+
 #include "clitkCommon.txx"
 
 } // end namespace