IsIdentStart returns true if the character is valid at the start of an identifier.
(ch int)
| 93 | |
| 94 | // IsIdentStart returns true if the character is valid at the start of an identifier. |
| 95 | func IsIdentStart(ch int) bool { |
| 96 | return (ch >= 'A' && ch <= 'Z') || |
| 97 | (ch >= 'a' && ch <= 'z') || |
| 98 | (ch >= 128 && ch <= 255) || |
| 99 | (ch == '_') |
| 100 | } |
| 101 | |
| 102 | // IsIdentMiddle returns true if the character is valid inside an identifier. |
| 103 | func IsIdentMiddle(ch int) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…