[Added] LastIndexOf starting index

Moderator: Developers

LastIndexOf starting index

Postby Major Cooke » Sat Jul 22, 2017 9: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 allExpand view
long FString::LastIndexOf (const FString &substr, long endIndex) const
   return LastIndexOf (substr.Chars, endIndex, substr.Len());

Can this be added as well?
User avatar
Major Cooke
The road to Hell is paved in the carrion she leaves behind.
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: LastIndexOf starting index

Postby _mental_ » Wed Nov 01, 2017 8:29 am

Added in 62e91b2.
Joined: 07 Aug 2011

Return to Closed Feature Suggestions

Who is online

Users browsing this forum: DotBot and 1 guest