[#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 `<bdlb_indexspanstringutil.h>` Return an `IndexSpan` describing the substring of the specified `string` as defined by the `begin()` and `end()` of the specified `subString`. The behavior is undefined unless `subString.begin() <= string.end()`, `subString.end() <= string.end()`, `subString.begin() >= string.begin()`, and `subString.end() <= string.begin()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-06.adoc[create]( std::string_view const& string, std::string_view const& subString); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-06.adoc[_» more..._]# Same as the preceding overload for wide‐character views. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-07.adoc[create]( std::wstring_view const& string, std::wstring_view const& subString); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-07.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-02/const_iterator.adoc[bslstl::StringRef::const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-02/const_iterator.adoc[bslstl::StringRef::const_iterator] end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0f7.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-02/const_iterator.adoc[bslstl::StringRef::const_iterator] begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0916.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-0a/const_iterator.adoc[bslstl::StringRefWide::const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-0a/const_iterator.adoc[bslstl::StringRefWide::const_iterator] end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0f5.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-0a/const_iterator.adoc[bslstl::StringRefWide::const_iterator] begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-051.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-0fb/const_iterator.adoc[bsl::string::const_iterator] begin, xref:bsl/basic_string-0fb/const_iterator.adoc[bsl::string::const_iterator] end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-053.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-0fb/const_iterator.adoc[bsl::string::const_iterator] begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d55.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, std::pmr::string::const_iterator end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-04c.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0b.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, std::string::const_iterator end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-050.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00a.adoc[_» more..._]# 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`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-018.adoc[create]( std::string_view const& string, std::string_view::const_iterator begin, std::string_view::const_iterator end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-018.adoc[_» more..._]# Return an `IndexSpan` describing the substring of the specified `string` starting at the specified `begin` and having the specified `length`. The behavior is undefined unless `begin >= string.begin()`, `begin <= string.end()`, and `begin + length <= string.end()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0c.adoc[create]( std::string_view const& string, std::string_view::const_iterator begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0c.adoc[_» more..._]# Return an `IndexSpan` describing the substring of the specified `string` starting at the specified `begin` and having the specified `length`. The behavior is undefined unless `begin <= string.length()` and `begin + length <= string.length()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0fa.adoc[create]( std::string_view const& string, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0fa.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-0e/const_iterator.adoc[bsl::wstring::const_iterator] begin, xref:bsl/basic_string-0e/const_iterator.adoc[bsl::wstring::const_iterator] end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-015.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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-0e/const_iterator.adoc[bsl::wstring::const_iterator] begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d53.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, std::pmr::wstring::const_iterator end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-091d.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-045.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, std::wstring::const_iterator end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0a.adoc[_» more..._]# Same as the preceding overload for the specified string type. [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_iterator begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-03.adoc[_» more..._]# Same as the preceding overload for the specified string type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0e5.adoc[create]( std::wstring_view const& string, std::wstring_view::const_iterator begin, std::wstring_view::const_iterator end); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0e5.adoc[_» more..._]# Same as the preceding overload for the specified string type. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d1.adoc[create]( std::wstring_view const& string, std::wstring_view::const_iterator begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-00d1.adoc[_» more..._]# Same as the preceding overload for wide‐character `string`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdlb/IndexSpan.adoc[IndexSpan] xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0ff.adoc[create]( std::wstring_view const& string, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] begin, xref:BloombergLP/bdlb/IndexSpan/size_type.adoc[IndexSpan::size_type] length); ---- [.small]#xref:BloombergLP/bdlb/IndexSpanStringUtil/create-0ff.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#