BloombergLP::bdlb::IndexSpanStringUtil::create

Same as the preceding overload for the specified string type.

Synopsis

Declared in <bdlb_indexspanstringutil.h>

static
IndexSpan
create(
    bslstl::StringRef const& string,
    bslstl::StringRef::const_iterator begin,
    bslstl::StringRef::const_iterator end);

Return Value

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

Parameters

NameDescription
stringstring containing the substring
beginiterator to the start of the substring
enditerator one past the end of the substring