MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / SetText

Method SetText

src/xml/tinyxml2.cpp:1225–1232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1223
1224
1225void XMLElement::SetText( const char* inText ) {
1226 if ( FirstChild() && FirstChild()->ToText() )
1227 FirstChild()->SetValue( inText );
1228 else {
1229 XMLText* theText = GetDocument()->NewText( inText );
1230 InsertFirstChild( theText );
1231 }
1232}
1233
1234
1235void XMLElement::SetText( int v ) {

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected