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

Function StringFindLastOf

sdk/add_on/scriptstdstring/scriptstdstring.cpp:442–446  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

440// AngelScript signature:
441// int string::findLastOf(const string &in sub, uint start = -1) const
442static int StringFindLastOf(const string &sub, asUINT start, const string &str)
443{
444 // We don't register the method directly because the argument types change between 32bit and 64bit platforms
445 return (int)str.find_last_of(sub, (size_t)(start < 0 ? string::npos : start));
446}
447
448// This function returns the index of the first position where a byte other than those in substring
449// exists in the input string. If none is found -1 is returned.

Callers 1

StringFindLastOf_GenericFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected