BloombergLP::bdlb::IndexSpanStringUtil::createFromPositions

createFromPositions overloads

Synopses

Declared in <bdlb_indexspanstringutil.h>

Return an IndexSpan for the half-open range [begin, end) in] string.

static
IndexSpan
createFromPositions(
    std::string_view const& string,
    IndexSpan::size_type begin,
    IndexSpan::size_type end);
» more...

Same as the preceding overload for wide-character string.

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

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