DAW string_view
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
daw::sv2::basic_string_view< CharT, BoundsType > Struct Template Reference

The class template basic_string_view describes an object that can refer to a constant contiguous sequence of char-like objects with the first element of the sequence at position zero. More...

#include <daw_string_view2.h>

Public Types

using const_iterator = const_pointer
 
using const_pointer = std::add_const_t< CharT > *
 
using const_reference = std::add_lvalue_reference_t< std::add_const_t< CharT > >
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 
using difference_type = std::ptrdiff_t
 
using i_am_a_daw_string_view2 = void
 A tag type for detecting string_view. More...
 
using iterator = const_iterator
 
using pointer = CharT *
 
using reference = std::add_lvalue_reference_t< CharT >
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using size_type = std::size_t
 
using value_type = CharT
 

Public Member Functions

constexpr basic_string_view () noexcept=default
 Construct an empty string_view. More...
 
constexpr basic_string_view (basic_string_view::const_pointer first, basic_string_view::const_pointer last) noexcept
 Construct a string_view from a range formed by two character pointers. More...
 
template<string_view_bounds_type B>
constexpr basic_string_view (basic_string_view< CharT, B > sv, size_type count) noexcept
 Converting substr constructor from any string_view with matching CharT types. More...
 
template<typename CharPtr , DAW_REQ_CHAR_PTR(CharPtr) >
constexpr basic_string_view (CharPtr s) noexcept
 Construct a string_view with a range starting with s. More...
 
template<std::size_t N>
constexpr basic_string_view (CharT const (&string_literal)[N]) noexcept
 Construct a string_view from a character array. Assumes a string literal like array with last element having a value of CharT{}. More...
 
constexpr basic_string_view (const_pointer s, size_type count) noexcept
 Construct a string_view. More...
 
constexpr basic_string_view (std::nullptr_t) noexcept
 Construct an empty string_view. More...
 
constexpr basic_string_view (std::nullptr_t, size_type n) noexcept=delete
 Prevents nullptr literals and a size_type to construct a string_view. More...
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr basic_string_view (StringView &&sv) noexcept
 Construct a string_view from a type that forms a contiguous range of characters. More...
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr basic_string_view (StringView &&sv, size_type count) noexcept
 Construct a string_view from a type that forms a contiguous range of characters. More...
 
constexpr const_reference at (size_type pos) const
 Access to the elements of range. More...
 
constexpr const_reference back () const
 Access the last element in range. More...
 
constexpr const_iterator begin () const
 Returns an iterator to the first character of the view. More...
 
constexpr const_iterator cbegin () const
 Returns an iterator to the first character of the view. More...
 
constexpr const_iterator cend () const
 Returns an iterator to the character following the last character of the view. This character acts as a placeholder, attempting to access it results in undefined behavior. More...
 
constexpr void clear ()
 Empty the range. More...
 
template<typename Compare = std::less<>, string_view_bounds_type B>
constexpr int compare (basic_string_view< CharT, B > rhs, Compare cmp=Compare{ }) const
 
template<typename Compare = std::less<>, std::size_t N>
constexpr int compare (CharT const (&rhs)[N], Compare cmp=Compare{ }) const
 
template<typename Compare = std::less<>>
constexpr int compare (size_type pos1, size_type count1, basic_string_view v, Compare cmp=Compare{ }) const
 
template<typename Compare = std::less<>, string_view_bounds_type Bounds>
constexpr int compare (size_type pos1, size_type count1, basic_string_view< CharT, Bounds > v, size_type pos2, size_type count2, Compare cmp=Compare{ }) const
 
template<typename Compare = std::less<>>
constexpr int compare (size_type pos1, size_type count1, const_pointer s, Compare cmp=Compare{ }) const
 
template<typename Compare = std::less<>>
constexpr int compare (size_type pos1, size_type count1, const_pointer s, size_type count2, Compare cmp=Compare{ }) const
 
template<typename Compare = std::less<>, typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr int compare (StringView &&rhs, Compare cmp=Compare{ }) const
 
constexpr size_type copy (pointer dest, size_type count) const
 
constexpr size_type copy (pointer dest, size_type count, size_type pos) const
 
constexpr const_reverse_iterator crbegin () const
 Returns a reverse iterator to the first character of the reversed view. It corresponds to the last character of the non-reversed view. More...
 
constexpr const_reverse_iterator crend () const
 Returns a reverse iterator to the character following the last character of the reversed view. It corresponds to the character preceding the first character of the non-reversed view. This character acts as a placeholder, attempting to access it results in undefined behavior. More...
 
constexpr const_pointer data () const
 Returns a pointer to the underlying character range corresponding to the values of the view. More...
 
constexpr const_pointer data_end () const
 Returns a pointer to the character following the last character of the view. This character acts as a placeholder, attempting to access it may result in undefined behavior. More...
 
constexpr bool empty () const
 Checks if the view has no characters. More...
 
constexpr const_iterator end () const
 Returns an iterator to the character following the last character of the view. This character acts as a placeholder, attempting to access it results in undefined behavior. More...
 
template<string_view_bounds_type Bounds>
constexpr bool ends_with (basic_string_view< CharT, Bounds > s) const
 
constexpr bool ends_with (CharT c) const
 
constexpr bool ends_with (const_pointer s) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find (basic_string_view< CharT, Bounds > v) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find (basic_string_view< CharT, Bounds > v, size_type pos) const
 
constexpr size_type find (CharT c) const
 
constexpr size_type find (CharT c, size_type pos) const
 
constexpr size_type find (const_pointer s) const
 
constexpr size_type find (const_pointer s, size_type pos) const
 
constexpr size_type find (const_pointer s, size_type pos, size_type count) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_first_not_of (basic_string_view< CharT, Bounds > v) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_first_not_of (basic_string_view< CharT, Bounds > v, size_type pos) const
 
constexpr size_type find_first_not_of (CharT c) const
 
