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

static
IndexSpan
create(
    std::string_view const& string,
    std::string_view const& subString);

Same as the preceding overload for wide‐character views.

static
IndexSpan
create(
    std::wstring_view const& string,
    std::wstring_view const& subString);

Same as the preceding overload for the specified string type.

Same as the preceding overload for the specified string type.

Same as the preceding overload for the specified string type.

Same as the preceding overload for the specified string type.

Same as the preceding overload for the specified string type.

Same as the preceding overload for the specified string type.

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);

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);

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);

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);

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.

static
IndexSpan
create(
    std::string_view const& string,
    std::string_view::const_iterator begin,
    std::string_view::const_iterator end);

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

static
IndexSpan
create(
    std::string_view const& string,
    std::string_view::const_iterator begin,
    IndexSpan::size_type length);

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

static
IndexSpan
create(
    std::string_view const& string,
    IndexSpan::size_type begin,
    IndexSpan::size_type length);

Same as the preceding overload for the specified string type.

Same as the preceding overload for the specified string type.

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);

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);

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);

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);

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);

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);

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);

Created with MrDocs