|
| 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_view & | remove_prefix_until (basic_string_view where) |
| | searches for where, and disregards everything until the end of that More...
|
| |
| constexpr basic_string_view & | remove_prefix_until (basic_string_view where, nodiscard_t) |
| | searches for where, and disregards everything prior to where More...
|
| |
| constexpr basic_string_view & | remove_prefix_until (CharT where) |
| | searches for where, and disregards everything until the end of that More...
|
| |
| constexpr basic_string_view & | remove_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_view & | remove_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_view & | remove_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...
|
| |