MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / GetText

Method GetText

native/thirdpart/tinyxml2/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 1

textFunction · 0.80

Calls 2

FirstChildFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected