IsHexDigit returns true if the character is a valid hexadecimal digit.
(ch int)
| 32 | |
| 33 | // IsHexDigit returns true if the character is a valid hexadecimal digit. |
| 34 | func IsHexDigit(ch int) bool { |
| 35 | return (ch >= '0' && ch <= '9') || |
| 36 | (ch >= 'a' && ch <= 'f') || |
| 37 | (ch >= 'A' && ch <= 'F') |
| 38 | } |
| 39 | |
| 40 | // reservedOrLookaheadKeywords are the reserved keywords plus those keywords for |
| 41 | // which we need one token of lookahead extra to determine their token type. |
no outgoing calls
no test coverage detected
searching dependent graphs…