[#BloombergLP-bdlb-LiteralUtil-createQuotedEscapedCString-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/LiteralUtil.adoc[LiteralUtil]::createQuotedEscapedCString
:relfileprefix: ../../../
:mrdocs:

Load into `result` a quoted, escaped C&sol;C&plus;&plus; string literal of `input`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;literalutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
createQuotedEscapedCString(
    std::pmr::string* result,
    std::string&lowbar;view const& input);
----

== Description

Load into the specified `result` string the `&quot;` delimited and escaped C&sol;C&plus;&plus; string literal equivalent representing the same value as that of the specified `input` string&period; When the C string literal equivalent is translated by a compiler having C&hyphen;compatible string literals, it will result in a string identical to the `input` string&period; Note that this code uses the (ASCII) &apos;&apos; character, rather than Unicode code points for escapes&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| string to receive the quoted, escaped literal
| *input*
| string value to represent as a C&sol;C&plus;&plus; literal
|===


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