MCPcopy Create free account
hub / github.com/Florob/RustyXML / parse_character

Method parse_character

src/parser.rs:240–262  ·  view source on GitHub ↗
(&mut self, c: char)

Source from the content-addressed store, hash-verified

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

Callers 1

nextMethod · 0.80

Calls 15

outside_tagMethod · 0.80
tag_openedMethod · 0.80
in_tag_nameMethod · 0.80
in_close_tag_nameMethod · 0.80
in_tagMethod · 0.80
in_attr_nameMethod · 0.80
in_attr_valueMethod · 0.80
expect_delimiterMethod · 0.80
expect_closeMethod · 0.80
expect_space_or_closeMethod · 0.80
in_exclamation_markMethod · 0.80

Tested by

no test coverage detected