| 67 | } |
| 68 | |
| 69 | void TeXFormulaSettingParser::add2map( |
| 70 | const XMLElement* r, |
| 71 | _out_ map<int, string>& math, |
| 72 | _out_ map<int, string>& txt) throw(ex_res_parse) { |
| 73 | while (r != nullptr) { |
| 74 | int ch = getUtf(r, "char"); |
| 75 | const char* symbol = r->Attribute("symbol"); |
| 76 | const char* text = r->Attribute("text"); |
| 77 | // check |
| 78 | if (symbol == nullptr) { |
| 79 | throw ex_xml_parse(RESOURCE_NAME, r->Name(), "symbol", "no mapping!"); |
| 80 | } |
| 81 | math[ch] = symbol; |
| 82 | if (text != nullptr) txt[ch] = text; |
| 83 | r = r->NextSiblingElement("Map"); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | void TeXFormulaSettingParser::addFormula2map( |
| 88 | const XMLElement* r, |
nothing calls this directly
no test coverage detected