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

Method ShallowClone

src/xml/tinyxml2.cpp:907–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905
906
907XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const {
908 if ( !doc ) {
909 doc = _document;
910 }
911 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
912 text->SetCData( this->CData() );
913 return text;
914}
915
916
917bool XMLText::ShallowEqual( const XMLNode* compare ) const {

Callers

nothing calls this directly

Calls 9

FirstAttributeFunction · 0.85
NewTextMethod · 0.80
NewCommentMethod · 0.80
NewDeclarationMethod · 0.80
NewUnknownMethod · 0.80
NewElementMethod · 0.80
SetAttributeMethod · 0.80
NameMethod · 0.80
ValueMethod · 0.80

Tested by

no test coverage detected