MCPcopy Create free account
hub / github.com/SOUI2/soui / Visit

Method Visit

tools/src/uiresbuilder/tinyxml/tinyxml.cpp:1847–1872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1845
1846
1847bool TiXmlPrinter::Visit( const TiXmlText& text )
1848{
1849 if ( text.CDATA() )
1850 {
1851 DoIndent();
1852 buffer += "<![CDATA[";
1853 buffer += text.Value();
1854 buffer += "]]>";
1855 DoLineBreak();
1856 }
1857 else if ( simpleTextPrint )
1858 {
1859 TIXML_STRING str;
1860 TiXmlBase::EncodeString( text.ValueTStr(), &str );
1861 buffer += str;
1862 }
1863 else
1864 {
1865 DoIndent();
1866 TIXML_STRING str;
1867 TiXmlBase::EncodeString( text.ValueTStr(), &str );
1868 buffer += str;
1869 DoLineBreak();
1870 }
1871 return true;
1872}
1873
1874
1875bool 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