Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

wwwdecode.h

Go to the documentation of this file.
00001 #ifndef DVCGI_WWWDECODE_H
00002 #define DVCGI_WWWDECODE_H
00003 // $Id: wwwdecode.h,v 1.10 2006/01/19 17:41:07 dvermeir Exp $
00004 
00005 #include        <string>
00006 
00007 /** @file
00008  *  Simple functions that apply RFC 1738, as used in URLs, to encode
00009  *  or decode strings.
00010  *  <ul>
00011  *  <li> Dv::Cgi::www_decode
00012  *  <li> Dv::Cgi::www_encode
00013  *  </ul>
00014 */
00015 
00016 namespace Dv {
00017 namespace Cgi {
00018 /** In-place decode (RFC 1738) of string s.
00019  * @param s string to be decoded (in-place).
00020  * @return reference to parameter
00021  */
00022 std::string& www_decode(std::string& s);
00023 /** Encode (RFC 1738) string.
00024  * @param sin input string to be encoded.
00025  * @param sout string that will receive the encoded version of @a sin.
00026  * @return reference to @a sout.
00027  */
00028 std::string& www_encode(const std::string& sin, std::string& sout);
00029 std::string& html_encode(const std::string& sin, std::string& sout);
00030 }}
00031 #endif

dvcgi-0.5.14 [22 January, 2006]