Convert viewIn from wchar_t to char and return a bsl::string.
Declared in <bdlt_formattestutil.h>
static
bsl::string
narrow(std::wstring_view const& viewIn);
Convert the string referred to by the specified viewIn from wchar_t to char and return the resulting bsl::string by value. The behavior is undefined unless all of the wchar_t values in viewIn are ascii.
narrow string by value
| Name | Description |
|---|---|
| viewIn | wide string view to convert |