Change some RString methods to free functions

These ones aren't a std::string method. Doing this helps the RString to
std::string migration.
This commit is contained in:
Arthur Eubanks
2025-05-17 14:02:12 -07:00
committed by teejusb
parent 9449317430
commit 995f0ea8c1
109 changed files with 587 additions and 618 deletions
+2 -2
View File
@@ -925,7 +925,7 @@ void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RStri
{
RString sCmdName = cmd.GetName();
if( bLegacy )
sCmdName.MakeLower();
MakeLower(sCmdName);
s << "\tself:" << sCmdName << "(";
bool bFirstParamIsString = bLegacy && (
@@ -950,7 +950,7 @@ void LuaHelpers::ParseCommandList( Lua *L, const RString &sCommands, const RStri
if( i==1 && bFirstParamIsString ) // string literal, legacy only
{
sArg.Replace( "'", "\\'" ); // escape quote
Replace(sArg, "'", "\\'"); // escape quote
s << "'" << sArg << "'";
}
else if( sArg[0] == '#' ) // HTML color