(b byte)
| 337 | } |
| 338 | |
| 339 | func unhex(b byte) (rune, bool) { |
| 340 | c := rune(b) |
| 341 | switch { |
| 342 | case '0' <= c && c <= '9': |
| 343 | return c - '0', true |
| 344 | case 'a' <= c && c <= 'f': |
| 345 | return c - 'a' + 10, true |
| 346 | case 'A' <= c && c <= 'F': |
| 347 | return c - 'A' + 10, true |
| 348 | } |
| 349 | return 0, false |
| 350 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…