(digit, flag)
| 178 | * if `flag` is non-zero and `digit` has no uppercase form. |
| 179 | */ |
| 180 | const 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…