Return an IndexSpan describing subString within string.
Synopsis
Declared in <bdlb_indexspanstringutil.h>
static
IndexSpan
create(
std::string_view const& string,
std::string_view const& subString);
Description
Return an IndexSpan describing the substring of the specified string as defined by the begin() and end() of the specified subString. The behavior is undefined unless subString.begin() <= string.end(), subString.end() <= string.end(), subString.begin() >= string.begin(), and subString.end() <= string.begin().
Return Value
an IndexSpan describing subString within string
Parameters
Name |
Description |
string |
string containing the substring |
subString |
view defining the substring within |
Created with MrDocs