|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_FORMATS_XML_HELPER_H_
2 #define GENESIS_UTILS_FORMATS_XML_HELPER_H_
36 #include <unordered_map>
46 std::string
xml_escape( std::string
const& content );
49 std::string
xml_comment( std::string
const& content );
51 template<
typename T >
53 std::string
const& name,
57 ss <<
" " << name <<
"=\"" << value <<
"\"";
64 #endif // include guard
std::string xml_escape(std::string const &txt)
Escape special XML characters.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::string xml_comment(std::string const &content)
std::string xml_attribute(std::string const &name, T const &value)
std::string xml_deescape(std::string const &txt)
De-escape special XML characters.