#include "gdef.h"
#include "gbase64.h"
#include "gstringview.h"
#include "gstr.h"
#include <algorithm>
#include <iterator>
Go to the source code of this file.
|
namespace | G |
| Low-level classes.
|
|
|
std::string | G::Base64Imp::encode (string_in, string_in eol) |
|
std::string | G::Base64Imp::decode (string_in, bool do_throw, bool strict) |
|
bool | G::Base64Imp::valid (string_in, bool strict) |
|
void | G::Base64Imp::encode_imp (iterator_out, string_in, string_in, std::size_t) |
|
void | G::Base64Imp::decode_imp (iterator_out, string_in s, bool &error) |
|
void | G::Base64Imp::generate_6 (uint32_type &n, int &i, iterator_out &) |
|
void | G::Base64Imp::accumulate_8 (uint32_type &n, iterator_in &, iterator_in, int &) |
|
void | G::Base64Imp::accumulate_6 (g_uint32_t &n, iterator_in &, iterator_in, std::size_t &, bool &error) |
|
void | G::Base64Imp::generate_8 (g_uint32_t &n, std::size_t &i, iterator_out &, bool &error) |
|
std::size_t | G::Base64Imp::index (char c, bool &error) noexcept |
|
bool | G::Base64Imp::strictlyValid (string_view) noexcept |
|
constexpr char | G::Base64Imp::to_char (g_uint32_t n) noexcept |
|
constexpr g_uint32_t | G::Base64Imp::numeric (char c) noexcept |
|
constexpr std::size_t | G::Base64Imp::hi_6 (g_uint32_t n) noexcept |
|
constexpr g_uint32_t | G::Base64Imp::hi_8 (g_uint32_t n) noexcept |
|
◆ iterator_in
using G::Base64Imp::iterator_in = typedef string_view::const_iterator |
◆ iterator_out
using G::Base64Imp::iterator_out = typedef std::back_insert_iterator<std::string> |
◆ string_in
◆ uint32_type
using G::Base64Imp::uint32_type = typedef g_uint32_t |
◆ accumulate_6()
void G::Base64Imp::accumulate_6 |
( |
g_uint32_t & |
n, |
|
|
iterator_in & |
p, |
|
|
iterator_in |
end, |
|
|
std::size_t & |
bits, |
|
|
bool & |
error |
|
) |
| |
◆ accumulate_8()
void G::Base64Imp::accumulate_8 |
( |
uint32_type & |
n, |
|
|
iterator_in & |
p, |
|
|
iterator_in |
end, |
|
|
int & |
i |
|
) |
| |
◆ decode()
std::string G::Base64Imp::decode |
( |
string_in |
input, |
|
|
bool |
do_throw, |
|
|
bool |
strict |
|
) |
| |
◆ decode_imp()
void G::Base64Imp::decode_imp |
( |
iterator_out |
result_p, |
|
|
string_in |
s, |
|
|
bool & |
error |
|
) |
| |
◆ encode()
◆ encode_imp()
void G::Base64Imp::encode_imp |
( |
iterator_out |
result_p, |
|
|
string_in |
input, |
|
|
string_in |
eol, |
|
|
std::size_t |
blocks_per_line |
|
) |
| |
◆ generate_6()
void G::Base64Imp::generate_6 |
( |
uint32_type & |
n, |
|
|
int & |
i, |
|
|
iterator_out & |
result |
|
) |
| |
◆ generate_8()
void G::Base64Imp::generate_8 |
( |
g_uint32_t & |
n, |
|
|
std::size_t & |
i, |
|
|
iterator_out & |
result, |
|
|
bool & |
error |
|
) |
| |
◆ hi_6()
constexpr std::size_t G::Base64Imp::hi_6 |
( |
g_uint32_t |
n | ) |
|
|
constexprnoexcept |
◆ hi_8()
constexpr g_uint32_t G::Base64Imp::hi_8 |
( |
g_uint32_t |
n | ) |
|
|
constexprnoexcept |
◆ index()
std::size_t G::Base64Imp::index |
( |
char |
c, |
|
|
bool & |
error |
|
) |
| |
|
noexcept |
◆ numeric()
constexpr g_uint32_t G::Base64Imp::numeric |
( |
char |
c | ) |
|
|
constexprnoexcept |
◆ strictlyValid()
◆ to_char()
constexpr char G::Base64Imp::to_char |
( |
g_uint32_t |
n | ) |
|
|
constexprnoexcept |
◆ valid()
bool G::Base64Imp::valid |
( |
string_in |
input, |
|
|
bool |
strict |
|
) |
| |