| 94 | //____________________________________________________________________________// |
| 95 | |
| 96 | inline void |
| 97 | print_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 |
no test coverage detected