LastIndexOf starting index

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: LastIndexOf starting index

Re: LastIndexOf starting index

by _mental_ » Wed Nov 01, 2017 7:29 am

Added in 62e91b2.

LastIndexOf starting index

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?

Top