BloombergLP::bdlt::FormatTestUtil::widen

Load the wide-string version of viewIn into result.

Synopsis

Declared in <bdlt_formattestutil.h>

static
void
widen(
    bsl::wstring* result,
    std::string_view const& viewIn);

Description

Load the wstring version of the specified char-based string view viewIn into the specified result. The behavior is undefined unless all of the char values in viewIn are ascii.

Parameters

NameDescription
resultloaded with the wide-string conversion of viewIn
viewInnarrow string view to convert