You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
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:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user