BloombergLP::bdlb::IndexSpanStringUtil::create

create overloads

Synopses

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...

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

NameDescription
stringstring containing the substring
subStringview defining the substring within string
beginiterator to the start of the substring
enditerator one past the end of the substring
lengthlength of the substring