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

Function fxNumberToIndex

xs/sources/xsCommon.c:1286–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284}
1285
1286txFlag fxNumberToIndex(void* the, txNumber number, txIndex* theIndex)
1287{
1288 txIndex integer = (txIndex)number;
1289 txNumber check = integer;
1290 if ((number == check) && (integer < 4294967295u)) {
1291 *theIndex = integer;
1292 return 1;
1293 }
1294 return 0;
1295}
1296
1297txFlag fxStringToIndex(void* the, txString theString, txIndex* theIndex)
1298{

Callers 5

fxRunIDFunction · 0.85
fxAtFunction · 0.85
fxPropertyNameFunction · 0.85
fxObjectBindingFunction · 0.85
fxToJSONKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected