MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxCopyStringC

Function fxCopyStringC

xs/sources/xsAll.c:247–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247txString fxCopyStringC(txMachine* the, txSlot* a, txString b)
248{
249 txSize bSize = mxStringLength(b);
250 txSize resultSize = fxAddChunkSizes(the, bSize, 1);
251 txString result = (txString)fxNewChunk(the, resultSize);
252 c_memcpy(result, b, resultSize);
253 a->value.string = result;
254 a->kind = XS_STRING_KIND;
255 return result;
256}
257
258txBoolean fxIsCanonicalIndex(txMachine* the, txID id)
259{

Callers 15

fx_serializeURLFunction · 0.85
fxNewFunctionNameFunction · 0.85
fxNextStringPropertyFunction · 0.85
fxNextStringXPropertyFunction · 0.85
fxKeyAtFunction · 0.85
fxNewFunctionNameFunction · 0.85
fxStringFunction · 0.85
fxStringXFunction · 0.85
fxToStringFunction · 0.85
fx_Date_auxFunction · 0.85

Calls 1

fxNewChunkFunction · 0.85

Tested by

no test coverage detected