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

`create` overloads

== Synopses

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

Return an `IndexSpan` describing `subString` within `string`&period;


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

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

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


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

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0f7.adoc[create](
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[bslstl::StringRef::const&lowbar;iterator] begin,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[bslstl::StringRef::const&lowbar;iterator] end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0f7.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0916.adoc[create](
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& string,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[bslstl::StringRef::const&lowbar;iterator] begin,
    xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size&lowbar;type] length);
----

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0f5.adoc[create](
    xref:BloombergLP/bslstl/StringRefWide.adoc[bslstl::StringRefWide] const& string,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[bslstl::StringRefWide::const&lowbar;iterator] begin,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[bslstl::StringRefWide::const&lowbar;iterator] end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0f5.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-051.adoc[create](
    xref:BloombergLP/bslstl/StringRefWide.adoc[bslstl::StringRefWide] const& string,
    xref:BloombergLP/bslstl/StringRefImp-0c.adoc[bslstl::StringRefWide::const&lowbar;iterator] begin,
    xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size&lowbar;type] length);
----

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-053.adoc[create](
    xref:bsl/string.adoc[bsl::string] const& string,
    xref:bsl/basic_string-0faf.adoc[bsl::string::const&lowbar;iterator] begin,
    xref:bsl/basic_string-0faf.adoc[bsl::string::const&lowbar;iterator] end);
----

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d55.adoc[create](
    xref:bsl/string.adoc[bsl::string] const& string,
    xref:bsl/basic_string-0faf.adoc[bsl::string::const&lowbar;iterator] begin,
    xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size&lowbar;type] length);
----

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-04c.adoc[create](
    std::pmr::string const& string,
    std::pmr::string::const&lowbar;iterator begin,
    std::pmr::string::const&lowbar;iterator end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-04c.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


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

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0b.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-050.adoc[create](
    std::string const& string,
    std::string::const&lowbar;iterator begin,
    std::string::const&lowbar;iterator end);
----

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

Same as the preceding overload for the specified string type&period;


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

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

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/create-018.adoc[create](
    std::string&lowbar;view const& string,
    std::string&lowbar;view::const&lowbar;iterator begin,
    std::string&lowbar;view::const&lowbar;iterator end);
----

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

Return an `IndexSpan` for the substring of `string` at `begin` of `length`&period;


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

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0c.adoc[_» more&period;&period;&period;_]#

Return an `IndexSpan` for the substring of `string` at `begin` of `length`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0fa.adoc[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]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0fa.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-015.adoc[create](
    xref:bsl/wstring.adoc[bsl::wstring] const& string,
    xref:bsl/basic_string-0faf.adoc[bsl::wstring::const&lowbar;iterator] begin,
    xref:bsl/basic_string-0faf.adoc[bsl::wstring::const&lowbar;iterator] end);
----

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d53.adoc[create](
    xref:bsl/wstring.adoc[bsl::wstring] const& string,
    xref:bsl/basic_string-0faf.adoc[bsl::wstring::const&lowbar;iterator] begin,
    xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size&lowbar;type] length);
----

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-091d.adoc[create](
    std::pmr::wstring const& string,
    std::pmr::wstring::const&lowbar;iterator begin,
    std::pmr::wstring::const&lowbar;iterator end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-091d.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


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

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0a.adoc[create](
    std::wstring const& string,
    std::wstring::const&lowbar;iterator begin,
    std::wstring::const&lowbar;iterator end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0a.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


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

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

Same as the preceding overload for the specified string type&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan]
xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0e5.adoc[create](
    std::wstring&lowbar;view const& string,
    std::wstring&lowbar;view::const&lowbar;iterator begin,
    std::wstring&lowbar;view::const&lowbar;iterator end);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0e5.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload for the specified string type&period;


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

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d1.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/create-0ff.adoc[create](
    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] length);
----

[.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0ff.adoc[_» more&period;&period;&period;_]#

== Return Value

* an `IndexSpan` describing `subString` within `string`
* an `IndexSpan` describing the half&hyphen;open range &lsqb;`begin`, `end`)&rsqb;
* an `IndexSpan` describing the substring at `begin` of `length`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| string containing the substring
| *subString*
| view defining the substring within `string`
| *begin*
| iterator to the start of the substring
| *end*
| iterator one past the end of the substring
| *length*
| length of the substring
|===


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