[#absl-CEscape]
= xref:absl.adoc[absl]::CEscape
:relfileprefix: ../
:mrdocs:

Escapes a `src` string using C&hyphen;style escapes sequences (https&colon;&sol;&sol;en&period;cppreference&period;com&sol;w&sol;cpp&sol;language&sol;escape), escaping other non&hyphen;printable&sol;non&hyphen;whitespace bytes as octal sequences (e&period;g&period; &quot;377&quot;)&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;escaping&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::string
CEscape(std::string&lowbar;view src);
----

== Description

Example&colon;

std&colon;&colon;string s &equals; &quot;foorbartbaz010011012013014x0dn&quot;&semi; std&colon;&colon;string escaped&lowbar;s &equals; absl&colon;&colon;CEscape(s)&semi; EXPECT&lowbar;EQ(escaped&lowbar;s, &quot;foo&bsol;rbar&bsol;tbaz&bsol;010&bsol;t&bsol;n&bsol;013&bsol;014&bsol;r&bsol;n&quot;)&semi;

== Return Value

The escaped string&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *src*
| The string to escape&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
