MCPcopy Create free account
hub / github.com/RenderKit/embree / parseComments

Function parseComments

tutorials/common/scenegraph/xml_parser.cpp:15–26  ·  view source on GitHub ↗

! parse a list of XML comments */

Source from the content-addressed store, hash-verified

13
14 /*! parse a list of XML comments */
15 void parseComments(Ref<Stream<Token> >& cin)
16 {
17 while (cin->peek() == Token::Sym("<!--")) {
18 cin->drop();
19 while (cin->peek() != Token::Sym("-->")) {
20 if (cin->peek() == Token::Eof())
21 THROW_RUNTIME_ERROR(cin->get().Location().str()+": --> expected");
22 cin->drop();
23 }
24 cin->drop();
25 }
26 }
27
28 /*! parse XML parameter */
29 void parseParm(Ref<Stream<Token> >& cin, std::map<std::string,std::string>& parms)

Callers 2

parseHeaderFunction · 0.85
parseXMLFunction · 0.85

Calls 3

dropMethod · 0.80
strMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected