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

Method runString

src/hx/cppia/StringBuiltin.cpp:179–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177 ExprType getType() HXCPP_OVERRIDE { return CODE ? (AS_INT ? etInt : etObject) : etString; }
178
179 String runString(CppiaCtx *ctx) HXCPP_OVERRIDE
180 {
181 String val = strVal->runString(ctx);
182 BCR_CHECK;
183 int idx = a0->runInt(ctx);
184 BCR_CHECK;
185 return val.charAt(idx);
186 }
187 int runInt(CppiaCtx *ctx) HXCPP_OVERRIDE
188 {
189 //printf("Char code at %d INT\n", CODE);

Callers

nothing calls this directly

Calls 3

charAtMethod · 0.80
runStringMethod · 0.45
runIntMethod · 0.45

Tested by

no test coverage detected