MCPcopy Index your code
hub / github.com/outerbase/studio / Wa

Function Wa

public/sqljs/sql-wasm.js:876–902  ·  view source on GitHub ↗
(a, b, c)

Source from the content-addressed store, hash-verified

874 var Va =
875 "undefined" !== typeof TextDecoder ? new TextDecoder("utf8") : void 0;
876 function Wa(a, b, c) {
877 var d = b + c;
878 for (c = b; a[c] && !(c >= d); ) ++c;
879 if (16 < c - b && a.subarray && Va) return Va.decode(a.subarray(b, c));
880 for (d = ""; b < c; ) {
881 var f = a[b++];
882 if (f & 128) {
883 var h = a[b++] & 63;
884 if (192 == (f & 224)) d += String.fromCharCode(((f & 31) << 6) | h);
885 else {
886 var l = a[b++] & 63;
887 f =
888 224 == (f & 240)
889 ? ((f & 15) << 12) | (h << 6) | l
890 : ((f & 7) << 18) | (h << 12) | (l << 6) | (a[b++] & 63);
891 65536 > f
892 ? (d += String.fromCharCode(f))
893 : ((f -= 65536),
894 (d += String.fromCharCode(
895 55296 | (f >> 10),
896 56320 | (f & 1023)
897 )));
898 }
899 } else d += String.fromCharCode(f);
900 }
901 return d;
902 }
903 function D(a, b) {
904 return a ? Wa(y, a, b) : "";
905 }

Callers 3

DFunction · 0.85
initSqlJsFunction · 0.85
taFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected