| 1108 | } |
| 1109 | |
| 1110 | void MyXMLVisitor::endElement(void* /*ctx*/, const char* elementName) |
| 1111 | { |
| 1112 | auto it = _tagTables.find(elementName); |
| 1113 | if (it != _tagTables.end()) |
| 1114 | { |
| 1115 | auto tagBehavior = it->second; |
| 1116 | if (tagBehavior.isFontElement) |
| 1117 | { |
| 1118 | popBackFontElement(); |
| 1119 | } |
| 1120 | |
| 1121 | if (tagBehavior.handleVisitExit != nullptr) |
| 1122 | { |
| 1123 | auto* richElement = tagBehavior.handleVisitExit(); |
| 1124 | if (richElement) |
| 1125 | { |
| 1126 | pushBackElement(richElement); |
| 1127 | } |
| 1128 | } |
| 1129 | } |
| 1130 | } |
| 1131 | |
| 1132 | void MyXMLVisitor::textHandler(void* /*ctx*/, const char* str, size_t len) |
| 1133 | { |