]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
Move some general usage methods to Utilities, to avoid dupplicate code :
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index 6ebbe6152ed020ceeb2303db6b741c9fe08c2c44..f15e7080650ce658a9bc018695552c9722905d57 100644 (file)
@@ -3,28 +3,5 @@
 
 namespace bbtk
 {
-  /*
-  //========================================================================
-    /// Usefull functions for html generation
-    static void replace( std::string& str,
-                        const std::string& from, const std::string& to )
-    {
-      using std::string;
-      string::size_type pos = str.find( from );
-      while ( pos != string::npos )
-       {
-         //    std::cout << "'" << str << "' -> '";
-         str.replace( pos, from.size(), to );
-         pos = str.find( from, pos+from.size()-1 );
-         //    std::cout << str << "'"<< std::endl;
-       } 
-    }
-  //==========================================================================
-  inline void html_format(std::string& str)
-  {
-    replace( str, "&", "&amp;" );
-    replace( str, "<", "&lt;"# );
-    replace( str, ">", "&gt;" );
-  }
-  */
+
 }