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

Function StringFindLastNotOf

sdk/add_on/scriptstdstring/scriptstdstring.cpp:464–468  ·  view source on GitHub ↗

This function returns the index of the last position where a byte other than those in substring exists in the input string. If none is found -1 is returned. AngelScript signature: int string::findLastNotOf(const string &in sub, uint start = -1) const

Source from the content-addressed store, hash-verified

462// AngelScript signature:
463// int string::findLastNotOf(const string &in sub, uint start = -1) const
464static int StringFindLastNotOf(const string &sub, asUINT start, const string &str)
465{
466 // We don't register the method directly because the argument types change between 32bit and 64bit platforms
467 return (int)str.find_last_not_of(sub, (size_t)(start < 0 ? string::npos : start));
468}
469
470// This function returns the index of the last position where the substring
471// exists in the input string. If the substring doesn't exist in the input

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected