Tools: Made more updates to the MeshExtractor
This commit is contained in:
1 parent
50f833a008
commit
ad0cd9f40a
7 files changed
+186
-15
No files matched your search
@@ -161,3 +161,14 @@ float Utils::Distance( float x, float y )
|
||||
{
|
||||
return sqrt(x*x + y*y);
|
||||
}
|
||||
|
||||
std::string Utils::Replace( std::string str, const std::string& oldStr, const std::string& newStr )
|
||||
{
|
||||
size_t pos = 0;
|
||||
while((pos = str.find(oldStr, pos)) != std::string::npos)
|
||||
{
|
||||
str.replace(pos, oldStr.length(), newStr);
|
||||
pos += newStr.length();
|
||||
}
|
||||
return str;
|
||||
}
|
||||
Reference in new issue
Block a user