MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / toCodePoints$1

Function toCodePoints$1

src/test/resources/libraries/html2canvas/html2canvas.js:143–164  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

141 * Released under MIT License
142 */
143 var toCodePoints$1 = function (str) {
144 var codePoints = [];
145 var i = 0;
146 var length = str.length;
147 while (i < length) {
148 var value = str.charCodeAt(i++);
149 if (value >= 0xd800 && value <= 0xdbff && i < length) {
150 var extra = str.charCodeAt(i++);
151 if ((extra & 0xfc00) === 0xdc00) {
152 codePoints.push(((value & 0x3ff) << 10) + (extra & 0x3ff) + 0x10000);
153 }
154 else {
155 codePoints.push(value);
156 i--;
157 }
158 }
159 else {
160 codePoints.push(value);
161 }
162 }
163 return codePoints;
164 };
165 var fromCodePoint$1 = function () {
166 var codePoints = [];
167 for (var _i = 0; _i < arguments.length; _i++) {

Callers 4

LineBreakerFunction · 0.85
html2canvas.jsFile · 0.85
testIOSLineBreakFunction · 0.85
_loop_1Function · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…