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

Method getAttr

src/res/parser/formula_parser.cpp:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 {"acc", TYPE_ACCENT}};
16
17string TeXSymbolParser::getAttr(const char* attr, const XMLElement* e) throw(ex_res_parse) {
18 const char* x = e->Attribute(attr);
19 if (x == nullptr || strlen(x) == 0) throw ex_xml_parse(RESOURCE_NAME, e->Name(), attr, "no mapping!");
20 return x;
21}
22
23TeXSymbolParser::TeXSymbolParser(const string& file) throw(ex_res_parse)
24 : _doc(true, COLLAPSE_WHITESPACE) {

Callers

nothing calls this directly

Calls 3

ex_xml_parseClass · 0.85
AttributeMethod · 0.80
NameMethod · 0.80

Tested by

no test coverage detected