constexpr size_type find_first_not_of (CharT c, size_type pos) const
 
template<size_type N>
constexpr size_type find_first_not_of (CharT const(&&s)[N]) const
 
template<size_type N>
constexpr size_type find_first_not_of (CharT const(&&s)[N], size_type pos) const
 
constexpr size_type find_first_not_of (const_pointer s) const
 
constexpr size_type find_first_not_of (const_pointer s, size_type pos) const
 
constexpr size_type find_first_not_of (const_pointer s, size_type pos, size_type count) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_first_not_of_if (UnaryPredicate pred) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_first_not_of_if (UnaryPredicate pred, size_type pos) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_first_of (basic_string_view< CharT, Bounds > v) const
 Find the first item in v that is in string from beginning. More...
 
template<string_view_bounds_type Bounds>
constexpr size_type find_first_of (basic_string_view< CharT, Bounds > v, size_type pos) const
 Find the first item in v that is in string from pos. More...
 
constexpr size_type find_first_of (CharT c) const
 
constexpr size_type find_first_of (CharT c, size_type pos) const
 
constexpr size_type find_first_of (const_pointer s, size_type pos, size_type count) const
 
constexpr size_type find_first_of (const_pointer str) const
 
constexpr size_type find_first_of (const_pointer str, size_type pos) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_first_of_if (UnaryPredicate pred) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_first_of_if (UnaryPredicate pred, size_type pos) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_last_not_of (basic_string_view< CharT, Bounds > v) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_last_not_of (basic_string_view< CharT, Bounds > v, size_type pos) const
 
constexpr size_type find_last_not_of (CharT c) const
 
constexpr size_type find_last_not_of (CharT c, size_type pos) const
 
constexpr size_type find_last_not_of (const_pointer s) const
 
constexpr size_type find_last_not_of (const_pointer s, size_type pos) const
 
constexpr size_type find_last_not_of (const_pointer s, size_type pos, size_type count) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_last_not_of_if (UnaryPredicate pred) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_last_not_of_if (UnaryPredicate pred, size_type pos) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_last_of (basic_string_view< CharT, Bounds > s) const
 
template<string_view_bounds_type Bounds>
constexpr size_type find_last_of (basic_string_view< CharT, Bounds > s, size_type pos) const
 
constexpr size_type find_last_of (CharT c) const
 
constexpr size_type find_last_of (CharT c, size_type pos) const
 
template<size_type N>
constexpr size_type find_last_of (CharT const (&s)[N])
 
template<size_type N>
constexpr size_type find_last_of (CharT const (&s)[N], size_type pos)
 
constexpr size_type find_last_of (const_pointer s) const
 
constexpr size_type find_last_of (const_pointer s, size_type pos) const
 
constexpr size_type find_last_of (const_pointer s, size_type pos, size_type count) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_last_of_if (UnaryPredicate pred) const
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type find_last_of_if (UnaryPredicate pred, size_type pos) const
 
constexpr const_reference front () const
 Access the first element in range. More...
 
constexpr size_type length () const
 Returns the number of CharT elements in the view. More...
 
template<typename T , DAW_REQ_CONTIG_CHAR_RANGE_CTOR(T) >
constexpr operator T () const noexcept(std::is_nothrow_constructible_v< T, CharT *, size_type >)
 Convert to a contiguous range type. More...
 
constexpr bool operator!= (basic_string_view rhs) noexcept
 
constexpr bool operator< (basic_string_view rhs) noexcept
 
constexpr bool operator<= (basic_string_view rhs) noexcept
 
constexpr bool operator== (basic_string_view rhs) noexcept
 
constexpr bool operator> (basic_string_view rhs) noexcept
 
constexpr bool operator>= (basic_string_view rhs) noexcept
 
constexpr const_reference operator[] (size_type pos) const
 Access to the elements of range. More...
 
constexpr CharT pop_back ()
 
constexpr basic_string_view pop_back (size_type count)
 create a substr of the last count characters and remove them from end More...
 
constexpr basic_string_view pop_back_until (basic_string_view where)
 searches for last where, returns substring between where and end, then pops off the substring and the where string More...
 
constexpr basic_string_view pop_back_until (basic_string_view where, nodiscard_t)
 searches for last where, returns substring between where and end, then pops off the substring More...
 
constexpr basic_string_view pop_back_until (CharT where)
 searches for the last where, returns substring between where and end, then pops off the substring and the where string More...
 
constexpr basic_string_view pop_back_until (CharT where, nodiscard_t)
 searches for last where, returns substring between where and end, then pops off the substring More...
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view pop_back_until (UnaryPredicate pred)
 searches for last position UnaryPredicate would be true, returns substring between pred and end, then pops off the substring and the pred specified string More...
 
constexpr CharT pop_front ()
 Increment the data( ) pointer by 1. More...
 
constexpr basic_string_view pop_front (size_type count)
 Increment data( ) by count elements and return a new string_view that would be formed formed from the previous and current data( ) pointer values. More...
 
constexpr basic_string_view pop_front_until (basic_string_view where)
 Searches for where, returns substring between front and where, then pops off the substring and the where string. More...
 
constexpr basic_string_view pop_front_until (basic_string_view where, nodiscard_t)
 Increment data( ) until the substring where is found and return a new string_view that would be formed formed from the previous and current data( ) pointer values. More...
 
constexpr basic_string_view pop_front_until (CharT where)
 Searches for where, returns substring between front and where, then pops off the substring and the where string. More...
 
constexpr basic_string_view pop_front_until (CharT where, nodiscard_t)
 Searches for where, returns substring between front and where, then pops off the substring. More...
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view pop_front_until (UnaryPredicate pred)
 Increment data until the predicate is true or the string_view is empty. Return a new string_view formed from the range of the previous value of data( ) and the position where predicate was true. More...
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view pop_front_until (UnaryPredicate pred, nodiscard_t)
 Increment data until the predicate is true or the string_view is empty. Return a new string_view formed from the range of the previous value of data( ) and the position where predicate was true. More...
 
