returns lower-case ch iff ch is ASCII letter
(ch rune, base, n int)
| 190 | func lower(ch rune) rune { return ('a' - 'A') | ch } // returns lower-case ch iff ch is ASCII letter |
| 191 | |
| 192 | func (l *Lexer) scanDigits(ch rune, base, n int) rune { |
| 193 | for n > 0 && digitVal(ch) < base { |
| 194 | ch = l.next() |
| 195 | n-- |
| 196 | } |
| 197 | if n > 0 { |
| 198 | l.error("invalid char escape") |
| 199 | } |
| 200 | return ch |
| 201 | } |
| 202 | |
| 203 | func (l *Lexer) scanEscape(quote rune) rune { |
| 204 | ch := l.next() // read character after '/' |
no test coverage detected