MCPcopy Create free account
hub / github.com/cxapython/catvm / v

Function v

xiaohongshu/test.js:750–785  ·  view source on GitHub ↗
(e, t, n)

Source from the content-addressed store, hash-verified

748 }
749 }
750 function v(e, t, n) {
751 var r = !1;
752 if ((void 0 === t || t < 0) && (t = 0),
753 t > this.length)
754 return "";
755 if ((void 0 === n || n > this.length) && (n = this.length),
756 n <= 0)
757 return "";
758 if ((n >>>= 0) <= (t >>>= 0))
759 return "";
760 for (e || (e = "utf8"); ; )
761 switch (e) {
762 case "hex":
763 return P(this, t, n);
764 case "utf8":
765 case "utf-8":
766 return O(this, t, n);
767 case "ascii":
768 return A(this, t, n);
769 case "latin1":
770 case "binary":
771 return C(this, t, n);
772 case "base64":
773 return T(this, t, n);
774 case "ucs2":
775 case "ucs-2":
776 case "utf16le":
777 case "utf-16le":
778 return M(this, t, n);
779 default:
780 if (r)
781 throw new TypeError("Unknown encoding: " + e);
782 e = (e + "").toLowerCase(),
783 r = !0
784 }
785 }
786 function g(e, t, n) {
787 var r = e[t];
788 e[t] = e[n],

Callers 1

test.jsFile · 0.70

Calls 10

PFunction · 0.70
OFunction · 0.70
AFunction · 0.70
CFunction · 0.70
TFunction · 0.70
MFunction · 0.70
hFunction · 0.70
jFunction · 0.70
yFunction · 0.70
pFunction · 0.70

Tested by

no test coverage detected