| 54 | } |
| 55 | |
| 56 | int TeXFormulaSettingParser::getUtf(const XMLElement* e, const char* attr) throw(ex_res_parse) { |
| 57 | const char* val = e->Attribute(attr); |
| 58 | if (val == nullptr || strlen(val) == 0) { |
| 59 | throw ex_xml_parse(RESOURCE_NAME, e->Name(), attr, "no mapping!"); |
| 60 | } |
| 61 | wstring wstr; |
| 62 | utf82wide(val, wstr); |
| 63 | if (wstr.empty() || wstr.length() != 1) { |
| 64 | throw ex_xml_parse(RESOURCE_NAME, e->Name(), attr, "unknown code point!"); |
| 65 | } |
| 66 | return wstr[0]; |
| 67 | } |
| 68 | |
| 69 | void TeXFormulaSettingParser::add2map( |
| 70 | const XMLElement* r, |
nothing calls this directly
no test coverage detected