MCPcopy Create free account
hub / github.com/codemistic/Web-Development / a

Function a

QR-Code Generator/qrcode.js:3–10  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

1var QRCode;
2! function() {
3 function a(a) {
4 this.mode = c.MODE_8BIT_BYTE, this.data = a, this.parsedData = [];
5 for (var b = [], d = 0, e = this.data.length; e > d; d++) {
6 var f = this.data.charCodeAt(d);
7 f > 65536 ? (b[0] = 240 | (1835008 & f) >>> 18, b[1] = 128 | (258048 & f) >>> 12, b[2] = 128 | (4032 & f) >>> 6, b[3] = 128 | 63 & f) : f > 2048 ? (b[0] = 224 | (61440 & f) >>> 12, b[1] = 128 | (4032 & f) >>> 6, b[2] = 128 | 63 & f) : f > 128 ? (b[0] = 192 | (1984 & f) >>> 6, b[1] = 128 | 63 & f) : b[0] = f, this.parsedData = this.parsedData.concat(b)
8 }
9 this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239))
10 }
11
12 function b(a, b) { this.typeNumber = a, this.errorCorrectLevel = b, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [] }
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected