IsDigit returns true if the character is between 0 and 9.
(ch int)
| 22 | |
| 23 | // IsDigit returns true if the character is between 0 and 9. |
| 24 | func IsDigit(ch int) bool { |
| 25 | return ch >= '0' && ch <= '9' |
| 26 | } |
| 27 | |
| 28 | // IsHexDigit returns true if the character is a valid hexadecimal digit. |
| 29 | func IsHexDigit(ch int) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…