summaryrefslogtreecommitdiff
path: root/absl/strings/escaping.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-02-22 18:07:14 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2023-02-22 18:07:59 -0800
commitc77bde682a4139ecf5c9bf97efe4f1104cd472f4 (patch)
tree476766a08d572dc8cf33e0463160e0ff81be2910 /absl/strings/escaping.h
parent402e1319211cf19e455aa2a3b2de1f1235bb4326 (diff)
Add CalculateBase64EscapeLen variations for the 3 base64 escaping methods (Base64Escape, WebSafeBase64Escape, WebSafeBase64EscapeWithPadding).
Also update CalculateBase64EscapedLen() documentation (it references outdated Base64Escape API), and reference it from WebSafeBase64Escape (to match Base64Escape). PiperOrigin-RevId: 511647760 Change-Id: I7dee18645c2a779c0762bc71da75a4684ec2493f
Diffstat (limited to 'absl/strings/escaping.h')
-rw-r--r--absl/strings/escaping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/escaping.h b/absl/strings/escaping.h
index 7c082fef..bf2a5898 100644
--- a/absl/strings/escaping.h
+++ b/absl/strings/escaping.h
@@ -121,7 +121,7 @@ std::string Utf8SafeCHexEscape(absl::string_view src);
//
// Encodes a `src` string into a base64-encoded 'dest' string with padding
// characters. This function conforms with RFC 4648 section 4 (base64) and RFC
-// 2045. See also CalculateBase64EscapedLen().
+// 2045.
void Base64Escape(absl::string_view src, std::string* dest);
std::string Base64Escape(absl::string_view src);