MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / TeXSymbolParser

Method TeXSymbolParser

src/res/parser/formula_parser.cpp:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23TeXSymbolParser::TeXSymbolParser(const string& file) throw(ex_res_parse)
24 : _doc(true, COLLAPSE_WHITESPACE) {
25 int err = _doc.LoadFile(file.c_str());
26 if (err != XML_NO_ERROR) throw ex_res_parse(file + " not found!");
27 _root = _doc.RootElement();
28}
29
30void TeXSymbolParser::readSymbols(_out_ map<string, sptr<SymbolAtom>>& res) throw(ex_res_parse) {
31 const XMLElement* e = _root->FirstChildElement("Symbol");

Callers

nothing calls this directly

Calls 2

ex_res_parseClass · 0.85
LoadFileMethod · 0.80

Tested by

no test coverage detected