constexpr reverse_iterator rbegin () const
 Returns a reverse iterator to the first character of the reversed view. It corresponds to the last character of the non-reversed view. More...
 
constexpr void remove_prefix ()
 Increment the data( ) pointer by 1. If string_view is empty, it does nothing. More...
 
constexpr void remove_prefix (size_type n)
 Increment the data( ) pointer by n. If string_view is empty, it does nothing. More...
 
constexpr basic_string_viewremove_prefix_until (basic_string_view where)
 searches for where, and disregards everything until the end of that More...
 
constexpr basic_string_viewremove_prefix_until (basic_string_view where, nodiscard_t)
 searches for where, and disregards everything prior to where More...
 
constexpr basic_string_viewremove_prefix_until (CharT where)
 searches for where, and disregards everything until the end of that More...
 
constexpr basic_string_viewremove_prefix_until (CharT where, nodiscard_t)
 searches for where, and disregards everything prior to where More...
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_viewremove_prefix_until (UnaryPredicate pred)
 Removes all elements until pred is true or end reached. More...
 
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_viewremove_prefix_until (UnaryPredicate pred, nodiscard_t)
 removes all elements prior to predicate returning true More...
 
template<typename UnaryPred , DAW_REQ_UNARY_PRED(UnaryPred, CharT) >
constexpr void remove_prefix_while (UnaryPred is_whitespace) noexcept
 
constexpr void remove_suffix ()
 Decrement the size( ) by 1 if size( ) > 0. More...
 
constexpr void remove_suffix (size_type n)
 Decrement the size( ) by n. If string_view is empty, it does nothing. More...
 
template<typename UnaryPred , DAW_REQ_UNARY_PRED(UnaryPred, CharT) >
constexpr void remove_suffix_while (UnaryPred is_whitespace) noexcept
 
constexpr reverse_iterator rend () const
 Returns a reverse iterator to the character following the last character of the reversed view. It corresponds to the character preceding the first character of the non-reversed view. This character acts as a placeholder, attempting to access it results in undefined behavior. More...
 
constexpr void reset ()
 Reset the range to a default constructed state. More...
 
constexpr void resize (size_type new_size)
 Set the size of the range. More...
 
template<string_view_bounds_type Bounds>
constexpr size_type rfind (basic_string_view< CharT, Bounds > v) const
 
template<string_view_bounds_type Bounds>
constexpr size_type rfind (basic_string_view< CharT, Bounds > v, size_type pos) const
 
constexpr size_type rfind (CharT c) const
 
constexpr size_type rfind (CharT c, size_type pos) const
 
constexpr size_type rfind (const_pointer s) const
 
constexpr size_type rfind (const_pointer s, size_type pos) const
 
constexpr size_type rfind (const_pointer s, size_type pos, size_type count) const
 
template<string_view_bounds_type Bounds>
constexpr size_type search (basic_string_view< CharT, Bounds > v) const
 
template<string_view_bounds_type Bounds>
constexpr size_type search (basic_string_view< CharT, Bounds > v, size_type pos) const
 
constexpr size_t search (const_pointer str) const
 
constexpr size_t search (const_pointer str, size_type pos) const
 
template<string_view_bounds_type Bounds>
constexpr size_type search_last (basic_string_view< CharT, Bounds > v) const
 
template<string_view_bounds_type Bounds>
constexpr size_type search_last (basic_string_view< CharT, Bounds > v, size_type pos) const
 
constexpr size_t search_last (const_pointer str) const
 
constexpr size_t search_last (const_pointer str, size_type pos) const
 
constexpr size_type size () const
 Returns the number of CharT elements in the view. More...
 
template<string_view_bounds_type Bounds>
constexpr bool starts_with (basic_string_view< CharT, Bounds > s) const
 
constexpr bool starts_with (CharT c) const
 
constexpr bool starts_with (const_pointer s) const
 
constexpr basic_string_view substr () const
 
constexpr basic_string_view substr (size_type pos) const
 
constexpr basic_string_view substr (size_type pos, size_type count) const
 
constexpr void trim () noexcept
 
constexpr basic_string_view trim_copy () const noexcept
 
constexpr void trim_prefix () noexcept
 
constexpr basic_string_view trim_prefix_copy () const noexcept
 
constexpr void trim_suffix () noexcept
 
constexpr basic_string_view trim_suffix_copy () const noexcept
 
constexpr basic_string_view try_pop_back_until (basic_string_view where)
 searches for last where, returns substring between where and end, then pops off the substring and the where string. If where is not found, nothing is done More...
 
constexpr basic_string_view try_pop_front_until (basic_string_view where)
 searches for where, returns substring between front and where, then pops off the substring and the where string. Do nothing if where is not found More...
 

Static Public Member Functions

template<typename Compare = std::less<void>, string_view_bounds_type BL, string_view_bounds_type BR>
static constexpr int compare (basic_string_view< CharT, BL > lhs, basic_string_view< CharT, BR > rhs, Compare cmp=Compare{ })
 

Static Public Attributes

static constexpr size_type const npos
 

Friends

constexpr friend bool operator!= (const_pointer lhs, basic_string_view rhs) noexcept
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator!= (StringView &&lhs, basic_string_view rhs) noexcept
 
constexpr friend bool operator< (const_pointer lhs, basic_string_view rhs) noexcept
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator< (StringView &&lhs, basic_string_view rhs) noexcept
 
constexpr friend bool operator<= (const_pointer lhs, basic_string_view rhs) noexcept
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator<= (StringView &&lhs, basic_string_view rhs) noexcept
 
constexpr friend bool operator== (const_pointer lhs, basic_string_view rhs) noexcept
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator== (StringView &&lhs, basic_string_view rhs) noexcept
 
