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

Function fx_parseURLIsWindowsDriveLetter

modules/data/url/url.c:1306–1320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1304}
1305
1306txBoolean fx_parseURLIsWindowsDriveLetter(txMachine* the, txString string, txBoolean startsWith)
1307{
1308 char c = *string++;
1309 if ((('A' <= c) && (c <= 'Z')) || (('a' <= c) && (c <= 'z'))) {
1310 c = *string++;
1311 if ((c == ':') || (c == '|')) {
1312 c = *string++;
1313 if (c == 0)
1314 return 1;
1315 if (startsWith && ((c == '/') || (c == '\\') || (c == '?') || (c == '#')))
1316 return 1;
1317 }
1318 }
1319 return 0;
1320}
1321
1322void fx_parseURLNullPart(txMachine* the, txSlot* target, txID id)
1323{

Callers 3

fx_parseURLFunction · 0.85
fx_parseURLPushPathFunction · 0.85
fx_parseURLShortenPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected