MCPcopy Create free account
hub / github.com/Norbyte/bg3se / GetText

Method GetText

CoreLib/tinyxml2.cpp:1656–1672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1654}
1655
1656const char* XMLElement::GetText() const
1657{
1658 /* skip comment node */
1659 const XMLNode* node = FirstChild();
1660 while (node) {
1661 if (node->ToComment()) {
1662 node = node->NextSibling();
1663 continue;
1664 }
1665 break;
1666 }
1667
1668 if ( node && node->ToText() ) {
1669 return node->Value();
1670 }
1671 return 0;
1672}
1673
1674
1675void XMLElement::SetText( const char* inText )

Callers

nothing calls this directly

Calls 2

FirstChildFunction · 0.70
ValueMethod · 0.45

Tested by

no test coverage detected