Last change
on this file since 59329aa 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";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | exports.fromCodePoint = String.fromCodePoint || function (astralCodePoint) {
|
---|
4 | return String.fromCharCode(Math.floor((astralCodePoint - 0x10000) / 0x400) + 0xD800, (astralCodePoint - 0x10000) % 0x400 + 0xDC00);
|
---|
5 | };
|
---|
6 | exports.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 | };
|
---|
14 | exports.highSurrogateFrom = 0xD800;
|
---|
15 | exports.highSurrogateTo = 0xDBFF;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.