MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / Visit

Method Visit

cpp/tinyxml/tinyxml.cpp:1834–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1832
1833
1834bool TiXmlPrinter::Visit( const TiXmlText& text )
1835{
1836 if ( text.CDATA() )
1837 {
1838 DoIndent();
1839 buffer += "<![CDATA[";
1840 buffer += text.Value();
1841 buffer += "]]>";
1842 DoLineBreak();
1843 }
1844 else if ( simpleTextPrint )
1845 {
1846 TIXML_STRING str;
1847 TiXmlBase::EncodeString( text.ValueTStr(), &str );
1848 buffer += str;
1849 }
1850 else
1851 {
1852 DoIndent();
1853 TIXML_STRING str;
1854 TiXmlBase::EncodeString( text.ValueTStr(), &str );
1855 buffer += str;
1856 DoLineBreak();
1857 }
1858 return true;
1859}
1860
1861
1862bool TiXmlPrinter::Visit( const TiXmlDeclaration& declaration )

Callers 1

AcceptMethod · 0.45

Calls 3

CDATAMethod · 0.80
ValueMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected