Added a crash reporter

This commit is contained in:
vaxerski
2023-02-19 13:45:56 +00:00
parent 6548439f6c
commit 38c25bb50d
6 changed files with 121 additions and 4 deletions

View File

@@ -549,4 +549,13 @@ double normalizeAngleRad(double ang) {
}
return ang;
}
std::string replaceInString(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();
}
return subject;
}