Use new inline versions of substring functions

Fix up nearby cases where ESearchCase::CaseSensitive should have been used
#jira
#rnx
#rb

#ROBOMERGE-OWNER: marc.audy
#ROBOMERGE-AUTHOR: marc.audy
#ROBOMERGE-SOURCE: CL 10309793 via CL 10309818
#ROBOMERGE-BOT: (v593-10286020)

[CL 10309932 by marc audy in Main branch]
This commit is contained in:
marc audy
2019-11-19 13:27:07 -05:00
parent 44adc35ac5
commit dbcf07a558
183 changed files with 464 additions and 447 deletions

View File

@@ -136,7 +136,7 @@ bool NUTUtil::ParseEnum(const TCHAR* Stream, const TCHAR* Match, const TCHAR* En
PrefixIdx++;
}
Prefix = Prefix.Left(PrefixIdx);
Prefix.LeftInline(PrefixIdx);
}
@@ -144,7 +144,14 @@ bool NUTUtil::ParseEnum(const TCHAR* Stream, const TCHAR* Match, const TCHAR* En
{
int32 UnderscoreIdx = Prefix.Find(TEXT("_"), ESearchCase::CaseSensitive, ESearchDir::FromEnd);
Prefix = UnderscoreIdx != INDEX_NONE ? Prefix.Left(UnderscoreIdx+1) : TEXT("");
if (UnderscoreIdx != INDEX_NONE)
{
Prefix.LeftInline(UnderscoreIdx+1);
}
else
{
Prefix.Reset();
}
if (Prefix.Len() > 0 && !StrValue.StartsWith(Prefix))
{