Add return value to ReplaceAll()

Returns true of the string was modified and false otherwise
This commit is contained in:
WarmUpTill
2024-02-19 19:21:00 +01:00
committed by WarmUpTill
parent b803c0ad75
commit cb58eb9f04
3 changed files with 11 additions and 5 deletions

View File

@@ -16,7 +16,7 @@ EXPORT std::pair<int, int> GetCursorPos();
EXPORT bool DoubleEquals(double left, double right, double epsilon);
void ReplaceAll(std::string &str, const std::string &from,
bool ReplaceAll(std::string &str, const std::string &from,
const std::string &to);
EXPORT std::optional<std::string> GetJsonField(const std::string &json,
const std::string &id);