[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:
Chris Miles
2022-07-14 02:10:52 -05:00
committed by GitHub
parent 44c85a0dd7
commit dfd8f84cac
573 changed files with 5197 additions and 5137 deletions
+5 -5
View File
@@ -72,7 +72,7 @@ void command_npceditmass(Client *c, const Seperator *sep)
Chat::Yellow,
fmt::format(
"Possible columns [{}]",
implode(options_glue, possible_column_options)
Strings::Implode(options_glue, possible_column_options)
).c_str()
);
return;
@@ -91,7 +91,7 @@ void command_npceditmass(Client *c, const Seperator *sep)
Chat::Yellow,
fmt::format(
"Possible columns [{}]",
implode(options_glue, possible_column_options)
Strings::Implode(options_glue, possible_column_options)
).c_str()
);
return;
@@ -139,7 +139,7 @@ void command_npceditmass(Client *c, const Seperator *sep)
for (auto row : results) {
std::string npc_id = row[0];
std::string npc_name = row[1];
std::string search_column_value = str_tolower(row[2]);
std::string search_column_value = Strings::ToLower(row[2]);
std::string change_column_current_value = row[3];
if (exact_match) {
@@ -183,7 +183,7 @@ void command_npceditmass(Client *c, const Seperator *sep)
);
if (strcasecmp(sep->arg[5], "apply") == 0) {
std::string npc_ids_string = implode(",", npc_ids);
std::string npc_ids_string = Strings::Implode(",", npc_ids);
if (npc_ids_string.empty()) {
c->Message(Chat::Red, "Error: Ran into an unknown error compiling NPC IDs");
return;
@@ -223,7 +223,7 @@ void command_npceditmass(Client *c, const Seperator *sep)
Chat::Yellow,
fmt::format(
"Would you like to {} these changes?",
EQ::SayLinkEngine::GenerateQuestSaylink(saylink, false, "apply")
Saylink::Create(saylink, false, "apply")
).c_str()
);