glibmm 2.80.0
|
Functions | |
std::string | encode (const std::string &source, bool break_lines=false) |
Encode the given string in base64 encoding. | |
std::string | decode (const std::string &source) |
Decode the given base64 encoded string. | |
std::string Glib::Base64::decode | ( | const std::string & | source | ) |
Decode the given base64 encoded string.
source | A string to decode. |
std::string Glib::Base64::encode | ( | const std::string & | source, |
bool | break_lines = false |
||
) |
Encode the given string in base64 encoding.
You can pass true
as the break_lines parameter to enable line breaking, that is usually used in mail systems. The new line character will appear for every 72 bytes.
source | A string to encode. |
break_lines | Enables/disables line breaking. |