tohtml.h

Go to the documentation of this file.
00001 // $Id: tohtml.h,v 1.3 2006/02/23 11:58:52 dvermeir Exp $
00002 #include <string>
00003 
00004 namespace Dv {
00005   namespace Xml {
00006 
00007     /** Convert to html representation. E.g. '&' becomes '&amp;' etc.
00008      * @param c char to convert
00009      * @return HTML representation of c
00010      */
00011     const char* to_html(unsigned char c) throw ();
00012     
00013     /** Convert string to html representation. E.g. '&' becomes '&amp;' etc.
00014      * @param sin string to convert.
00015      * @param sout string to which result of conversion will be appended.
00016      * @return reference to @a sout.
00017      */
00018     std::string& to_html(const std::string& sin, std::string& sout) throw ();
00019     
00020     /** Convert string to html representation. E.g. '&' becomes '&amp;' etc.
00021      * @param sin string to convert.
00022      * @return converted string
00023      */
00024     std::string to_html(const std::string& sin) throw ();
00025   }
00026 }
00027 

dvxml-0.1.7 [ 7 January, 2008]