create overloads
Declared in <bdlb_indexspanstringutil.h>
Return an IndexSpan describing subString within string.
static
IndexSpan
create(
std::string_view const& string,
std::string_view const& subString);
» more...
Same as the preceding overload for wide-character views.
static
IndexSpan
create(
std::wstring_view const& string,
std::wstring_view const& subString);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bslstl::StringRef const& string,
bslstl::StringRef::const_iterator begin,
bslstl::StringRef::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bslstl::StringRef const& string,
bslstl::StringRef::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bslstl::StringRefWide const& string,
bslstl::StringRefWide::const_iterator begin,
bslstl::StringRefWide::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bslstl::StringRefWide const& string,
bslstl::StringRefWide::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bsl::string const& string,
bsl::string::const_iterator begin,
bsl::string::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bsl::string const& string,
bsl::string::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::pmr::string const& string,
std::pmr::string::const_iterator begin,
std::pmr::string::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::pmr::string const& string,
std::pmr::string::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::string const& string,
std::string::const_iterator begin,
std::string::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::string const& string,
std::string::const_iterator begin,
IndexSpan::size_type length);
» more...
Return an IndexSpan for the half-open range [begin, end) in] string.
static
IndexSpan
create(
std::string_view const& string,
std::string_view::const_iterator begin,
std::string_view::const_iterator end);
» more...
Return an IndexSpan for the substring of string at begin of length.
static
IndexSpan
create(
std::string_view const& string,
std::string_view::const_iterator begin,
IndexSpan::size_type length);
» more...
Return an IndexSpan for the substring of string at begin of length.
static
IndexSpan
create(
std::string_view const& string,
IndexSpan::size_type begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bsl::wstring const& string,
bsl::wstring::const_iterator begin,
bsl::wstring::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
bsl::wstring const& string,
bsl::wstring::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::pmr::wstring const& string,
std::pmr::wstring::const_iterator begin,
std::pmr::wstring::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::pmr::wstring const& string,
std::pmr::wstring::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::wstring const& string,
std::wstring::const_iterator begin,
std::wstring::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::wstring const& string,
std::wstring::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::wstring_view const& string,
std::wstring_view::const_iterator begin,
std::wstring_view::const_iterator end);
» more...
Same as the preceding overload for the specified string type.
static
IndexSpan
create(
std::wstring_view const& string,
std::wstring_view::const_iterator begin,
IndexSpan::size_type length);
» more...
Same as the preceding overload for wide-character string.
static
IndexSpan
create(
std::wstring_view const& string,
IndexSpan::size_type begin,
IndexSpan::size_type length);
» more...
IndexSpan describing subString within stringIndexSpan describing the half-open range [begin, end)]IndexSpan describing the substring at begin of length| 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 |