MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / print_escaped_cdata

Function print_escaped_cdata

extern/boost/boost/test/utils/xml_printer.hpp:96–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94//____________________________________________________________________________//
95
96inline void
97print_escaped_cdata( std::ostream& where_to, const_string value )
98{
99 static const_string cdata_end( "]]>" );
100
101 const_string::size_type pos = value.find( cdata_end );
102 if( pos == const_string::npos )
103 where_to << value;
104 else {
105 where_to << value.substr( 0, pos+2 ) << cdata_end
106 << BOOST_TEST_L( "<![CDATA[" ) << value.substr( pos+2 );
107 }
108}
109
110//____________________________________________________________________________//
111

Callers 1

xml_printer.hppFile · 0.85

Calls 2

findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected