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