Switch to unified view

a/libupnpp/base64.hxx b/libupnpp/base64.hxx
...
...
16
 */
16
 */
17
#ifndef _BASE64_H_INCLUDED_
17
#ifndef _BASE64_H_INCLUDED_
18
#define _BASE64_H_INCLUDED_
18
#define _BASE64_H_INCLUDED_
19
#include <string>
19
#include <string>
20
20
21
namespace UPnPP {
22
21
void base64_encode(const std::string& in, std::string& out);
23
void base64_encode(const std::string& in, std::string& out);
22
bool base64_decode(const std::string& in, std::string& out);
24
bool base64_decode(const std::string& in, std::string& out);
23
inline std::string base64_encode(const std::string& in)
25
inline std::string base64_encode(const std::string& in)
24
{
26
{
25
    std::string o;
27
    std::string o;
...
...
32
    if (base64_decode(in, o))
34
    if (base64_decode(in, o))
33
    return o;
35
    return o;
34
    return std::string();
36
    return std::string();
35
}
37
}
36
38
39
} // namespace
40
37
#endif /* _BASE64_H_INCLUDED_ */
41
#endif /* _BASE64_H_INCLUDED_ */