MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getText

Method getText

Engine/source/console/SimXMLDocument.cpp:1219–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219const char* SimXMLDocument::getText()
1220{
1221 if(m_paNode.empty())
1222 return "";
1223
1224 const S32 iFinalElement = m_paNode.size() - 1;
1225 tinyxml2::XMLNode* pNode = m_paNode[iFinalElement];
1226 if(!pNode)
1227 return "";
1228
1229 if(!pNode->FirstChild())
1230 return "";
1231
1232 tinyxml2::XMLText* text = pNode->FirstChild()->ToText();
1233 if( !text )
1234 return "";
1235
1236 return text->Value();
1237}
1238
1239DefineEngineMethod( SimXMLDocument, getText, const char*, (),,
1240 "@brief Gets the text from the current Element.\n\n"

Callers 6

getDataFromTextFieldMethod · 0.45
clipboardGetTextMethod · 0.45
SimXMLDocument.cppFile · 0.45
readLayerMethod · 0.45

Calls 3

emptyMethod · 0.45
sizeMethod · 0.45
ValueMethod · 0.45

Tested by 2

getDataFromTextFieldMethod · 0.36