- Removed dependencies on Boost/string in mtg sources

- Removes dependencies on Boost/shared_ptr in mtg sources only for WP8 for the moment
- Various compilation fixes on WP8
This commit is contained in:
Xawotihs@gmail.com
2013-09-30 21:25:17 +00:00
parent 7894ca3ace
commit 490752e9da
11 changed files with 34 additions and 18 deletions

View File

@@ -390,3 +390,12 @@ std::string ensureFolder(const std::string & folderName)
}
return result;
}
void ReplaceString(std::string& subject, const std::string& search, const std::string& replace) {
size_t pos = 0;
while ((pos = subject.find(search, pos)) != std::string::npos) {
subject.replace(pos, search.length(), replace);
pos += replace.length();
}
}