summaryrefslogtreecommitdiff
path: root/absl/strings/internal/escaping.h
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2023-03-16 09:24:49 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-03-16 09:25:27 -0700
commit50a9e2b27ee7144c306c0d8b40290e131c7f1b34 (patch)
treef3297a3fde02585e931e280e794b4cb786753a81 /absl/strings/internal/escaping.h
parent256cc61a2d3a6f6dbc9f71d1f976fb9ca9306da5 (diff)
Be more consistent in the documentation and variable declarations for base64 escaping vs unescaping:
* Move table documenting escaping conversions to be next to the internal escaping code that implements it. Mention it from the internal _un_escaping code (which reverses it) too. * Centralize the two arrays which map from normal chars to escaped chars (k(WebSafe)Base64Chars), and make bidirectional documentation links between them and their reverse (unescaping) maps (kUn(WebSafe)Base64). * Remove redundant list of escaping/unescaping methods in the public escaping.cc. PiperOrigin-RevId: 517142667 Change-Id: I627e59a196ef855e5bf61ef7f4b509920e8d7acd
Diffstat (limited to 'absl/strings/internal/escaping.h')
-rw-r--r--absl/strings/internal/escaping.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/absl/strings/internal/escaping.h b/absl/strings/internal/escaping.h
index b04033ff..2186f778 100644
--- a/absl/strings/internal/escaping.h
+++ b/absl/strings/internal/escaping.h
@@ -24,6 +24,7 @@ ABSL_NAMESPACE_BEGIN
namespace strings_internal {
ABSL_CONST_INIT extern const char kBase64Chars[];
+ABSL_CONST_INIT extern const char kWebSafeBase64Chars[];
// Calculates the length of a Base64 encoding (RFC 4648) of a string of length
// `input_len`, with or without padding per `do_padding`. Note that 'web-safe'