MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / encodeSelectizeValue

Function encodeSelectizeValue

static/panes/diff.ts:43–48  ·  view source on GitHub ↗
(value: DiffTypeAndExtra)

Source from the content-addressed store, hash-verified

41};
42
43function encodeSelectizeValue(value: DiffTypeAndExtra): string {
44 if (value.extraoption) {
45 return value.difftype.toString() + `:${value.extraoption}`;
46 }
47 return value.difftype.toString();
48}
49
50function decodeSelectizeValue(value: string): DiffTypeAndExtra {
51 const opts = value.split(':');

Callers 3

getDiffableOptionsMethod · 0.85
refreshDiffOptionsMethod · 0.85
updateCompilersMethod · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected