libzypp  10.5.0
XmlEscape.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_PARSER_XML_XMLESCAPE_H
00013 #define ZYPP_PARSER_XML_XMLESCAPE_H
00014 
00015 // from IoBind Library:
00016 #include <zypp/parser/xml/xml_escape_parser.hpp>
00017 
00019 namespace zypp
00020 { 
00021 
00022   namespace xml
00023   { 
00024 
00026     inline std::string escape( const std::string & in_r )
00027     { return iobind::parser::xml_escape_parser().escape( in_r ); }
00028 
00030     inline std::string unescape( const std::string & in_r )
00031     { return iobind::parser::xml_escape_parser().unescape( in_r ); }
00032 
00034   } // namespace xml
00037 } // namespace zypp
00039 #endif // ZYPP_PARSER_XML_XMLESCAPE_H