Check if the character at the specified position is a digit.
(b []byte, i int)
| 51 | |
| 52 | // Check if the character at the specified position is a digit. |
| 53 | func is_digit(b []byte, i int) bool { |
| 54 | return b[i] >= '0' && b[i] <= '9' |
| 55 | } |
| 56 | |
| 57 | // Get the value of a digit. |
| 58 | func as_digit(b []byte, i int) int { |
no outgoing calls
no test coverage detected