[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
+4 -4
View File
@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "../common/misc_functions.h"
#include "../common/packet_functions.h"
#include "../common/md5.h"
#include "../common/string_util.h"
#include "../common/strings.h"
#include "worldserver.h"
#include "clientlist.h"
#include "ucsconfig.h"
@@ -159,7 +159,7 @@ void Client45ToServerSayLink(std::string& serverSayLink, const std::string& clie
return;
}
auto segments = SplitString(clientSayLink, '\x12');
auto segments = Strings::Split(clientSayLink, '\x12');
for (size_t segment_iter = 0; segment_iter < segments.size(); ++segment_iter) {
if (segment_iter & 1) {
@@ -196,7 +196,7 @@ void Client50ToServerSayLink(std::string& serverSayLink, const std::string& clie
return;
}
auto segments = SplitString(clientSayLink, '\x12');
auto segments = Strings::Split(clientSayLink, '\x12');
for (size_t segment_iter = 0; segment_iter < segments.size(); ++segment_iter) {
if (segment_iter & 1) {
@@ -231,7 +231,7 @@ void Client55ToServerSayLink(std::string& serverSayLink, const std::string& clie
return;
}
auto segments = SplitString(clientSayLink, '\x12');
auto segments = Strings::Split(clientSayLink, '\x12');
for (size_t segment_iter = 0; segment_iter < segments.size(); ++segment_iter) {
if (segment_iter & 1) {