| 240 | } |
| 241 | |
| 242 | bool Element::findAttribute(std::string_view _name, std::string& _value) |
| 243 | { |
| 244 | for (const auto& attribute : mAttributes) |
| 245 | { |
| 246 | if (attribute.first == _name) |
| 247 | { |
| 248 | _value = attribute.second; |
| 249 | return true; |
| 250 | } |
| 251 | } |
| 252 | return false; |
| 253 | } |
| 254 | |
| 255 | std::string_view Element::findAttribute(std::string_view _name) |
| 256 | { |
no outgoing calls
no test coverage detected