MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / readAttrString

Function readAttrString

lib/ctu.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167{}
168
169static std::string readAttrString(const tinyxml2::XMLElement *e, const char *attr, bool *error)
170{
171 const char *value = e->Attribute(attr);
172 if (!value && error)
173 *error = true;
174 return empty_if_null(value);
175}
176
177static long long readAttrInt(const tinyxml2::XMLElement *e, const char *attr, bool *error)
178{

Callers 3

loadBaseFromXmlMethod · 0.85
loadFromXmlMethod · 0.85

Calls 2

empty_if_nullFunction · 0.85
AttributeMethod · 0.80

Tested by

no test coverage detected