summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-12-12 14:00:16 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-12-12 14:25:52 -0800
commit1887dece5e9ed5362b9e87ec05d343c750886e99 (patch)
tree29c5da68c11e291e200c65f72a53197c4b03cc5c
parent553491a54cdb842ab583942e1058cbdcedd32018 (diff)
Remove obsolete RFC 3548 from escaping.cc's Base64UnescapeInternal. (Note that the proper non-obsolete RFC 4648 is already listed in escaping.h's Base64Escape() documentation)
PiperOrigin-RevId: 494821805 Change-Id: Id3bffcb968a7c865c9a6bcbf241870c3674601ba
-rw-r--r--absl/strings/escaping.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/absl/strings/escaping.cc b/absl/strings/escaping.cc
index 7d97944e..93966846 100644
--- a/absl/strings/escaping.cc
+++ b/absl/strings/escaping.cc
@@ -784,9 +784,7 @@ template <typename String>
bool Base64UnescapeInternal(const char* src, size_t slen, String* dest,
const signed char* unbase64) {
// Determine the size of the output string. Base64 encodes every 3 bytes into
- // 4 characters. any leftover chars are added directly for good measure.
- // This is documented in the base64 RFC:
- // https://datatracker.ietf.org/doc/html/rfc3548
+ // 4 characters. Any leftover chars are added directly for good measure.
const size_t dest_len = 3 * (slen / 4) + (slen % 4);
strings_internal::STLStringResizeUninitialized(dest, dest_len);