Added a crash reporter
This commit is contained in:
parent
6548439f6c
commit
38c25bb50d
6 changed files with 121 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue