MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / encode_uri

Function encode_uri

shared/rison.ts:216–218  ·  view source on GitHub ↗
(v: JSONValue)

Source from the content-addressed store, hash-verified

214 *
215 */
216export function encode_uri(v: JSONValue) {
217 return quote(unwrap(encode_table[typeof v](v)));
218}
219
220//
221// based on openlaszlo-json and hacked by nix for use in uris.

Callers

nothing calls this directly

Calls 2

quoteFunction · 0.85
unwrapFunction · 0.70

Tested by

no test coverage detected