[Added] LastIndexOf starting index

Moderators: Developers, ZDoom.org Team

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
Slaughterer of Sewers
 
Joined: 28 Jan 2007
Discord: Major Cooke#0846

Re: LastIndexOf starting index

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

Added in 62e91b2.
_mental_
 
 
 
Joined: 07 Aug 2011


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests