[#BloombergLP-bdlb-IndexSpanStringUtil-create-0fa]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpanStringUtil.adoc[IndexSpanStringUtil]::create
:relfileprefix: ../../../
:mrdocs:

Return an `IndexSpan` describing the substring of the specified `string` starting at the specified `begin` and having the specified `length`&period; The behavior is undefined unless `begin &lt;&equals; string&period;length()` and `begin &plus; length &lt;&equals; string&period;length()`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;indexspanstringutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
create(
    std::string&lowbar;view const& string,
    xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size&lowbar;type] begin,
    xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size&lowbar;type] length);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
