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

Function PiuCode_set_string

modules/piu/PC/Code/piuCode.c:958–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

956}
957
958void PiuCode_set_string(xsMachine *the)
959{
960 PiuCode* self = PIU(Code, xsThis);
961 xsSlot* slot = PiuString(xsArg(0));
962 xsStringValue string = PiuToString(slot);
963 (*self)->string = slot;
964 (*self)->length = fxUnicodeLength(string, (xsIntegerValue*)&((*self)->size));
965 PiuCodeFormat(self);
966 PiuCodeSearch(self, (*self)->size);
967 PiuCodeSelect(self, (*self)->from, (*self)->to - (*self)->from);
968 PiuContentReflow(self, piuSizeChanged);
969}
970
971void PiuCode_set_type(xsMachine *the)
972{

Callers

nothing calls this directly

Calls 5

fxUnicodeLengthFunction · 0.85
PiuCodeFormatFunction · 0.85
PiuCodeSearchFunction · 0.85
PiuCodeSelectFunction · 0.85
PiuContentReflowFunction · 0.85

Tested by

no test coverage detected