IsDigit returns true if the character is between 0 and 9.
(ch int)
| 41 | |
| 42 | // IsDigit returns true if the character is between 0 and 9. |
| 43 | func IsDigit(ch int) bool { |
| 44 | return ch >= '0' && ch <= '9' |
| 45 | } |
| 46 | |
| 47 | // IsHexDigit returns true if the character is a valid hexadecimal digit. |
| 48 | func IsHexDigit(ch int) bool { |
no outgoing calls
no test coverage detected