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

Method getIntAndCheck

src/res/parser/font_parser.h:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 inline static int getIntAndCheck(
87 const char* attr, const XMLElement* e) throw(ex_xml_parse) {
88 // get value
89 int v = 0;
90 int err = e->QueryIntAttribute(attr, &v);
91 if (err != XML_NO_ERROR)
92 throw ex_xml_parse(RESOURCE_NAME, e->Name(), attr, "has invalid integer value");
93 return v;
94 }
95
96 inline static int getOptionalInt(
97 const char* attr, const XMLElement* e, const int def) throw(ex_xml_parse) {

Callers

nothing calls this directly

Calls 2

ex_xml_parseClass · 0.85
NameMethod · 0.80

Tested by

no test coverage detected