Return an IndexSpan for the substring of string at begin of length.
Declared in <bdlb_indexspanstringutil.h>
static
IndexSpan
create(
std::string_view const& string,
IndexSpan::size_type begin,
IndexSpan::size_type length);
Return an IndexSpan describing the substring of the specified string starting at the specified begin and having the specified length. The behavior is undefined unless begin <= string.length() and begin + length <= string.length().
an IndexSpan describing the substring at begin of length
| Name | Description |
|---|---|
| string | string containing the substring |
| begin | starting position of the substring |
| length | length of the substring |