Index: trunk/ab5.0/jenga/include/common/String.h
===================================================================
--- trunk/ab5.0/jenga/include/common/String.h	(revision 467)
+++ trunk/ab5.0/jenga/include/common/String.h	(revision 472)
@@ -11,4 +11,6 @@
 bool IsExistString( const Jenga::Common::Strings &strings, const std::string &findStr );
 
+std::string& StringReplace( std::string& str, const std::string sb, const std::string sa );
+
 }
 }
Index: trunk/ab5.0/jenga/src/common/String.cpp
===================================================================
--- trunk/ab5.0/jenga/src/common/String.cpp	(revision 467)
+++ trunk/ab5.0/jenga/src/common/String.cpp	(revision 472)
@@ -14,2 +14,15 @@
 	return false;
 }
+
+std::string& Jenga::Common::StringReplace( std::string& str, const std::string sb, const std::string sa )
+{
+	std::string::size_type n, nb = 0;
+	
+	while ((n = str.find(sb,nb)) != std::string::npos)
+	{
+		str.replace(n,sb.size(),sa);
+		nb = n + sa.size();
+	}
+	
+	return str;
+}
