MCPcopy Create free account
hub / github.com/dirk1983/deepseek / fromCodePoint

Function fromCodePoint

js/remarkable.js:2507–2517  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

2505}
2506
2507function fromCodePoint(c) {
2508 /*eslint no-bitwise:0*/
2509 if (c > 0xffff) {
2510 c -= 0x10000;
2511 var surrogate1 = 0xd800 + (c >> 10),
2512 surrogate2 = 0xdc00 + (c & 0x3ff);
2513
2514 return String.fromCharCode(surrogate1, surrogate2);
2515 }
2516 return String.fromCharCode(c);
2517}
2518
2519var NAMED_ENTITY_RE = /&([a-z#][a-z0-9]{1,31});/gi;
2520var DIGITAL_ENTITY_TEST_RE = /^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;

Callers 2

replaceEntityPatternFunction · 0.85
remarkable.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected