source: trip-planner-front/node_modules/html-entities/lib/surrogate-pairs.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 668 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.fromCodePoint = String.fromCodePoint || function (astralCodePoint) {
4 return String.fromCharCode(Math.floor((astralCodePoint - 0x10000) / 0x400) + 0xD800, (astralCodePoint - 0x10000) % 0x400 + 0xDC00);
5};
6exports.getCodePoint = String.prototype.codePointAt ?
7 function (input, position) {
8 return input.codePointAt(position);
9 } :
10 function (input, position) {
11 return (input.charCodeAt(position) - 0xD800) * 0x400
12 + input.charCodeAt(position + 1) - 0xDC00 + 0x10000;
13 };
14exports.highSurrogateFrom = 0xD800;
15exports.highSurrogateTo = 0xDBFF;
Note: See TracBrowser for help on using the repository browser.