| 234 | typedef std::map<string, string> Attributes; |
| 235 | |
| 236 | string AttributesToHtml(Attributes attributes) { |
| 237 | string html; |
| 238 | for (const auto& attr : attributes) { |
| 239 | html += R"CODE(<TR><TD CELLPADDING="1" ALIGN="RIGHT">)CODE"; |
| 240 | html += attr.first; |
| 241 | html += R"CODE(:</TD><TD CELLPADDING="1" ALIGN="LEFT">)CODE"; |
| 242 | html += attr.second; |
| 243 | html += "</TD></TR>"; |
| 244 | } |
| 245 | return html; |
| 246 | } |
| 247 | |
| 248 | string GetArrayLabel(const Model& model, const string& array_id) { |
| 249 | string html; |
no outgoing calls
no test coverage detected