MCPcopy Create free account
hub / github.com/avast/retdec / OpenElement

Method OpenElement

deps/tinyxml2/tinyxml2.cpp:2631–2649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2629
2630
2631void XMLPrinter::OpenElement( const char* name, bool compactMode )
2632{
2633 SealElementIfJustOpened();
2634 _stack.Push( name );
2635
2636 if ( _textDepth < 0 && !_firstElement && !compactMode ) {
2637 Putc( '\n' );
2638 }
2639 if ( !compactMode ) {
2640 PrintSpace( _depth );
2641 }
2642
2643 Write ( "<" );
2644 Write ( name );
2645
2646 _elementJustOpened = true;
2647 _firstElement = false;
2648 ++_depth;
2649}
2650
2651
2652void XMLPrinter::PushAttribute( const char* name, const char* value )

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
PushMethod · 0.45

Tested by

no test coverage detected