MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / runInt

Method runInt

src/hx/cppia/StringBuiltin.cpp:354–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 return runInt(ctx);
353 }
354 int runInt(CppiaCtx *ctx) HXCPP_OVERRIDE
355 {
356 String val = strVal->runString(ctx);
357 BCR_CHECK;
358 String s = sought->runString(ctx);
359 BCR_CHECK;
360 hx::Object *first = start->runObject(ctx);
361 BCR_CHECK;
362 if (LAST)
363 return val.lastIndexOf(s,first);
364 else
365 return val.indexOf(s,first);
366 }
367 hx::Object *runObject(CppiaCtx *ctx) HXCPP_OVERRIDE { return Dynamic(runInt(ctx)).mPtr; }
368
369

Callers

nothing calls this directly

Calls 4

lastIndexOfMethod · 0.80
indexOfMethod · 0.80
runStringMethod · 0.45
runObjectMethod · 0.45

Tested by

no test coverage detected