Check if the character at the specified position is an alphabetical character, a digit, '_', or '-'.
(b []byte, i int)
| 46 | // Check if the character at the specified position is an alphabetical |
| 47 | // character, a digit, '_', or '-'. |
| 48 | func is_alpha(b []byte, i int) bool { |
| 49 | return b[i] >= '0' && b[i] <= '9' || b[i] >= 'A' && b[i] <= 'Z' || b[i] >= 'a' && b[i] <= 'z' || b[i] == '_' || b[i] == '-' |
| 50 | } |
| 51 | |
| 52 | // Check if the character at the specified position is a digit. |
| 53 | func is_digit(b []byte, i int) bool { |
no outgoing calls
no test coverage detected