Check if the character at the specified position is a hex-digit.
(b []byte, i int)
| 61 | |
| 62 | // Check if the character at the specified position is a hex-digit. |
| 63 | func is_hex(b []byte, i int) bool { |
| 64 | return b[i] >= '0' && b[i] <= '9' || b[i] >= 'A' && b[i] <= 'F' || b[i] >= 'a' && b[i] <= 'f' |
| 65 | } |
| 66 | |
| 67 | // Get the value of a hex-digit. |
| 68 | func as_hex(b []byte, i int) int { |
no outgoing calls
no test coverage detected