|
|
|
@ -122,6 +122,8 @@ std::string Utf8SafeCHexEscape(absl::string_view src); |
|
|
|
|
// 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
|
|
|
|
|
// 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); |
|
|
|
|
|
|
|
|
|
// 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
|
|
|
|
|
// it to a `dest` buffer, but using '-' instead of '+', and '_' instead of '/'.
|
|
|
|
|
// 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); |
|
|
|
|
|
|
|
|
|
// Base64Escape()
|
|
|
|
|