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

Method runString

src/hx/cppia/StringBuiltin.cpp:45–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 return StringExpr::link(inData);
44 }
45 String runString(CppiaCtx *ctx) HXCPP_OVERRIDE
46 {
47 String val = strVal->runString(ctx);
48 BCR_CHECK;
49 int start = a0->runInt(ctx);
50 BCR_CHECK;
51 Dynamic end = a1->runObject(ctx);
52 BCR_CHECK;
53 if (SUBSTR)
54 return val.substr(start,end);
55 else
56 return val.substring(start,end);
57 }
58 #ifdef CPPIA_JIT
59 static void SLJIT_CALL runSubstr(String *ioValue, int start, hx::Object *end)
60 {

Callers 7

runObjectMethod · 0.45
runStringMethod · 0.45
runStringMethod · 0.45
runIntMethod · 0.45
runObjectMethod · 0.45
runObjectMethod · 0.45
runIntMethod · 0.45

Calls 4

substrMethod · 0.80
substringMethod · 0.80
runIntMethod · 0.45
runObjectMethod · 0.45

Tested by

no test coverage detected