|
|
@ -122,6 +122,8 @@ std::string Utf8SafeCHexEscape(absl::string_view src); |
|
|
|
// Converts a `src` string encoded in Base64 to its binary equivalent, writing
|
|
|
|
// Converts a `src` string encoded in Base64 to its binary equivalent, writing
|
|
|
|
// it to a `dest` buffer, returning `true` on success. If `src` contains invalid
|
|
|
|
// it to a `dest` buffer, returning `true` on success. If `src` contains invalid
|
|
|
|
// characters, `dest` is cleared and returns `false`.
|
|
|
|
// characters, `dest` is cleared and returns `false`.
|
|
|
|
|
|
|
|
// Padding is optional. If padding is included, it must be correct. In the
|
|
|
|
|
|
|
|
// padding, '=' and '.' are treated identically.
|
|
|
|
bool Base64Unescape(absl::string_view src, std::string* dest); |
|
|
|
bool Base64Unescape(absl::string_view src, std::string* dest); |
|
|
|
|
|
|
|
|
|
|
|
// WebSafeBase64Unescape()
|
|
|
|
// WebSafeBase64Unescape()
|
|
|
@ -129,6 +131,8 @@ bool Base64Unescape(absl::string_view src, std::string* dest); |
|
|
|
// Converts a `src` string encoded in Base64 to its binary equivalent, writing
|
|
|
|
// Converts a `src` string encoded in Base64 to its binary equivalent, writing
|
|
|
|
// it to a `dest` buffer, but using '-' instead of '+', and '_' instead of '/'.
|
|
|
|
// it to a `dest` buffer, but using '-' instead of '+', and '_' instead of '/'.
|
|
|
|
// If `src` contains invalid characters, `dest` is cleared and returns `false`.
|
|
|
|
// If `src` contains invalid characters, `dest` is cleared and returns `false`.
|
|
|
|
|
|
|
|
// Padding is optional. If padding is included, it must be correct. In the
|
|
|
|
|
|
|
|
// padding, '=' and '.' are treated identically.
|
|
|
|
bool WebSafeBase64Unescape(absl::string_view src, std::string* dest); |
|
|
|
bool WebSafeBase64Unescape(absl::string_view src, std::string* dest); |
|
|
|
|
|
|
|
|
|
|
|
// Base64Escape()
|
|
|
|
// Base64Escape()
|
|
|
|