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

Method runString

src/hx/cppia/StringBuiltin.cpp:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124 const char *getName() HXCPP_OVERRIDE { return "ToCaseExpr"; }
125 ToCaseExpr(CppiaExpr *inSrc, CppiaExpr *inThis ) : StringExpr(inSrc,inThis) { }
126 String runString(CppiaCtx *ctx) HXCPP_OVERRIDE
127 {
128 String val = strVal->runString(ctx);
129 BCR_CHECK;
130 if (UPPER)
131 return val.toUpperCase();
132 else
133 return val.toLowerCase();
134 }
135 #ifdef CPPIA_JIT
136 static void SLJIT_CALL strToCase(String *ioVal)
137 {

Callers

nothing calls this directly

Calls 3

toUpperCaseMethod · 0.80
toLowerCaseMethod · 0.80
runStringMethod · 0.45

Tested by

no test coverage detected