Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

tohtml.h

Go to the documentation of this file.
00001 // $Id: tohtml.h,v 1.2 2003/09/08 14:14:32 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 }}

dvxml-0.1.4 [19 September, 2003]