MCPcopy Index your code
hub / github.com/messageformat/messageformat / E

Function E

docs/scripts/prettify/prettify.js:258–314  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

256 }
257
258 function E(a) {
259 var m =
260 a.g;
261 try {
262 var e = M(a.h),
263 h = e.a;
264 a.a = h;
265 a.c = e.c;
266 a.d = 0;
267 C(m, h)(a);
268 var k = /\bMSIE\b/.test(navigator.userAgent),
269 m = /\n/g,
270 t = a.a,
271 s = t.length,
272 e = 0,
273 l = a.c,
274 p = l.length,
275 h = 0,
276 d = a.e,
277 g = d.length,
278 a = 0;
279 d[g] = s;
280 var r, n;
281 for (n = r = 0; n < g;) d[n] !== d[n + 2] ? (d[r++] = d[n++], d[r++] = d[n++]) : n += 2;
282 g = r;
283 for (n = r = 0; n < g;) {
284 for (var z = d[n], f = d[n + 1], b = n + 2; b + 2 <= g && d[b + 1] === f;) b += 2;
285 d[r++] = z;
286 d[r++] = f;
287 n = b
288 }
289 for (d.length = r; h < p;) {
290 var o = l[h + 2] || s,
291 c = d[a + 2] || s,
292 b = Math.min(o, c),
293 i = l[h + 1],
294 j;
295 if (i.nodeType !== 1 && (j = t.substring(e, b))) {
296 k && (j = j.replace(m, "\r"));
297 i.nodeValue =
298 j;
299 var u = i.ownerDocument,
300 v = u.createElement("SPAN");
301 v.className = d[a + 1];
302 var x = i.parentNode;
303 x.replaceChild(v, i);
304 v.appendChild(i);
305 e < o && (l[h + 1] = i = u.createTextNode(t.substring(b, o)), x.insertBefore(i, v.nextSibling))
306 }
307 e = b;
308 e >= o && (h += 2);
309 e >= c && (a += 2)
310 }
311 } catch (w) {
312 "console" in window && console.log(w && w.stack ? w.stack : w)
313 }
314 }
315 var v = ["break,continue,do,else,for,if,return,while"],

Callers 2

prettify.jsFile · 0.70
mFunction · 0.70

Calls 2

MFunction · 0.70
CFunction · 0.70

Tested by

no test coverage detected