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