MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / getText

Method getText

engine/source/persistence/SimXMLDocument.cpp:804–823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

802}
803
804const char* SimXMLDocument::getText()
805{
806 if(m_paNode.empty())
807 return "";
808
809 const int iFinalElement = m_paNode.size() - 1;
810 TiXmlNode* pNode = m_paNode[iFinalElement];
811 if(!pNode)
812 return "";
813
814 if (pNode->FirstChild() != NULL)
815 {
816 TiXmlText* text = pNode->FirstChild()->ToText();
817 if (!text)
818 return "";
819
820 return text->Value();
821 }
822 else return "";
823}
824
825void SimXMLDocument::removeText()
826{

Callers 1

Calls 5

emptyMethod · 0.45
sizeMethod · 0.45
FirstChildMethod · 0.45
ToTextMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected