[#absl-WebSafeBase64Escape-0c] = xref:absl.adoc[absl]::WebSafeBase64Escape :relfileprefix: ../ :mrdocs: `WebSafeBase64Escape` overloads == Synopses Declared in `<absl/strings/escaping.h>` Encodes a `src` string into a base64 string, like Base64Escape() does, but outputs '‐' instead of '+' and '_' instead of '/', and does not pad the output. This function conforms with RFC 4648 section 5 (base64url). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/WebSafeBase64Escape-03.adoc[WebSafeBase64Escape](std::string_view src); ---- [.small]#xref:absl/WebSafeBase64Escape-03.adoc[_» more..._]# Deprecated overload of `WebSafeBase64Escape()` that writes to a `dest` buffer. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated("Use the string‐returning version of WebSafeBase64Escape()")]] void xref:absl/WebSafeBase64Escape-0a.adoc[WebSafeBase64Escape]( std::string_view src, std::string* dest); ---- [.small]#xref:absl/WebSafeBase64Escape-0a.adoc[_» more..._]# == Return Value The web‐safe base64‐encoded string. == Parameters [cols="1,4"] |=== | Name| Description | *src* | The string to encode. | *dest* | The output string that receives the base64‐encoded result. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#