MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / PushHeader

Method PushHeader

externals/tinyxml2/tinyxml2.cpp:2719–2728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2717
2718
2719void XMLPrinter::PushHeader( bool writeBOM, bool writeDec )
2720{
2721 if ( writeBOM ) {
2722 static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 };
2723 Write( reinterpret_cast< const char* >( bom ) );
2724 }
2725 if ( writeDec ) {
2726 PushDeclaration( "xml version=\"1.0\"" );
2727 }
2728}
2729
2730void XMLPrinter::PrepareForNewNode( bool compactMode )
2731{

Callers

nothing calls this directly

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected