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

Method GetText

externals/tinyxml2/tinyxml2.cpp:1688–1704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1686}
1687
1688const char* XMLElement::GetText() const
1689{
1690 /* skip comment node */
1691 const XMLNode* node = FirstChild();
1692 while (node) {
1693 if (node->ToComment()) {
1694 node = node->NextSibling();
1695 continue;
1696 }
1697 break;
1698 }
1699
1700 if ( node && node->ToText() ) {
1701 return node->Value();
1702 }
1703 return 0;
1704}
1705
1706
1707void XMLElement::SetText( const char* inText )

Callers 13

xmlTextFunction · 0.80
loadMethod · 0.80
loadFunctionMethod · 0.80
parseXmlFileMethod · 0.80
ErrorMessageMethod · 0.80
ProjectConfigurationMethod · 0.80
ItemDefinitionGroupMethod · 0.80
importPropertyGroupFunction · 0.80
readXmlStringListFunction · 0.80
readXmlPathMatchListFunction · 0.80

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected