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-04-29 22:01:23 -07:00
committed by teejusb
parent 9449317430
commit 995f0ea8c1
109 changed files with 587 additions and 618 deletions
+5 -5
View File
@@ -75,7 +75,7 @@ static RString FindLargestInitialSubstring( const RString &string1, const RStrin
static void SearchForDifficulty( RString sTag, Steps *pOut )
{
sTag.MakeLower();
MakeLower(sTag);
// Only match "Light" in parentheses.
if( sTag.find( "(light" ) != sTag.npos )
@@ -425,7 +425,7 @@ struct bmsCommandTree
if (space != statement.npos)
value = statement.substr(space + 1);
name.MakeLower();
MakeLower(name);
if (name == "#if")
{
@@ -573,7 +573,7 @@ bool BMSChart::Load( const RString &chartPath )
RString value = data.substr(2 * i, 2);
if (value != "00")
{
value.MakeLower();
MakeLower(value);
BMSObject o = { channel, measure, (float)i / count, flag, value };
objects.push_back(o);
}
@@ -885,7 +885,7 @@ void BMSChartReader::ReadHeaders()
else if( it->first == "#lnobj" )
{
lnobj = it->second;
lnobj.MakeLower();
MakeLower(lnobj);
}
else if( it->first == "#playlevel" )
{
@@ -1587,7 +1587,7 @@ void BMSSongLoader::AddToSong()
if( title != "" && title.size() != commonSubstring.size() )
{
RString tag = title.substr( commonSubstring.size(), title.size() - commonSubstring.size() );
tag.MakeLower();
MakeLower(tag);
// XXX: We should do this with filenames too, I have plenty of examples.
// however, filenames will be trickier, as stuff at the beginning AND