constexpr friend bool operator> (const_pointer lhs, basic_string_view rhs) noexcept
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator> (StringView &&lhs, basic_string_view rhs) noexcept
 
constexpr friend bool operator>= (const_pointer lhs, basic_string_view rhs) noexcept
 
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator>= (StringView &&lhs, basic_string_view rhs) noexcept
 

Detailed Description

template<typename CharT, string_view_bounds_type BoundsType>
struct daw::sv2::basic_string_view< CharT, BoundsType >

The class template basic_string_view describes an object that can refer to a constant contiguous sequence of char-like objects with the first element of the sequence at position zero.

Member Typedef Documentation

◆ const_iterator

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::const_iterator = const_pointer

◆ const_pointer

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::const_pointer = std::add_const_t<CharT> *

◆ const_reference

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::const_reference = std::add_lvalue_reference_t<std::add_const_t<CharT> >

◆ const_reverse_iterator

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::const_reverse_iterator = std::reverse_iterator<const_iterator>

◆ difference_type

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::difference_type = std::ptrdiff_t

◆ i_am_a_daw_string_view2

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::i_am_a_daw_string_view2 = void

A tag type for detecting string_view.

◆ iterator

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::iterator = const_iterator

◆ pointer

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::pointer = CharT *

◆ reference

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::reference = std::add_lvalue_reference_t<CharT>

◆ reverse_iterator

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::reverse_iterator = std::reverse_iterator<iterator>

◆ size_type

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::size_type = std::size_t

◆ value_type

template<typename CharT , string_view_bounds_type BoundsType>
using daw::sv2::basic_string_view< CharT, BoundsType >::value_type = CharT

Constructor & Destructor Documentation

◆ basic_string_view() [1/10]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( )
constexprdefaultnoexcept

Construct an empty string_view.

Postcondition
data( ) == nullptr
size( ) == 0

◆ basic_string_view() [2/10]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( std::nullptr_t  )
inlineconstexprnoexcept

Construct an empty string_view.

Postcondition
data( ) == nullptr
size( ) == 0

◆ basic_string_view() [3/10]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( std::nullptr_t  ,
size_type  n 
)
constexprdeletenoexcept

Prevents nullptr literals and a size_type to construct a string_view.

◆ basic_string_view() [4/10]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( const_pointer  s,
size_type  count 
)
inlineconstexprnoexcept

Construct a string_view.

Parameters
sPointer to start of character range
countSize of character range
Postcondition
data( ) == s
size( ) == count

◆ basic_string_view() [5/10]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename CharPtr , DAW_REQ_CHAR_PTR(CharPtr) >
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( CharPtr  s)
inlineconstexprnoexcept

Construct a string_view with a range starting with s.

Parameters
sStart of character range
Precondition
s == nullptr, or s beings a valid character range that has a CharT{} terminated sentinel
Postcondition
data( ) == s
size( ) == strlen( s ) or CharT{} if s == nullptr

◆ basic_string_view() [6/10]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( basic_string_view< CharT, B >  sv,
size_type  count 
)
inlineconstexprnoexcept

Converting substr constructor from any string_view with matching CharT types.

Parameters
svOther string_view
countMaximum number of characters to use in range formed by sv
Postcondition
data( ) == sv.data( )
size( ) == min( count, sv.size( ) )

◆ basic_string_view() [7/10]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( StringView &&  sv)
inlineconstexprnoexcept

Construct a string_view from a type that forms a contiguous range of characters.

Parameters
svA valid contiguous character range
Postcondition
data( ) == std::data( sv )
size( ) == std::size( sv )

◆ basic_string_view() [8/10]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( StringView &&  sv,
size_type  count 
)
inlineconstexprnoexcept

Construct a string_view from a type that forms a contiguous range of characters.

Parameters
svOther string_view
countMaximum number of characters to use in range formed by sv
Postcondition
data( ) == sv.data( )
size( ) == min( count, sv.size( ) )

◆ basic_string_view() [9/10]

template<typename CharT , string_view_bounds_type BoundsType>
template<std::size_t N>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( CharT const (&)  string_literal[N])
inlineconstexprnoexcept

Construct a string_view from a character array. Assumes a string literal like array with last element having a value of CharT{}.

Parameters
string_literalA valid contiguous character range
Postcondition
data( ) == std::data( string_literal )
size( ) == std::size( string_literal ) - 1

◆ basic_string_view() [10/10]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::basic_string_view ( basic_string_view< CharT, BoundsType >::const_pointer  first,
basic_string_view< CharT, BoundsType >::const_pointer  last 
)
inlineconstexprnoexcept

Construct a string_view from a range formed by two character pointers.

Parameters
firstStart of character range
lastOne past last element in range
Precondition
[first, last) form a valid character range
Postcondition
data( ) == first
size( ) == last - first

Member Function Documentation

◆ at()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_reference daw::sv2::basic_string_view< CharT, BoundsType >::at ( size_type  pos) const
inlineconstexpr

Access to the elements of range.

Parameters
posPosition in range
Exceptions
std::out_of_rangewhen pos >= size( )
Returns
data( )[pos]

◆ back()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_reference daw::sv2::basic_string_view< CharT, BoundsType >::back ( ) const
inlineconstexpr

Access the last element in range.

Precondition
data( ) != nullptr
size( ) > 0

◆ begin()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_iterator daw::sv2::basic_string_view< CharT, BoundsType >::begin ( ) const
inlineconstexpr

Returns an iterator to the first character of the view.

Returns
const_iterator to the first character

◆ cbegin()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_iterator daw::sv2::basic_string_view< CharT, BoundsType >::cbegin ( ) const
inlineconstexpr

Returns an iterator to the first character of the view.

Returns
const_iterator to the first character

◆ cend()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_iterator daw::sv2::basic_string_view< CharT, BoundsType >::cend ( ) const
inlineconstexpr

Returns an iterator to the character following the last character of the view. This character acts as a placeholder, attempting to access it results in undefined behavior.

