[#BloombergLP-bdlb-IndexSpanStringUtil-createFromPositions-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpanStringUtil.adoc[IndexSpanStringUtil]::createFromPositions
:relfileprefix: ../../../
:mrdocs:

`createFromPositions` overloads

== Synopses

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

Return an `IndexSpan` for the half&hyphen;open range &lsqb;`begin`, `end`) in&rsqb; `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/createFromPositions-01.adoc[createFromPositions](
    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] end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/createFromPositions-01.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for wide&hyphen;character `string`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/createFromPositions-00.adoc[createFromPositions](
    std::wstring&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] end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/createFromPositions-00.adoc[_» more&period;&period;&period;_]#

== Return Value

an `IndexSpan` describing the half&hyphen;open range &lsqb;`begin`, `end`)&rsqb;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string containing the substring
| *begin*
| starting position of the substring
| *end*
| one&hyphen;past&hyphen;the&hyphen;end position of the substring
|===


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