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;
+}
