pion-net  4.0.9
common/include/pion/PionAlgorithms.hpp
00001 // -----------------------------------------------------------------------
00002 // pion-common: a collection of common libraries used by the Pion Platform
00003 // -----------------------------------------------------------------------
00004 // Copyright (C) 2007-2011 Atomic Labs, Inc.  (http://www.atomiclabs.com)
00005 //
00006 // Distributed under the Boost Software License, Version 1.0.
00007 // See http://www.boost.org/LICENSE_1_0.txt
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 {    // begin 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 }   // end namespace pion
00046 
00047 #endif