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

Method NewDeclaration

src/xml/tinyxml2.cpp:1622–1628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1620
1621
1622XMLDeclaration* XMLDocument::NewDeclaration( const char* str ) {
1623 TIXMLASSERT( sizeof( XMLDeclaration ) == _commentPool.ItemSize() );
1624 XMLDeclaration* dec = new (_commentPool.Alloc()) XMLDeclaration( this );
1625 dec->_memPool = &_commentPool;
1626 dec->SetValue( str ? str : "xml version=\"1.0\" encoding=\"UTF-8\"" );
1627 return dec;
1628}
1629
1630
1631XMLUnknown* XMLDocument::NewUnknown( const char* str ) {

Callers 1

ShallowCloneMethod · 0.80

Calls 3

ItemSizeMethod · 0.80
AllocMethod · 0.80
SetValueMethod · 0.80

Tested by

no test coverage detected