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

Function StringCharAt

external/as_add_on/scriptstdstring/scriptstdstring.cpp:314–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314static char *StringCharAt(unsigned int i, string &str)
315{
316 if( i >= str.size() )
317 {
318 // Set a script exception
319 asIScriptContext *ctx = asGetActiveContext();
320 ctx->SetException("Out of range");
321
322 // Return a null pointer
323 return 0;
324 }
325
326 return &str[i];
327}
328
329// AngelScript signature:
330// int string::opCmp(const string &in) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected