MCPcopy Index your code
hub / github.com/nodejs/node / digitToBasic

Function digitToBasic

lib/punycode.js:180–184  ·  view source on GitHub ↗
(digit, flag)

Source from the content-addressed store, hash-verified

178 * if `flag` is non-zero and `digit` has no uppercase form.
179 */
180const digitToBasic = function(digit, flag) {
181 // 0..25 map to ASCII a..z or A..Z
182 // 26..35 map to ASCII 0..9
183 return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
184};
185
186/**
187 * Bias adaptation function as per section 3.4 of RFC 3492.

Callers 1

encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…