[#BloombergLP-bdlt-FormatTestUtil-narrow]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::xref:BloombergLP/bdlt/FormatTestUtil.adoc[FormatTestUtil]::narrow
:relfileprefix: ../../../
:mrdocs:

Convert the string referred to by the specified `viewIn` from `wchar&lowbar;t` to `char` and return the resulting `bsl&colon;&colon;string` by value&period; The behavior is undefined unless all of the `wchar&lowbar;t` values in `viewIn` are ascii&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;formattestutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/string.adoc[bsl::string]
narrow(std::wstring&lowbar;view const& viewIn);
----


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