mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 02:31:03 +00:00
[Strings] Refactor Strings Usage (#2305)
* Initial commit checkpoint * More functions converted * Commify * More functions * Fin * Sort declarations * Split functions between files * Bots * Update strings.h * Split * Revert find replaces * Repository template * Money * Misc function * Update CMakeLists.txt * Saylink * Update strings.cpp * Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database * API casings
This commit is contained in:
@@ -150,7 +150,7 @@ bool TaskGoalListManager::IsInList(int list_id, int entry)
|
||||
|
||||
bool TaskGoalListManager::IsInMatchList(const std::string& match_list, const std::string& entry)
|
||||
{
|
||||
for (auto &s: SplitString(match_list, '|')) {
|
||||
for (auto &s: Strings::Split(match_list, '|')) {
|
||||
if (s == entry) {
|
||||
return true;
|
||||
}
|
||||
@@ -161,9 +161,9 @@ bool TaskGoalListManager::IsInMatchList(const std::string& match_list, const std
|
||||
|
||||
bool TaskGoalListManager::IsInMatchListPartial(const std::string &match_list, const std::string &entry)
|
||||
{
|
||||
std::string entry_match = str_tolower(entry);
|
||||
for (auto &s: SplitString(match_list, '|')) {
|
||||
if (entry_match.find(str_tolower(s)) != std::string::npos) {
|
||||
std::string entry_match = Strings::ToLower(entry);
|
||||
for (auto &s: Strings::Split(match_list, '|')) {
|
||||
if (entry_match.find(Strings::ToLower(s)) != std::string::npos) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user