BloombergLP::bdlb::IndexSpanStringUtil::createFromPositions

Same as the preceding overload for wide-character string.

Synopsis

Declared in <bdlb_indexspanstringutil.h>

static
IndexSpan
createFromPositions(
    std::wstring_view const& string,
    IndexSpan::size_type begin,
    IndexSpan::size_type end);

Return Value

an IndexSpan describing the half-open range [begin, end)]

Parameters

NameDescription
stringstring containing the substring
beginstarting position of the substring
endone-past-the-end position of the substring