[#BloombergLP-bdlb-IndexSpanStringUtil-bind-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/IndexSpanStringUtil.adoc[IndexSpanStringUtil]::bind
:relfileprefix: ../../../
:mrdocs:

Return a string reference to the substring of the specified `string` as described by the specified `span`, meaning the substring starting at the `span&period;position()` index in `string` and having `span&period;length()` characters&period; The behavior is undefined unless `span&period;position() &lt;&equals; string&period;length()` and `span&period;position() &plus; span&period;length() &lt;&equals; string&period;length()`&period;

== Synopses

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

Return a string reference to the substring of the specified `string` as described by the specified `span`, meaning the substring starting at the `span&period;position()` index in `string` and having `span&period;length()` characters&period; The behavior is undefined unless `span&period;position() &lt;&equals; string&period;length()` and `span&period;position() &plus; span&period;length() &lt;&equals; string&period;length()`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::string&lowbar;view
xref:BloombergLP/bdlb/IndexSpanStringUtil/bind-01.adoc[bind](
    std::string&lowbar;view const& string,
    xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] const& span);
----

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::wstring&lowbar;view
xref:BloombergLP/bdlb/IndexSpanStringUtil/bind-07.adoc[bind](
    std::wstring&lowbar;view const& string,
    xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] const& span);
----

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


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