00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __PION_ALGORITHMS_HEADER__
00011 #define __PION_ALGORITHMS_HEADER__
00012
00013 #include <string>
00014 #include <pion/PionConfig.hpp>
00015
00016
00017 namespace pion {
00018
00019 struct PION_COMMON_API algo {
00020
00027 static bool base64_decode(std::string const &input, std::string & output);
00028
00035 static bool base64_encode(std::string const &input, std::string & output);
00036
00038 static std::string url_decode(const std::string& str);
00039
00041 static std::string url_encode(const std::string& str);
00042
00043 };
00044
00045 }
00046
00047 #endif