(&mut self, n: usize)
| 326 | } |
| 327 | |
| 328 | fn read_hex(&mut self, n: usize) -> Result<char, ParseError> { |
| 329 | let mut acc: u32 = 0; |
| 330 | for _ in 0..n { |
| 331 | let d = self.peek().and_then(|c| c.to_digit(16)).ok_or(self.err("bad hex escape"))?; |
| 332 | acc = acc * 16 + d; |
| 333 | self.bump(); |
| 334 | } |
| 335 | char::from_u32(acc).ok_or(self.err("invalid codepoint")) |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | fn single(item: ClassItem) -> Vec<ClassItem> { |
no test coverage detected