MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / StringCmp

Function StringCmp

external/as_add_on/scriptstdstring/scriptstdstring.cpp:331–337  ·  view source on GitHub ↗

AngelScript signature: int string::opCmp(const string &in) const

Source from the content-addressed store, hash-verified

329// AngelScript signature:
330// int string::opCmp(const string &in) const
331static int StringCmp(const string &a, const string &b)
332{
333 int cmp = 0;
334 if( a < b ) cmp = -1;
335 else if( a > b ) cmp = 1;
336 return cmp;
337}
338
339// This function returns the index of the first position where the substring
340// exists in the input string. If the substring doesn't exist in the input

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected