* @param {number} byte * @returns {number}
(byte)
| 201 | * @returns {number} |
| 202 | */ |
| 203 | function 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 | /** |
no outgoing calls
no test coverage detected
searching dependent graphs…