summaryrefslogtreecommitdiffstats
path: root/Src/Util.cpp
diff options
context:
space:
mode:
authorLeonetienne <leonetienne@hotmail.de>2022-02-13 14:28:04 +0100
committerLeonetienne <leonetienne@hotmail.de>2022-02-13 14:28:04 +0100
commitb172ec9ee901d95bdd959665399a87ff033ed9a9 (patch)
tree74588c514631b0684e91ad3901ce07af06dfd74c /Src/Util.cpp
parent64a98786a7d0cc8bb92c80b058d8d767f205a66c (diff)
Language-adjustments nyow onwy affect compwete worwds. Nyice and tested <3333 ^.^
Diffstat (limited to 'Src/Util.cpp')
-rw-r--r--Src/Util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Util.cpp b/Src/Util.cpp
index c084018..9965098 100644
--- a/Src/Util.cpp
+++ b/Src/Util.cpp
@@ -7,7 +7,7 @@ std::string Util::ConditionalReplaceButKeepSigns(
const std::string& str,
std::string find,
const std::string& sub,
- const std::function<bool(const std::string&, const std::size_t)>& onlyIf
+ const std::function<bool(const std::string&, const std::string&, const std::size_t)>& onlyIf
)
{
@@ -29,7 +29,7 @@ std::string Util::ConditionalReplaceButKeepSigns(
if (foundInText_lower == find)
{
// Ask the callback if we should replace this one
- if (onlyIf(foundInText, i))
+ if (onlyIf(str, foundInText, i))
{
// Here we've found our occurrence...
// We have three possible cases: