ManaPlus
base64.h
Go to the documentation of this file.
1 /*
2  +----------------------------------------------------------------------+
3  | PHP HTML Embedded Scripting Language Version 3.0 |
4  +----------------------------------------------------------------------+
5  | Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
6  +----------------------------------------------------------------------+
7  | This program is free software; you can redistribute it and/or modify |
8  | it under the terms of one of the following licenses: |
9  | |
10  | A) the GNU General Public License as published by the Free Software |
11  | Foundation; either version 2 of the License, or (at your option) |
12  | any later version. |
13  | |
14  | B) the PHP License as published by the PHP Development Team and |
15  | included in the distribution in the file: LICENSE |
16  | |
17  | This program is distributed in the hope that it will be useful, |
18  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
19  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20  | GNU General Public License for more details. |
21  | |
22  | You should have received a copy of both licenses referred to here. |
23  | If you did not, or have any questions about PHP licensing, please |
24  | contact [email protected]. |
25  +----------------------------------------------------------------------+
26  | Author: Jim Winstead ([email protected]) |
27  +----------------------------------------------------------------------+
28  */
29 
30 #ifndef UTILS_BASE64_H
31 #define UTILS_BASE64_H
32 
33 #include <string>
34 
35 #include "localconsts.h"
36 
37 unsigned char *php3_base64_encode(const unsigned char *restrict,
38  int, int *restrict) A_WARN_UNUSED;
39 unsigned char *php3_base64_decode(const unsigned char *restrict,
40  int, int *restrict ) A_WARN_UNUSED;
41 
42 std::string encodeBase64String(std::string value) A_WARN_UNUSED;
43 
44 std::string decodeBase64String(std::string value) A_WARN_UNUSED;
45 
46 #endif // UTILS_BASE64_H
unsigned char * php3_base64_decode(const unsigned char *, int, int *)
Definition: base64.cpp:100
unsigned char * php3_base64_encode(const unsigned char *, int, int *)
Definition: base64.cpp:46
std::string decodeBase64String(std::string value)
Definition: base64.cpp:203
std::string encodeBase64String(std::string value)
Definition: base64.cpp:188
#define restrict
Definition: localconsts.h:165
#define A_WARN_UNUSED
Definition: localconsts.h:161