MCPcopy Create free account
hub / github.com/anjo76/angelscript / StringFindLast

Function StringFindLast

sdk/add_on/scriptstdstring/scriptstdstring.cpp:476–480  ·  view source on GitHub ↗

This function returns the index of the last position where the substring exists in the input string. If the substring doesn't exist in the input string -1 is returned. AngelScript signature: int string::findLast(const string &in sub, int start = -1) const

Source from the content-addressed store, hash-verified

474// AngelScript signature:
475// int string::findLast(const string &in sub, int start = -1) const
476static int StringFindLast(const string &sub, int start, const string &str)
477{
478 // We don't register the method directly because the argument types change between 32bit and 64bit platforms
479 return (int)str.rfind(sub, (size_t)(start < 0 ? string::npos : start));
480}
481
482// AngelScript signature:
483// void string::insert(uint pos, const string &in other)

Callers 1

StringFindLast_GenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected