21 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
29 idx1= (((
c1 << 4) & 0x30) + ((
c2 >> 4) & 0x0F));
30 idx2= (((
c2 << 2) & 0x3C) + ((
c3 >> 6) & 0x03));
44 for (i= 0; i + 2 < n; i+= 3) {
45 if (i > 0 && i % 60 == 0)
r <<
"\n";
50 if (i > 0 && i % 60 == 0)
r <<
"\n";
53 else if (i == n - 2) {
54 if (i > 0 && i % 60 == 0)
r <<
"\n";
63 "???????????????????????????????????????????~???\177tuvwxyz{|}??\
64?????@ABCDEFGHIJKLMNOPQRSTUVWXY??????Z[\\]^_`abcdefghijklmnopqrs?????";
76 r[0]= ((
n1 << 2) & 0xFC) + ((
n2 >> 4) & 0x03);
77 r[1]= ((
n2 << 4) & 0xF0) + ((
n3 >> 2) & 0x0F);
78 r[2]= ((
n3 << 6) & 0xC0) + (
n4 & 0x3F);
88 int i, n=
N (s),
cnt= 0;
89 for (i= 0; i < n && !end; i++) {
94 else if (s[i] ==
'=') {
98 if (
cnt == 4 || end) {
The list class represents a linked list.
string decode_base64(array< int > ac)
static const char int_to_b64[]
static string encode_base64(char c1, char c2, char c3)
static const char b64_to_int[]