MCPcopy Create free account
hub / github.com/angular/dev-infra / getEncoding

Function getEncoding

github-actions/browserstack/set-browserstack-env.js:14988–15263  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

14986 webidl.brandCheck(this, _ProgressEvent);
14987 return this[kState].total;
14988 }
14989 };
14990 webidl.converters.ProgressEventInit = webidl.dictionaryConverter([
14991 {
14992 key: "lengthComputable",
14993 converter: webidl.converters.boolean,
14994 defaultValue: () => false
14995 },
14996 {
14997 key: "loaded",
14998 converter: webidl.converters["unsigned long long"],
14999 defaultValue: () => 0
15000 },
15001 {
15002 key: "total",
15003 converter: webidl.converters["unsigned long long"],
15004 defaultValue: () => 0
15005 },
15006 {
15007 key: "bubbles",
15008 converter: webidl.converters.boolean,
15009 defaultValue: () => false
15010 },
15011 {
15012 key: "cancelable",
15013 converter: webidl.converters.boolean,
15014 defaultValue: () => false
15015 },
15016 {
15017 key: "composed",
15018 converter: webidl.converters.boolean,
15019 defaultValue: () => false
15020 }
15021 ]);
15022 module.exports = {
15023 ProgressEvent
15024 };
15025 }
15026 });
15027
15028 //
15029 var require_encoding = __commonJS({
15030 ""(exports, module) {
15031 "use strict";
15032 function getEncoding(label) {
15033 if (!label) {
15034 return "failure";
15035 }
15036 switch (label.trim().toLowerCase()) {
15037 case "unicode-1-1-utf-8":
15038 case "unicode11utf8":
15039 case "unicode20utf8":
15040 case "utf-8":
15041 case "utf8":
15042 case "x-unicode20utf8":
15043 return "UTF-8";
15044 case "866":
15045 case "cp866":

Callers 1

packageDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected