MCPcopy Create free account
hub / github.com/OpenMW/openmw / Visit

Method Visit

extern/oics/tinyxml/tinyxml.cpp:1824–1849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1822
1823
1824bool TiXmlPrinter::Visit( const TiXmlText& text )
1825{
1826 if ( text.CDATA() )
1827 {
1828 DoIndent();
1829 buffer += "<![CDATA[";
1830 buffer += text.Value();
1831 buffer += "]]>";
1832 DoLineBreak();
1833 }
1834 else if ( simpleTextPrint )
1835 {
1836 TIXML_STRING str;
1837 TiXmlBase::EncodeString( text.ValueTStr(), &str );
1838 buffer += str;
1839 }
1840 else
1841 {
1842 DoIndent();
1843 TIXML_STRING str;
1844 TiXmlBase::EncodeString( text.ValueTStr(), &str );
1845 buffer += str;
1846 DoLineBreak();
1847 }
1848 return true;
1849}
1850
1851
1852bool 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