MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / IsAttribute

Method IsAttribute

lib/mdflib/mdflib/src/ixmlnode.cpp:133–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool 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
142void IXmlNode::Write(std::ostream &dest, size_t level) { // NOLINT
143

Callers 2

ixmlnode.cppFile · 0.80
GetNodeMethod · 0.80

Calls 3

stricmpFunction · 0.85
cbeginMethod · 0.80
cendMethod · 0.80

Tested by

no test coverage detected