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

Function PiuCode_findWordBreak

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

Source from the content-addressed store, hash-verified

1177}
1178
1179void PiuCode_findWordBreak(xsMachine *the)
1180{
1181 PiuCode* self = PIU(Code, xsThis);
1182 uint32_t argc = xsToUnsigned(xsArgc);
1183 int32_t offset = xsToInteger(xsArg(0));
1184 int32_t direction = (argc > 1) ? (xsToBoolean(xsArg(1)) ? +1 : -1) : +1;
1185 xsResult = xsInteger(PiuCodeFindWordBreak(self, offset, direction));
1186}
1187
1188void PiuCode_hitOffset(xsMachine *the)
1189{

Callers

nothing calls this directly

Calls 1

PiuCodeFindWordBreakFunction · 0.85

Tested by

no test coverage detected