| 131 | } |
| 132 | |
| 133 | bool IXmlNode::IsAttribute(const std::string &key, |
| 134 | const std::string &value) const { |
| 135 | return std::any_of(attribute_list_.cbegin(), attribute_list_.cend(), |
| 136 | [&](const auto &itr) { |
| 137 | return Platform::stricmp(itr.first.c_str(), key.c_str()) == 0 && |
| 138 | Platform::stricmp(itr.second.c_str(), value.c_str()) == 0; |
| 139 | }); |
| 140 | } |
| 141 | |
| 142 | void IXmlNode::Write(std::ostream &dest, size_t level) { // NOLINT |
| 143 |
no test coverage detected