Returns
const_iterator to the character following the last character.

◆ clear()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::clear ( )
inlineconstexpr

Empty the range.

Postcondition
size( ) == 0

◆ compare() [1/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>, string_view_bounds_type B>
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( basic_string_view< CharT, B >  rhs,
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ compare() [2/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<void>, string_view_bounds_type BL, string_view_bounds_type BR>
static constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( basic_string_view< CharT, BL >  lhs,
basic_string_view< CharT, BR >  rhs,
Compare  cmp = Compare{ } 
)
inlinestaticconstexpr

◆ compare() [3/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>, std::size_t N>
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( CharT const (&)  rhs[N],
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ compare() [4/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>>
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( size_type  pos1,
size_type  count1,
basic_string_view< CharT, BoundsType >  v,
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ compare() [5/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>, string_view_bounds_type Bounds>
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( size_type  pos1,
size_type  count1,
basic_string_view< CharT, Bounds >  v,
size_type  pos2,
size_type  count2,
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ compare() [6/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>>
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( size_type  pos1,
size_type  count1,
const_pointer  s,
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ compare() [7/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>>
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( size_type  pos1,
size_type  count1,
const_pointer  s,
size_type  count2,
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ compare() [8/8]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename Compare = std::less<>, typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr int daw::sv2::basic_string_view< CharT, BoundsType >::compare ( StringView &&  rhs,
Compare  cmp = Compare{ } 
) const
inlineconstexpr

◆ copy() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::copy ( pointer  dest,
size_type  count 
) const
inlineconstexpr

◆ copy() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::copy ( pointer  dest,
size_type  count,
size_type  pos 
) const
inlineconstexpr

◆ crbegin()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_reverse_iterator daw::sv2::basic_string_view< CharT, BoundsType >::crbegin ( ) const
inlineconstexpr

Returns a reverse iterator to the first character of the reversed view. It corresponds to the last character of the non-reversed view.

Returns
const_reverse_iterator to the first character

◆ crend()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_reverse_iterator daw::sv2::basic_string_view< CharT, BoundsType >::crend ( ) const
inlineconstexpr

Returns a reverse iterator to the character following the last character of the reversed view. It corresponds to the character preceding the first character of the non-reversed view. This character acts as a placeholder, attempting to access it results in undefined behavior.

Returns
const_reverse_iterator to the character following the last character.

◆ data()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_pointer daw::sv2::basic_string_view< CharT, BoundsType >::data ( ) const
inlineconstexpr

Returns a pointer to the underlying character range corresponding to the values of the view.

Returns
A pointer to the underlying character range

◆ data_end()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_pointer daw::sv2::basic_string_view< CharT, BoundsType >::data_end ( ) const
inlineconstexpr

Returns a pointer to the character following the last character of the view. This character acts as a placeholder, attempting to access it may result in undefined behavior.

Returns
pointer to the character following the last character.

◆ empty()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::empty ( ) const
inlineconstexpr

Checks if the view has no characters.

Returns
true if the view is empty, false otherwise

◆ end()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_iterator daw::sv2::basic_string_view< CharT, BoundsType >::end ( ) const
inlineconstexpr

Returns an iterator to the character following the last character of the view. This character acts as a placeholder, attempting to access it results in undefined behavior.

Returns
const_iterator to the character following the last character.

◆ ends_with() [1/3]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::ends_with ( basic_string_view< CharT, Bounds >  s) const
inlineconstexpr

◆ ends_with() [2/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::ends_with ( CharT  c) const
inlineconstexpr

◆ ends_with() [3/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::ends_with ( const_pointer  s) const
inlineconstexpr

◆ find() [1/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

◆ find() [2/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

◆ find() [3/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( CharT  c) const
inlineconstexpr

◆ find() [4/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( CharT  c,
size_type  pos 
) const
inlineconstexpr

◆ find() [5/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( const_pointer  s) const
inlineconstexpr

◆ find() [6/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( const_pointer  s,
size_type  pos 
) const
inlineconstexpr

◆ find() [7/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find ( const_pointer  s,
size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ find_first_not_of() [1/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

◆ find_first_not_of() [2/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

◆ find_first_not_of() [3/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( CharT  c) const
inlineconstexpr

◆ find_first_not_of() [4/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( CharT  c,
size_type  pos 
) const
inlineconstexpr

◆ find_first_not_of() [5/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<size_type N>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( CharT const(&&)  s[N]) const
inlineconstexpr

◆ find_first_not_of() [6/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<size_type N>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( CharT const(&&)  s[N],
size_type  pos 
) const
inlineconstexpr

◆ find_first_not_of() [7/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( const_pointer  s) const
inlineconstexpr

◆ find_first_not_of() [8/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( const_pointer  s,
size_type  pos 
) const
inlineconstexpr

◆ find_first_not_of() [9/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of ( const_pointer  s,
size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ find_first_not_of_if() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of_if ( UnaryPredicate  pred) const
inlineconstexpr

◆ find_first_not_of_if() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_not_of_if ( UnaryPredicate  pred,
size_type  pos 
) const
inlineconstexpr

◆ find_first_of() [1/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

Find the first item in v that is in string from beginning.

Parameters
vA range of characters to look for
Returns
position of first item in v or npos

◆ find_first_of() [2/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

Find the first item in v that is in string from pos.

Parameters
vA range of characters to look for
posStarting position to start searching
Returns
position of first item in v or npos

◆ find_first_of() [3/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( CharT  c) const
inlineconstexpr

◆ find_first_of() [4/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( CharT  c,
size_type  pos 
) const
inlineconstexpr

◆ find_first_of() [5/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( const_pointer  s,
size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ find_first_of() [6/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( const_pointer  str) const
inlineconstexpr

◆ find_first_of() [7/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of ( const_pointer  str,
size_type  pos 
) const
inlineconstexpr

◆ find_first_of_if() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of_if ( UnaryPredicate  pred) const
inlineconstexpr

◆ find_first_of_if() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_first_of_if ( UnaryPredicate  pred,
size_type  pos 
) const
inlineconstexpr

◆ find_last_not_of() [1/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

◆ find_last_not_of() [2/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

◆ find_last_not_of() [3/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( CharT  c) const
inlineconstexpr

◆ find_last_not_of() [4/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( CharT  c,
size_type  pos 
) const
inlineconstexpr

◆ find_last_not_of() [5/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( const_pointer  s) const
inlineconstexpr

◆ find_last_not_of() [6/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( const_pointer  s,
size_type  pos 
) const
inlineconstexpr

◆ find_last_not_of() [7/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of ( const_pointer  s,
size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ find_last_not_of_if() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of_if ( UnaryPredicate  pred) const
inlineconstexpr

◆ find_last_not_of_if() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_not_of_if ( UnaryPredicate  pred,
size_type  pos 
) const
inlineconstexpr

◆ find_last_of() [1/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( basic_string_view< CharT, Bounds >  s) const
inlineconstexpr

◆ find_last_of() [2/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( basic_string_view< CharT, Bounds >  s,
size_type  pos 
) const
inlineconstexpr

◆ find_last_of() [3/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( CharT  c) const
inlineconstexpr

◆ find_last_of() [4/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( CharT  c,
size_type  pos 
) const
inlineconstexpr

◆ find_last_of() [5/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<size_type N>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( CharT const (&)  s[N])
inlineconstexpr

◆ find_last_of() [6/9]

template<typename CharT , string_view_bounds_type BoundsType>
template<size_type N>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( CharT const (&)  s[N],
size_type  pos 
)
inlineconstexpr

◆ find_last_of() [7/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( const_pointer  s) const
inlineconstexpr

◆ find_last_of() [8/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( const_pointer  s,
size_type  pos 
) const
inlineconstexpr

◆ find_last_of() [9/9]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of ( const_pointer  s,
size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ find_last_of_if() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of_if ( UnaryPredicate  pred) const
inlineconstexpr

◆ find_last_of_if() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::find_last_of_if ( UnaryPredicate  pred,
size_type  pos 
) const
inlineconstexpr

◆ front()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_reference daw::sv2::basic_string_view< CharT, BoundsType >::front ( ) const
inlineconstexpr

Access the first element in range.

Precondition
data( ) != nullptr
size( ) > 0

◆ length()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::length ( ) const
inlineconstexpr

Returns the number of CharT elements in the view.

Returns
The number of CharT elements in the view.

◆ operator T()

template<typename CharT , string_view_bounds_type BoundsType>
template<typename T , DAW_REQ_CONTIG_CHAR_RANGE_CTOR(T) >
constexpr daw::sv2::basic_string_view< CharT, BoundsType >::operator T ( ) const
inlineexplicitconstexprnoexcept

Convert to a contiguous range type.

Precondition
T{ data( ), size( ) } is valid

◆ operator!=()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::operator!= ( basic_string_view< CharT, BoundsType >  rhs)
inlineconstexprnoexcept

◆ operator<()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::operator< ( basic_string_view< CharT, BoundsType >  rhs)
inlineconstexprnoexcept

◆ operator<=()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::operator<= ( basic_string_view< CharT, BoundsType >  rhs)
inlineconstexprnoexcept

◆ operator==()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::operator== ( basic_string_view< CharT, BoundsType >  rhs)
inlineconstexprnoexcept

◆ operator>()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::operator> ( basic_string_view< CharT, BoundsType >  rhs)
inlineconstexprnoexcept

◆ operator>=()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::operator>= ( basic_string_view< CharT, BoundsType >  rhs)
inlineconstexprnoexcept

◆ operator[]()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr const_reference daw::sv2::basic_string_view< CharT, BoundsType >::operator[] ( size_type  pos) const
inlineconstexpr

Access to the elements of range.

Parameters
posPosition in range
Precondition
size( ) > pos
data( ) != nullptr
Returns
data( )[pos]

◆ pop_back() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr CharT daw::sv2::basic_string_view< CharT, BoundsType >::pop_back ( )
inlineconstexpr

◆ pop_back() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_back ( size_type  count)
inlineconstexpr

create a substr of the last count characters and remove them from end

Parameters
countnumber of characters to remove and return
Returns
a substr of size count ending at end of string_view

◆ pop_back_until() [1/5]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_back_until ( basic_string_view< CharT, BoundsType >  where)
inlineconstexpr

searches for last where, returns substring between where and end, then pops off the substring and the where string

Parameters
wherestring to split on and remove from back
Returns
substring from end of where string to end of string

◆ pop_back_until() [2/5]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_back_until ( basic_string_view< CharT, BoundsType >  where,
nodiscard_t   
)
inlineconstexpr

searches for last where, returns substring between where and end, then pops off the substring

Parameters
wherestring to split on and remove from back
Returns
substring from end of where string to end of string

◆ pop_back_until() [3/5]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_back_until ( CharT  where)
inlineconstexpr

searches for the last where, returns substring between where and end, then pops off the substring and the where string

Parameters
whereCharT to split string on and remove from back
Returns
substring from end of where string to end of string

◆ pop_back_until() [4/5]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_back_until ( CharT  where,
nodiscard_t   
)
inlineconstexpr

searches for last where, returns substring between where and end, then pops off the substring

Parameters
wherestring to split on and remove from back
Returns
substring from end of where string to end of string

◆ pop_back_until() [5/5]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_back_until ( UnaryPredicate  pred)
inlineconstexpr

searches for last position UnaryPredicate would be true, returns substring between pred and end, then pops off the substring and the pred specified string

Template Parameters
UnaryPredicatea unary predicate type that accepts a char and indicates with true when to stop
Parameters
predpredicate to determine where to split
Returns
substring from last position marked by predicate to end

◆ pop_front() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr CharT daw::sv2::basic_string_view< CharT, BoundsType >::pop_front ( )
inlineconstexpr

Increment the data( ) pointer by 1.

Returns
front( ) prior to increment

◆ pop_front() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front ( size_type  count)
inlineconstexpr

Increment data( ) by count elements and return a new string_view that would be formed formed from the previous and current data( ) pointer values.

Parameters
countnumber of characters to increment data( ) by
Returns
a new string_view of size count.

◆ pop_front_until() [1/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front_until ( basic_string_view< CharT, BoundsType >  where)
inlineconstexpr

Searches for where, returns substring between front and where, then pops off the substring and the where string.

Parameters
wherestring to split on and remove from front
Returns
substring from beginning to where string

◆ pop_front_until() [2/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front_until ( basic_string_view< CharT, BoundsType >  where,
nodiscard_t   
)
inlineconstexpr

Increment data( ) until the substring where is found and return a new string_view that would be formed formed from the previous and current data( ) pointer values.

Parameters
wheresubstring to search for
Returns
If where is found, a new string_view from the old data( ) position up to the position of the leading character in where. If where is not found, a copy of the string_view is made

◆ pop_front_until() [3/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front_until ( CharT  where)
inlineconstexpr

Searches for where, returns substring between front and where, then pops off the substring and the where string.

Parameters
wherestring to split on and remove from front
Returns
substring from beginning to where string

◆ pop_front_until() [4/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front_until ( CharT  where,
nodiscard_t   
)
inlineconstexpr

Searches for where, returns substring between front and where, then pops off the substring.

Parameters
wherestring to split on and remove from front
Returns
substring from beginning to where string

◆ pop_front_until() [5/6]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front_until ( UnaryPredicate  pred)
inlineconstexpr

Increment data until the predicate is true or the string_view is empty. Return a new string_view formed from the range of the previous value of data( ) and the position where predicate was true.

Template Parameters
UnaryPredicateA predicate taking a single CharT as parameter
Parameters
predA predicate that returns true at the end of the newly created range.
Returns
substring from beginning to position marked by predicate
Postcondition
data( ) is set to one past position where the predicate was true, or one past the end of the range

◆ pop_front_until() [6/6]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::pop_front_until ( UnaryPredicate  pred,
nodiscard_t   
)
inlineconstexpr

Increment data until the predicate is true or the string_view is empty. Return a new string_view formed from the range of the previous value of data( ) and the position where predicate was true.

Template Parameters
UnaryPredicateA predicate taking a single CharT as parameter
Parameters
predA predicate that returns true at the end of the newly created range.
Returns
substring from beginning to position marked by predicate
Postcondition
data( ) is set to position where the predicate was true, or one past the end of the range

◆ rbegin()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr reverse_iterator daw::sv2::basic_string_view< CharT, BoundsType >::rbegin ( ) const
inlineconstexpr

Returns a reverse iterator to the first character of the reversed view. It corresponds to the last character of the non-reversed view.

Returns
const_reverse_iterator to the first character

◆ remove_prefix() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix ( )
inlineconstexpr

Increment the data( ) pointer by 1. If string_view is empty, it does nothing.

Precondition
data( ) != nullptr

◆ remove_prefix() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix ( size_type  n)
inlineconstexpr

Increment the data( ) pointer by n. If string_view is empty, it does nothing.

Precondition
data( ) != nullptr

◆ remove_prefix_until() [1/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view & daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_until ( basic_string_view< CharT, BoundsType >  where)
inlineconstexpr

searches for where, and disregards everything until the end of that

Parameters
wherestring to find and consume
Returns
substring with everything up until the end of where removed

◆ remove_prefix_until() [2/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view & daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_until ( basic_string_view< CharT, BoundsType >  where,
nodiscard_t   
)
inlineconstexpr

searches for where, and disregards everything prior to where

Parameters
wherestring to find and consume
Returns
substring with everything up until the start of where removed

◆ remove_prefix_until() [3/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view & daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_until ( CharT  where)
inlineconstexpr

searches for where, and disregards everything until the end of that

Parameters
wherecharacter to find and consume
Returns
substring with everything up until the end of where removed

◆ remove_prefix_until() [4/6]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view & daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_until ( CharT  where,
nodiscard_t   
)
inlineconstexpr

searches for where, and disregards everything prior to where

Parameters
wherecharacter to find
Returns
substring with everything up until where removed

◆ remove_prefix_until() [5/6]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view & daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_until ( UnaryPredicate  pred)
inlineconstexpr

Removes all elements until pred is true or end reached.

Template Parameters
UnaryPredicatea unary predicate type that accepts a char and indicates with true when to stop
Parameters
predPredicate object
Returns
A reference to the current string_view object

◆ remove_prefix_until() [6/6]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPredicate , DAW_REQ_UNARY_PRED(UnaryPredicate, CharT) >
constexpr basic_string_view & daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_until ( UnaryPredicate  pred,
nodiscard_t   
)
inlineconstexpr

removes all elements prior to predicate returning true

Parameters
predpredicate that takes a CharT
Returns
substring with everything up until predicate is removed

◆ remove_prefix_while()

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPred , DAW_REQ_UNARY_PRED(UnaryPred, CharT) >
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::remove_prefix_while ( UnaryPred  is_whitespace)
inlineconstexprnoexcept

◆ remove_suffix() [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::remove_suffix ( )
inlineconstexpr

Decrement the size( ) by 1 if size( ) > 0.

◆ remove_suffix() [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::remove_suffix ( size_type  n)
inlineconstexpr

Decrement the size( ) by n. If string_view is empty, it does nothing.

◆ remove_suffix_while()

template<typename CharT , string_view_bounds_type BoundsType>
template<typename UnaryPred , DAW_REQ_UNARY_PRED(UnaryPred, CharT) >
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::remove_suffix_while ( UnaryPred  is_whitespace)
inlineconstexprnoexcept

◆ rend()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr reverse_iterator daw::sv2::basic_string_view< CharT, BoundsType >::rend ( ) const
inlineconstexpr

Returns a reverse iterator to the character following the last character of the reversed view. It corresponds to the character preceding the first character of the non-reversed view. This character acts as a placeholder, attempting to access it results in undefined behavior.

Returns
const_reverse_iterator to the character following the last character.

◆ reset()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::reset ( )
inlineconstexpr

Reset the range to a default constructed state.

Postcondition
data( ) == nullptr
size( ) == 0

◆ resize()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::resize ( size_type  new_size)
inlineconstexpr

Set the size of the range.

Parameters
new_sizeNew size of range
Precondition
size( ) >= new_size
Postcondition
size( ) == new_size

◆ rfind() [1/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

◆ rfind() [2/7]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

◆ rfind() [3/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( CharT  c) const
inlineconstexpr

◆ rfind() [4/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( CharT  c,
size_type  pos 
) const
inlineconstexpr

◆ rfind() [5/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( const_pointer  s) const
inlineconstexpr

◆ rfind() [6/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( const_pointer  s,
size_type  pos 
) const
inlineconstexpr

◆ rfind() [7/7]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::rfind ( const_pointer  s,
size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ search() [1/4]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::search ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

◆ search() [2/4]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::search ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

◆ search() [3/4]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_t daw::sv2::basic_string_view< CharT, BoundsType >::search ( const_pointer  str) const
inlineconstexpr

◆ search() [4/4]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_t daw::sv2::basic_string_view< CharT, BoundsType >::search ( const_pointer  str,
size_type  pos 
) const
inlineconstexpr

◆ search_last() [1/4]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::search_last ( basic_string_view< CharT, Bounds >  v) const
inlineconstexpr

◆ search_last() [2/4]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::search_last ( basic_string_view< CharT, Bounds >  v,
size_type  pos 
) const
inlineconstexpr

◆ search_last() [3/4]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_t daw::sv2::basic_string_view< CharT, BoundsType >::search_last ( const_pointer  str) const
inlineconstexpr

◆ search_last() [4/4]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_t daw::sv2::basic_string_view< CharT, BoundsType >::search_last ( const_pointer  str,
size_type  pos 
) const
inlineconstexpr

◆ size()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type daw::sv2::basic_string_view< CharT, BoundsType >::size ( ) const
inlineconstexpr

Returns the number of CharT elements in the view.

Returns
The number of CharT elements in the view.

◆ starts_with() [1/3]

template<typename CharT , string_view_bounds_type BoundsType>
template<string_view_bounds_type Bounds>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::starts_with ( basic_string_view< CharT, Bounds >  s) const
inlineconstexpr

◆ starts_with() [2/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::starts_with ( CharT  c) const
inlineconstexpr

◆ starts_with() [3/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr bool daw::sv2::basic_string_view< CharT, BoundsType >::starts_with ( const_pointer  s) const
inlineconstexpr

◆ substr() [1/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::substr ( ) const
inlineconstexpr

◆ substr() [2/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::substr ( size_type  pos) const
inlineconstexpr

◆ substr() [3/3]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::substr ( size_type  pos,
size_type  count 
) const
inlineconstexpr

◆ trim()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::trim ( )
inlineconstexprnoexcept

◆ trim_copy()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::trim_copy ( ) const
inlineconstexprnoexcept

◆ trim_prefix()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::trim_prefix ( )
inlineconstexprnoexcept

◆ trim_prefix_copy()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::trim_prefix_copy ( ) const
inlineconstexprnoexcept

◆ trim_suffix()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr void daw::sv2::basic_string_view< CharT, BoundsType >::trim_suffix ( )
inlineconstexprnoexcept

◆ trim_suffix_copy()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::trim_suffix_copy ( ) const
inlineconstexprnoexcept

◆ try_pop_back_until()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::try_pop_back_until ( basic_string_view< CharT, BoundsType >  where)
inlineconstexpr

searches for last where, returns substring between where and end, then pops off the substring and the where string. If where is not found, nothing is done

Parameters
wherestring to split on and remove from back
Returns
substring from end of where string to end of string

◆ try_pop_front_until()

template<typename CharT , string_view_bounds_type BoundsType>
constexpr basic_string_view daw::sv2::basic_string_view< CharT, BoundsType >::try_pop_front_until ( basic_string_view< CharT, BoundsType >  where)
inlineconstexpr

searches for where, returns substring between front and where, then pops off the substring and the where string. Do nothing if where is not found

Parameters
wherestring to split on and remove from front
Returns
substring from beginning to where string

Friends And Related Function Documentation

◆ operator!= [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr friend bool operator!= ( const_pointer  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator!= [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator!= ( StringView &&  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator< [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr friend bool operator< ( const_pointer  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator< [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator< ( StringView &&  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator<= [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr friend bool operator<= ( const_pointer  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator<= [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator<= ( StringView &&  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator== [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr friend bool operator== ( const_pointer  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator== [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator== ( StringView &&  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator> [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr friend bool operator> ( const_pointer  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator> [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator> ( StringView &&  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator>= [1/2]

template<typename CharT , string_view_bounds_type BoundsType>
constexpr friend bool operator>= ( const_pointer  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

◆ operator>= [2/2]

template<typename CharT , string_view_bounds_type BoundsType>
template<typename StringView , DAW_REQ_CONTIG_CHAR_RANGE(StringView, CharT) >
constexpr friend bool operator>= ( StringView &&  lhs,
basic_string_view< CharT, BoundsType >  rhs 
)
friend

Member Data Documentation

◆ npos

template<typename CharT , string_view_bounds_type BoundsType>
constexpr size_type const daw::sv2::basic_string_view< CharT, BoundsType >::npos
staticconstexpr
Initial value:
=
( std::numeric_limits<size_type>::max )( )

The documentation for this struct was generated from the following file: