MCPcopy Create free account
hub / github.com/JayXon/Leanify / SetText

Method SetText

lib/tinyxml2/tinyxml2.cpp:1335–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1333
1334
1335void XMLElement::SetText( const char* inText )
1336{
1337 if ( FirstChild() && FirstChild()->ToText() )
1338 FirstChild()->SetValue( inText );
1339 else {
1340 XMLText* theText = GetDocument()->NewText( inText );
1341 InsertFirstChild( theText );
1342 }
1343}
1344
1345
1346void XMLElement::SetText( int v )

Callers 1

LeanifyMethod · 0.80

Calls 4

FirstChildFunction · 0.85
GetDocumentFunction · 0.85
SetValueMethod · 0.80
NewTextMethod · 0.80

Tested by

no test coverage detected