MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / ShallowClone

Method ShallowClone

Source/3rdParty/tinyxml2/tinyxml2.cpp:797–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797XMLNode* XMLText::ShallowClone(XMLDocument* doc) const {
798 if (!doc) {
799 doc = _document;
800 }
801 XMLText* text = doc->NewText(Value()); // fixme: this will always allocate memory. Intern?
802 text->SetCData(this->CData());
803 return text;
804}
805
806bool XMLText::ShallowEqual(const XMLNode* compare) const {
807 return (compare->ToText() && XMLUtil::StringEqual(compare->ToText()->Value(), Value()));

Callers

nothing calls this directly

Calls 12

CDataMethod · 0.95
NewTextMethod · 0.80
SetCDataMethod · 0.80
NewCommentMethod · 0.80
NewDeclarationMethod · 0.80
NewUnknownMethod · 0.80
NewElementMethod · 0.80
NextMethod · 0.80
NameMethod · 0.65
ValueMethod · 0.65
ValueInterface · 0.50
SetAttributeMethod · 0.45

Tested by

no test coverage detected