mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
find_replace fix for real
This commit is contained in:
parent
20c99e36d8
commit
d2b9d4ab20
@ -408,7 +408,7 @@ bool isAlphaNumeric(const char *text)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void find_replace(std::string& string_subject, std::string& search_string, std::string& replace_string) {
|
void find_replace(std::string& string_subject, const std::string& search_string, const std::string& replace_string) {
|
||||||
auto index = string_subject.find_first_of(search_string);
|
auto index = string_subject.find_first_of(search_string);
|
||||||
while (index != std::string::npos) {
|
while (index != std::string::npos) {
|
||||||
string_subject.replace(index, index + 1, replace_string);
|
string_subject.replace(index, index + 1, replace_string);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user