Бранимир Караџић hace 3 años
padre
commit
3d141a2f4a
Se han modificado 2 ficheros con 0 adiciones y 20 borrados
  1. 0 16
      include/bx/inline/string.inl
  2. 0 4
      include/bx/string.h

+ 0 - 16
include/bx/inline/string.inl

@@ -37,22 +37,6 @@ namespace bx
 		va_end(argList);
 		va_end(argList);
 	}
 	}
 
 
-	template <typename Ty>
-	inline Ty replaceAll(const Ty& _str, const char* _from, const char* _to)
-	{
-		Ty str = _str;
-		typename Ty::size_type startPos = 0;
-		const typename Ty::size_type fromLen = strLen(_from);
-		const typename Ty::size_type toLen   = strLen(_to);
-		while ( (startPos = str.find(_from, startPos) ) != Ty::npos)
-		{
-			str.replace(startPos, fromLen, _to);
-			startPos += toLen;
-		}
-
-		return str;
-	}
-
 	inline StringView::StringView()
 	inline StringView::StringView()
 	{
 	{
 		clear();
 		clear();

+ 0 - 4
include/bx/string.h

@@ -310,10 +310,6 @@ namespace bx
 	template <typename Ty>
 	template <typename Ty>
 	void stringPrintf(Ty& _out, const char* _format, ...);
 	void stringPrintf(Ty& _out, const char* _format, ...);
 
 
-	/// Replace all instances of substring.
-	template <typename Ty>
-	Ty replaceAll(const Ty& _str, const char* _from, const char* _to);
-
 	/// Convert size in bytes to human readable string kibi units.
 	/// Convert size in bytes to human readable string kibi units.
 	int32_t prettify(char* _out, int32_t _count, uint64_t _value, Units::Enum _units = Units::Kibi);
 	int32_t prettify(char* _out, int32_t _count, uint64_t _value, Units::Enum _units = Units::Kibi);