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

Function hexByteToNumber

lib/internal/data_url.js:203–212  ·  view source on GitHub ↗

* @param {number} byte * @returns {number}

(byte)

Source from the content-addressed store, hash-verified

201 * @returns {number}
202 */
203function hexByteToNumber(byte) {
204 return (
205 // 0-9
206 byte >= 0x30 && byte <= 0x39 ?
207 (byte - 48) :
208 // Convert to uppercase
209 // ((byte & 0xDF) - 65) + 10
210 ((byte & 0xDF) - 55)
211 );
212}
213
214// https://url.spec.whatwg.org/#percent-decode
215/**

Callers 1

percentDecodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…