Class XmlEncode
Defined in File catch_amalgamated.hpp
Class Documentation
-
class XmlEncode
Helper for XML-encoding text (escaping angle brackets, quotes, etc)
Note: doesn’t take ownership of passed strings, and thus the encoded string must outlive the encoding instance.
Public Functions
-
XmlEncode(StringRef str, ForWhat forWhat = ForTextNodes)
-
void encodeTo(std::ostream &os) const
-
XmlEncode(StringRef str, ForWhat forWhat = ForTextNodes)