CppCMS
cppcms/util.h
00001 
00002 //                                                                             
00003 //  Copyright (C) 2008-2012  Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>     
00004 //                                                                             
00005 //  See accompanying file COPYING.TXT file for licensing details.
00006 //
00008 #ifndef CPPCMS_UTIL_H
00009 #define CPPCMS_UTIL_H
00010 
00011 #include <cppcms/defs.h>
00012 #include <string>
00013 
00014 namespace cppcms {
00015 
00019 
00020         namespace util {
00032                 std::string CPPCMS_API escape(std::string const &s);
00044                 void CPPCMS_API escape(char const *begin,char const *end,std::ostream &output);
00048                 std::string CPPCMS_API urlencode(std::string const &s);
00052                 void CPPCMS_API urlencode(char const *begin,char const *end,std::ostream &output);
00056                 std::string CPPCMS_API urldecode(std::string const &s);
00060                 std::string CPPCMS_API urldecode(char const *begin,char const *end);
00064                 std::string CPPCMS_API md5(std::string const &input);
00068                 std::string CPPCMS_API md5hex(std::string const &input);
00069 
00070         }
00071 }
00072 
00073 #endif