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

Function StringFindFirstNotOf

sdk/add_on/scriptstdstring/scriptstdstring.cpp:453–457  ·  view source on GitHub ↗

This function returns the index of the first 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::findFirstNotOf(const string &in sub, uint start = 0) const

Source from the content-addressed store, hash-verified

451// AngelScript signature:
452// int string::findFirstNotOf(const string &in sub, uint start = 0) const
453static int StringFindFirstNotOf(const string &sub, asUINT start, const string &str)
454{
455 // We don't register the method directly because the argument types change between 32bit and 64bit platforms
456 return (int)str.find_first_not_of(sub, (size_t)(start < 0 ? string::npos : start));
457}
458
459// This function returns the index of the last position where a byte other than those in substring
460// exists in the input string. If none is found -1 is returned.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected