MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / PushHeader

Method PushHeader

Dependencies/tinyxml2/src/tinyxml2.cpp:2546–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2544
2545
2546void XMLPrinter::PushHeader( bool writeBOM, bool writeDec )
2547{
2548 if ( writeBOM ) {
2549 static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 };
2550 Write( reinterpret_cast< const char* >( bom ) );
2551 }
2552 if ( writeDec ) {
2553 PushDeclaration( "xml version=\"1.0\"" );
2554 }
2555}
2556
2557
2558void XMLPrinter::OpenElement( const char* name, bool compactMode )

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected