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

Function fx_parseURLHostNotSpecial

modules/data/url/url.c:1209–1224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1207}
1208
1209txBoolean fx_parseURLHostNotSpecial(txMachine* the, txStringStream* src, txInteger from, txInteger to, txStringStream* dst)
1210{
1211 txBoolean result = 1;
1212 txInteger offset = src->offset;
1213 src->offset = from;
1214 while (src->offset < to) {
1215 txInteger c = fx_parseURLDecode(the, src);
1216 if ((c < 0x80) && c_read8(gxNotSpecialHostSet + c)) {
1217 result = 0;
1218 break;
1219 }
1220 fx_parseURLPercentEncode(the, c, dst, gxControlSet);
1221 }
1222 src->offset = offset;
1223 return result;
1224}
1225
1226txBoolean fx_parseURLHostSpecial(txMachine* the, txStringStream* src, txInteger from, txInteger to, txStringStream* dst)
1227{

Callers 1

fx_parseURLHostFunction · 0.85

Calls 2

fx_parseURLDecodeFunction · 0.85
fx_parseURLPercentEncodeFunction · 0.85

Tested by

no test coverage detected