MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / removeText

Method removeText

Engine/source/console/SimXMLDocument.cpp:1263–1281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1261}
1262
1263void SimXMLDocument::removeText()
1264{
1265 if(m_paNode.empty())
1266 return;
1267
1268 const S32 iFinalElement = m_paNode.size() - 1;
1269 TiXmlElement* pNode = m_paNode[iFinalElement];
1270 if(!pNode)
1271 return;
1272
1273 if( !pNode->FirstChild() )
1274 return;
1275
1276 TiXmlText* text = pNode->FirstChild()->ToText();
1277 if( !text )
1278 return;
1279
1280 pNode->RemoveChild(text);
1281}
1282
1283DefineEngineMethod( SimXMLDocument, removeText, void, (),,
1284 "@brief Remove any text on the current Element.\n\n"

Callers 1

SimXMLDocument.cppFile · 0.80

Calls 5

RemoveChildMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45
FirstChildMethod · 0.45
ToTextMethod · 0.45

Tested by

no test coverage detected