[#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 `subString` within `string`. [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-0c.adoc[bslstl::StringRef::const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-0c.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-0c.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-0c.adoc[bslstl::StringRefWide::const_iterator] begin, xref:BloombergLP/bslstl/StringRefImp-0c.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-0c.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-0faf.adoc[bsl::string::const_iterator] begin, xref:bsl/basic_string-0faf.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-0faf.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` for the half‐open range [`begin`, `end`) in] `string`. [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` for the substring of `string` at `begin` of `length`. [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` for the substring of `string` at `begin` of `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-0faf.adoc[bsl::wstring::const_iterator] begin, xref:bsl/basic_string-0faf.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-0faf.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..._]# == Return Value * an `IndexSpan` describing `subString` within `string` * an `IndexSpan` describing the half‐open range [`begin`, `end`)] * 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]#