write_content_encoded

Defined in header: <orcus/xml_encode.hpp>

void orcus::write_content_encoded(std::ostream &os, std::string_view val, xml_encode_context_t cxt)

Write a string value to an output stream with XML special characters encoded according to the given encoding context.

Parameters:
  • os – Output stream to write to.

  • val – String value to encode.

  • cxt – Encoding context that determines which characters are encoded.