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;
}

View file

@ -16,9 +16,7 @@ void logSystemInfo();
std::string execAndGet(const char*);
int64_t getPPIDof(int64_t pid);
int64_t configStringToInt(const std::string&);
float getPlusMinusKeywordResult(std::string in, float relative);
void matrixProjection(float mat[9], int w, int h, wl_output_transform tr);
double normalizeAngleRad(double ang);
double normalizeAngleRad(double ang);
std::string replaceInString(std::string subject, const std::string& search, const std::string& replace);