CppCMS
util.h
1 //
3 // Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
4 //
5 // See accompanying file COPYING.TXT file for licensing details.
6 //
8 #ifndef CPPCMS_UTIL_H
9 #define CPPCMS_UTIL_H
10 
11 #include <cppcms/defs.h>
12 #include <string>
13 
14 namespace cppcms {
15 
19 
20  namespace util {
33  std::string CPPCMS_API escape(std::string const &s);
46  void CPPCMS_API escape(char const *begin,char const *end,std::ostream &output);
60  int CPPCMS_API escape(char const *begin,char const *end,std::streambuf &output);
64  std::string CPPCMS_API urlencode(std::string const &s);
68  void CPPCMS_API urlencode(char const *begin,char const *end,std::ostream &output);
72  int CPPCMS_API urlencode(char const *begin,char const *end,std::streambuf &output);
76  std::string CPPCMS_API urldecode(std::string const &s);
80  std::string CPPCMS_API urldecode(char const *begin,char const *end);
84  std::string CPPCMS_API md5(std::string const &input);
88  std::string CPPCMS_API md5hex(std::string const &input);
89 
90  }
91 }
92 
93 #endif
std::string CPPCMS_API escape(std::string const &s)
std::string CPPCMS_API urlencode(std::string const &s)
This is the namespace where all CppCMS functionality is placed.
Definition: application.h:19
std::string CPPCMS_API md5hex(std::string const &input)
std::string CPPCMS_API urldecode(std::string const &s)
std::string CPPCMS_API md5(std::string const &input)