Lines Matching defs:const
3 const { getOptionValue } = require('internal/options');
14 const maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
17 const base = 36;
18 const tMin = 1;
19 const tMax = 26;
20 const skew = 38;
21 const damp = 700;
22 const initialBias = 72;
23 const initialN = 128; // 0x80
24 const delimiter = '-'; // '\x2D'
27 const regexPunycode = /^xn--/;
28 const regexNonASCII = /[^\0-\x7F]/; // Note: U+007F DEL is excluded too.
29 const regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
32 const errors = {
39 const baseMinusTMin = base - tMin;
40 const floor = Math.floor;
41 const stringFromCharCode = String.fromCharCode;
64 const result = [];
83 const parts = domain.split('@');
93 const labels = domain.split('.');
94 const encoded = map(labels, callback).join('.');
112 const output = [];
114 const length = string.length;
116 const value = string.charCodeAt(counter++);
119 const extra = string.charCodeAt(counter++);
143 const ucs2encode = codePoints => String.fromCodePoint(...codePoints);
154 const basicToDigit = function(codePoint) {
178 const digitToBasic = function(digit, flag) {
189 const adapt = function(delta, numPoints, firstTime) {
206 const decode = function(input) {
208 const output = [];
209 const inputLength = input.length;
241 const oldi = i;
248 const digit = basicToDigit(input.charCodeAt(index++));
258 const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
264 const baseMinusT = base - t;
273 const out = output.length + 1;
300 const encode = function(input) {
301 const output = [];
307 const inputLength = input.length;
315 for (const currentValue of input) {
321 const basicLength = output.length;
338 for (const currentValue of input) {
346 const handledCPCountPlusOne = handledCPCount + 1;
354 for (const currentValue of input) {
362 const t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
366 const qMinusT = q - t;
367 const baseMinusT = base - t;
399 const toUnicode = function(input) {
418 const toASCII = function(input) {
429 const punycode = {