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

Method NewText

Source/3rdParty/tinyxml2/tinyxml2.cpp:1369–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369XMLText* XMLDocument::NewText(const char* str) {
1370 XMLText* text = new (_textPool.Alloc()) XMLText(this);
1371 text->_memPool = &_textPool;
1372 text->SetValue(str);
1373 return text;
1374}
1375
1376XMLDeclaration* XMLDocument::NewDeclaration(const char* str) {
1377 XMLDeclaration* dec = new (_commentPool.Alloc()) XMLDeclaration(this);

Callers 1

ShallowCloneMethod · 0.80

Calls 2

SetValueMethod · 0.80
AllocMethod · 0.45

Tested by

no test coverage detected