|
int64_t | jau::codec::base::decode (const std::string_view &str, const alphabet &aspec) noexcept |
| Decodes a given symbolic string representing a given alphabet and its base to a positive decimal number.
|
|
std::vector< uint8_t > | jau::codec::base::decode64 (const std::string_view &str, const alphabet &aspec) noexcept |
| Decodes a given symbolic string representing using given alphabet and fixed base 64 to octets according to base64 RFC 4648.
|
|
std::vector< uint8_t > | jau::codec::base::decode64_lf (const std::string_view &str, const alphabet &aspec) noexcept |
| Decodes a given symbolic string representing using given alphabet and fixed base 64 to octets according to base64 RFC 4648 and removes all linefeeds before decoding as required for PEM and MIME.
|
|
std::vector< uint8_t > | jau::codec::base::decode64_lf (std::string &str, const alphabet &aspec) noexcept |
| Decodes a given symbolic string representing using given alphabet and fixed base 64 to octets according to base64 RFC 4648 and removes all linefeeds before decoding as required for PEM and MIME.
|
|
std::string | jau::codec::base::encode (int num, const alphabet &aspec, const unsigned int min_width=0) noexcept |
| Encodes a given positive decimal number to a symbolic string representing a given alphabet and its base.
|
|
std::string | jau::codec::base::encode (int64_t num, const alphabet &aspec, const unsigned int min_width=0) noexcept |
| Encodes a given positive decimal number to a symbolic string representing a given alphabet and its base.
|
|
std::string | jau::codec::base::encode64 (const void *in_octets, size_t in_len, const alphabet &aspec) noexcept |
| Encodes given octets using the given alphabet and fixed base 64 encoding according to base64 RFC 4648.
|
|
std::string | jau::codec::base::encode64_mime (const void *in_octets, size_t in_len, const alphabet &aspec) noexcept |
| Encodes given octets using the given alphabet and fixed base 64 encoding according to base64 RFC 4648 and adds line-feeds every 76 characters as required for MIME.
|
|
std::string | jau::codec::base::encode64_pem (const void *in_octets, size_t in_len, const alphabet &aspec) noexcept |
| Encodes given octets using the given alphabet and fixed base 64 encoding according to base64 RFC 4648 and adds line-feeds every 64 characters as required for PEM.
|
|
size_t | jau::codec::base::insert_lf (std::string &str, const size_t period) noexcept |
| Inserts a line feed (LF) character \n (ASCII 0x0a) after every period of characters.
|
|
bool | jau::codec::base::operator!= (const alphabet &lhs, const alphabet &rhs) noexcept |
|
bool | jau::codec::base::operator== (const alphabet &lhs, const alphabet &rhs) noexcept |
|
size_t | jau::codec::base::remove_lf (std::string &str) noexcept |
| Removes line feed character from str.
|
|
std::string | jau::codec::base::to_string (const alphabet &v) noexcept |
|