(&mut self, c: char)
| 238 | } |
| 239 | |
| 240 | fn parse_character(&mut self, c: char) -> Result<Option<Event>, ParserError> { |
| 241 | // println(fmt!("Now in state: %?", self.st)); |
| 242 | match self.st { |
| 243 | State::OutsideTag => self.outside_tag(c), |
| 244 | State::TagOpened => self.tag_opened(c), |
| 245 | State::InProcessingInstructions => self.in_processing_instructions(c), |
| 246 | State::InTagName => self.in_tag_name(c), |
| 247 | State::InCloseTagName => self.in_close_tag_name(c), |
| 248 | State::InTag => self.in_tag(c), |
| 249 | State::InAttrName => self.in_attr_name(c), |
| 250 | State::InAttrValue => self.in_attr_value(c), |
| 251 | State::ExpectDelimiter => self.expect_delimiter(c), |
| 252 | State::ExpectClose => self.expect_close(c), |
| 253 | State::ExpectSpaceOrClose => self.expect_space_or_close(c), |
| 254 | State::InExclamationMark => self.in_exclamation_mark(c), |
| 255 | State::InCDATAOpening => self.in_cdata_opening(c), |
| 256 | State::InCDATA => self.in_cdata(c), |
| 257 | State::InCommentOpening => self.in_comment_opening(c), |
| 258 | State::InComment1 => self.in_comment1(c), |
| 259 | State::InComment2 => self.in_comment2(c), |
| 260 | State::InDoctype => self.in_doctype(c), |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | // Outside any tag, or other construct |
| 265 | // '<' => TagOpened, producing Event::Characters |
no test coverage detected