[#BloombergLP-bdlb-IndexSpanStringUtil-create-018] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpanStringUtil.adoc[IndexSpanStringUtil]::create :relfileprefix: ../../../ :mrdocs: Return an `IndexSpan` for the half‐open range [`begin`, `end`) in] `string`. == Synopsis Declared in `<bdlb_indexspanstringutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] create( std::string_view const& string, std::string_view::const_iterator begin, std::string_view::const_iterator end); ---- == Description Return an `IndexSpan` describing the substring of the specified `string` starting at the specified `begin` and ending (not including) the specified `end`. The behavior is undefined unless `begin >= string.begin()`, `begin <= string.end()`, `end <= string.end()`, and `begin <= end`. == Return Value an `IndexSpan` describing the half‐open range [`begin`, `end`)] == Parameters [cols="1,4"] |=== | Name| Description | *string* | string containing the substring | *begin* | iterator to the start of the substring | *end* | iterator one past the end of the substring |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#