create overloads
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);
» 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 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);
» 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().
static
IndexSpan
create(
std::string_view const& string,
std::string_view::const_iterator begin,
IndexSpan::size_type length);
» 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().
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...