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

Method NewText

lib/tinyxml2/tinyxml2.cpp:1751–1758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1749
1750
1751XMLText* XMLDocument::NewText( const char* str )
1752{
1753 TIXMLASSERT( sizeof( XMLText ) == _textPool.ItemSize() );
1754 XMLText* text = new (_textPool.Alloc()) XMLText( this );
1755 text->_memPool = &_textPool;
1756 text->SetValue( str );
1757 return text;
1758}
1759
1760
1761XMLDeclaration* XMLDocument::NewDeclaration( const char* str )

Callers 2

ShallowCloneMethod · 0.80
SetTextMethod · 0.80

Calls 3

ItemSizeMethod · 0.80
AllocMethod · 0.80
SetValueMethod · 0.80

Tested by

no test coverage detected