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

Method TeXFormulaSettingParser

src/res/parser/formula_parser.cpp:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47const string TeXFormulaSettingParser::RESOURCE_NAME = "TeXFormulaSettings";
48
49TeXFormulaSettingParser::TeXFormulaSettingParser(const string& file) throw(ex_res_parse)
50 : _doc(true, COLLAPSE_WHITESPACE) {
51 int err = _doc.LoadFile(file.c_str());
52 if (err != XML_NO_ERROR) throw ex_xml_parse(file + " not found!");
53 _root = _doc.RootElement();
54}
55
56int TeXFormulaSettingParser::getUtf(const XMLElement* e, const char* attr) throw(ex_res_parse) {
57 const char* val = e->Attribute(attr);

Callers

nothing calls this directly

Calls 2

ex_xml_parseClass · 0.85
LoadFileMethod · 0.80

Tested by

no test coverage detected