| 85 | } |
| 86 | |
| 87 | void TeXFormulaSettingParser::addFormula2map( |
| 88 | const XMLElement* r, |
| 89 | _out_ map<int, string>& math, |
| 90 | _out_ map<int, string>& txt) throw(ex_res_parse) { |
| 91 | while (r != nullptr) { |
| 92 | int ch = getUtf(r, "char"); |
| 93 | const char* formula = r->Attribute("formula"); |
| 94 | const char* text = r->Attribute("text"); |
| 95 | // check |
| 96 | if (formula == nullptr) { |
| 97 | throw ex_xml_parse(RESOURCE_NAME, r->Name(), "formula", "no mapping!"); |
| 98 | } |
| 99 | math[ch] = formula; |
| 100 | if (text != nullptr) txt[ch] = text; |
| 101 | r = r->NextSiblingElement("Map"); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | void TeXFormulaSettingParser::parseSymbol2Formula( |
| 106 | _out_ map<int, string>& mappings, _out_ map<int, string>& txt) throw(ex_res_parse) { |
nothing calls this directly
no test coverage detected