by Major Cooke » Sat Jul 22, 2017 8:47 am
When looking at other functions from
similar languages like JavaScript, I noticed they have the ability to specify how far backwards they should start, akin to IndexOf's parameter to start forward. There's even a wrapper added to also deal with that.
Code: Select all
long FString::LastIndexOf (const FString &substr, long endIndex) const
{
return LastIndexOf (substr.Chars, endIndex, substr.Len());
}
Can this be added as well?
When looking at other functions from [url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf]similar languages like JavaScript[/url], I noticed they have the ability to specify how far backwards they should start, akin to IndexOf's parameter to start forward. There's even a wrapper added to also deal with that.
[code]long FString::LastIndexOf (const FString &substr, long endIndex) const
{
return LastIndexOf (substr.Chars, endIndex, substr.Len());
}[/code]
Can this be added as well?