GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::CStringViewBase< CharT, Traits > Class Template Reference

#include <GREM/core/data/CStringView.hpp>

Public Types

using traits_type = Traits
using value_type = CharT
using pointer = CharT*
using const_pointer = const CharT*
using reference = CharT&
using const_reference = const CharT&
using const_iterator = const_pointer
using iterator = const_iterator
using const_reverse_iterator = std::reverse_iterator<const_iterator>
using reverse_iterator = const_reverse_iterator
using size_type = std::size_t
using difference_type = std::ptrdiff_t
using sentinel = detail::CStringViewSentinel<CharT, Traits>

Public Member Functions

GREM_ALWAYS_INLINE constexpr CStringViewBase () noexcept=default
GREM_ALWAYS_INLINE constexpr CStringViewBase (const CharT *s)
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr CStringViewBase (const StringBase< CharT, Traits, Allocator > &s)
GREM_ALWAYS_INLINE constexpr CStringViewBase (std::nullptr_t)=delete
GREM_ALWAYS_INLINE constexpr operator StringViewBase< CharT, Traits > () const
GREM_ALWAYS_INLINE constexpr const_iterator begin () const noexcept
GREM_ALWAYS_INLINE constexpr const_iterator cbegin () const noexcept
GREM_ALWAYS_INLINE constexpr sentinel end () const noexcept
GREM_ALWAYS_INLINE constexpr sentinel cend () const noexcept
GREM_ALWAYS_INLINE constexpr const_reverse_iterator rbegin () const noexcept
GREM_ALWAYS_INLINE constexpr const_reverse_iterator crbegin () const noexcept
GREM_ALWAYS_INLINE constexpr const_reverse_iterator rend () const noexcept
GREM_ALWAYS_INLINE constexpr const_reverse_iterator crend () const noexcept
GREM_ALWAYS_INLINE constexpr const_reference operator[] (size_type pos) const
GREM_ALWAYS_INLINE constexpr const_reference at (size_type pos) const
GREM_ALWAYS_INLINE constexpr const_reference front () const
GREM_ALWAYS_INLINE constexpr const_reference back () const
GREM_ALWAYS_INLINE constexpr const_pointer data () const noexcept
GREM_ALWAYS_INLINE constexpr const_pointer c_str () const noexcept
GREM_ALWAYS_INLINE constexpr size_type size () const noexcept
GREM_ALWAYS_INLINE constexpr size_type length () const noexcept
GREM_ALWAYS_INLINE constexpr size_type max_size () const noexcept
GREM_ALWAYS_INLINE constexpr bool empty () const noexcept
GREM_ALWAYS_INLINE constexpr void remove_prefix (size_type n)
GREM_ALWAYS_INLINE constexpr void swap (CStringViewBase &v) noexcept
GREM_ALWAYS_INLINE constexpr size_type copy (CharT *dest, size_type count, size_type pos=0) const
GREM_ALWAYS_INLINE constexpr CStringViewBase substr (size_type pos=0) const
GREM_ALWAYS_INLINE constexpr StringViewBase< CharT, Traits > substr (size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr int compare (StringViewBase< CharT, Traits > v) const
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr int compare (const StringBase< CharT, Traits, Allocator > &v) const
GREM_ALWAYS_INLINE constexpr int compare (CStringViewBase v) const noexcept
GREM_ALWAYS_INLINE constexpr int compare (size_type pos1, size_type count1, CStringViewBase v) const
GREM_ALWAYS_INLINE constexpr int compare (size_type pos1, size_type count1, CStringViewBase v, size_type pos2, size_type count2) const
GREM_ALWAYS_INLINE constexpr int compare (const CharT *s) const
GREM_ALWAYS_INLINE constexpr int compare (size_type pos1, size_type count1, const CharT *s) const
GREM_ALWAYS_INLINE constexpr int compare (size_type pos1, size_type count1, const CharT *s, size_type count2) const
GREM_ALWAYS_INLINE constexpr bool starts_with (StringViewBase< CharT, Traits > sv) const noexcept
GREM_ALWAYS_INLINE constexpr bool starts_with (CStringViewBase sv) const noexcept
GREM_ALWAYS_INLINE constexpr bool starts_with (CharT ch) const noexcept
GREM_ALWAYS_INLINE constexpr bool starts_with (const CharT *s) const
GREM_ALWAYS_INLINE constexpr bool ends_with (StringViewBase< CharT, Traits > sv) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr bool ends_with (const StringBase< CharT, Traits, Allocator > &s) const noexcept
GREM_ALWAYS_INLINE constexpr bool ends_with (CStringViewBase sv) const noexcept
GREM_ALWAYS_INLINE constexpr bool ends_with (CharT ch) const noexcept
GREM_ALWAYS_INLINE constexpr bool ends_with (const CharT *s) const
GREM_ALWAYS_INLINE constexpr bool contains (StringViewBase< CharT, Traits > sv) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr bool contains (const StringBase< CharT, Traits, Allocator > &s) const noexcept
GREM_ALWAYS_INLINE constexpr bool contains (CStringViewBase sv) const noexcept
GREM_ALWAYS_INLINE constexpr bool contains (CharT c) const noexcept
GREM_ALWAYS_INLINE constexpr bool contains (const CharT *s) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find (StringViewBase< CharT, Traits > sv, size_type pos=0) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type find (const StringBase< CharT, Traits, Allocator > &s, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find (CStringViewBase sv, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find (CharT ch, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find (const CharT *s, size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr size_type find (const CharT *s, size_type pos=0) const
GREM_ALWAYS_INLINE constexpr size_type rfind (StringViewBase< CharT, Traits > sv, size_type pos=npos) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type rfind (const StringBase< CharT, Traits, Allocator > &s, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type rfind (CStringViewBase sv, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type rfind (CharT ch, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type rfind (const CharT *s, size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr size_type rfind (const CharT *s, size_type pos=npos) const
GREM_ALWAYS_INLINE constexpr size_type find_first_of (StringViewBase< CharT, Traits > v, size_type pos=0) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type find_first_of (const StringBase< CharT, Traits, Allocator > &s, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_first_of (CStringViewBase v, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_first_of (CharT ch, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_first_of (const CharT *s, size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr size_type find_first_of (const CharT *s, size_type pos=0) const
GREM_ALWAYS_INLINE constexpr size_type find_last_of (StringViewBase< CharT, Traits > v, size_type pos=npos) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type find_last_of (const StringBase< CharT, Traits, Allocator > &s, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_last_of (CStringViewBase v, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_last_of (CharT ch, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_last_of (const CharT *s, size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr size_type find_last_of (const CharT *s, size_type pos=npos) const
GREM_ALWAYS_INLINE constexpr size_type find_first_not_of (StringViewBase< CharT, Traits > v, size_type pos=0) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type find_first_not_of (const StringBase< CharT, Traits, Allocator > &s, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_first_not_of (CStringViewBase v, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_first_not_of (CharT ch, size_type pos=0) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_first_not_of (const CharT *s, size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr size_type find_first_not_of (const CharT *s, size_type pos=0) const
GREM_ALWAYS_INLINE constexpr size_type find_last_not_of (StringViewBase< CharT, Traits > v, size_type pos=npos) const noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type find_last_not_of (const StringBase< CharT, Traits, Allocator > &s, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_last_not_of (CStringViewBase v, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_last_not_of (CharT ch, size_type pos=npos) const noexcept
GREM_ALWAYS_INLINE constexpr size_type find_last_not_of (const CharT *s, size_type pos, size_type count) const
GREM_ALWAYS_INLINE constexpr size_type find_last_not_of (const CharT *s, size_type pos=npos) const

Static Public Attributes

static constexpr size_type npos = static_cast<size_type>(-1)

Friends

GREM_ALWAYS_INLINE friend constexpr void swap (CStringViewBase &a, CStringViewBase &b) noexcept
GREM_ALWAYS_INLINE friend std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &stream, CStringViewBase v)
GREM_ALWAYS_INLINE friend constexpr bool operator== (CStringViewBase a, CStringViewBase b) noexcept
GREM_ALWAYS_INLINE friend constexpr bool operator== (CStringViewBase a, StringViewBase< CharT, Traits > b) noexcept
GREM_ALWAYS_INLINE friend constexpr bool operator== (StringViewBase< CharT, Traits > a, CStringViewBase b) noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr bool operator== (CStringViewBase a, const StringBase< CharT, Traits, Allocator > &b) noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr bool operator== (const StringBase< CharT, Traits, Allocator > &a, CStringViewBase b) noexcept
GREM_ALWAYS_INLINE friend constexpr bool operator== (CStringViewBase a, const CharT *b) noexcept
GREM_ALWAYS_INLINE friend constexpr bool operator== (const CharT *a, CStringViewBase b) noexcept
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (CStringViewBase a, CStringViewBase b) noexcept
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (CStringViewBase a, StringViewBase< CharT, Traits > b) noexcept
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (StringViewBase< CharT, Traits > a, CStringViewBase b) noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (CStringViewBase a, const StringBase< CharT, Traits, Allocator > &b) noexcept
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (const StringBase< CharT, Traits, Allocator > &a, CStringViewBase b) noexcept
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (CStringViewBase a, const CharT *b) noexcept
GREM_ALWAYS_INLINE friend constexpr auto operator<=> (const CharT *a, CStringViewBase b) noexcept

Member Typedef Documentation

◆ traits_type

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::traits_type = Traits

◆ value_type

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::value_type = CharT

◆ pointer

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::pointer = CharT*

◆ const_pointer

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::const_pointer = const CharT*

◆ reference

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::reference = CharT&

◆ const_reference

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::const_reference = const CharT&

◆ const_iterator

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::const_iterator = const_pointer

◆ iterator

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::iterator = const_iterator

◆ const_reverse_iterator

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::const_reverse_iterator = std::reverse_iterator<const_iterator>

◆ reverse_iterator

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::reverse_iterator = const_reverse_iterator

◆ size_type

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::size_type = std::size_t

◆ difference_type

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::difference_type = std::ptrdiff_t

◆ sentinel

template<typename CharT, typename Traits = std::char_traits<CharT>>
using grem::CStringViewBase< CharT, Traits >::sentinel = detail::CStringViewSentinel<CharT, Traits>

Constructor & Destructor Documentation

◆ CStringViewBase() [1/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr grem::CStringViewBase< CharT, Traits >::CStringViewBase ( )
constexprdefaultnoexcept

◆ CStringViewBase() [2/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr grem::CStringViewBase< CharT, Traits >::CStringViewBase ( const CharT * s)
inlineconstexpr

◆ CStringViewBase() [3/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr grem::CStringViewBase< CharT, Traits >::CStringViewBase ( const StringBase< CharT, Traits, Allocator > & s)
inlineconstexpr

◆ CStringViewBase() [4/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr grem::CStringViewBase< CharT, Traits >::CStringViewBase ( std::nullptr_t )
constexprdelete

Member Function Documentation

◆ operator StringViewBase< CharT, Traits >()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr grem::CStringViewBase< CharT, Traits >::operator StringViewBase< CharT, Traits > ( ) const
inlineconstexpr

◆ begin()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_iterator grem::CStringViewBase< CharT, Traits >::begin ( ) const
inlinenodiscardconstexprnoexcept

◆ cbegin()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_iterator grem::CStringViewBase< CharT, Traits >::cbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ end()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr sentinel grem::CStringViewBase< CharT, Traits >::end ( ) const
inlinenodiscardconstexprnoexcept

◆ cend()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr sentinel grem::CStringViewBase< CharT, Traits >::cend ( ) const
inlinenodiscardconstexprnoexcept

◆ rbegin()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reverse_iterator grem::CStringViewBase< CharT, Traits >::rbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ crbegin()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reverse_iterator grem::CStringViewBase< CharT, Traits >::crbegin ( ) const
inlinenodiscardconstexprnoexcept

◆ rend()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reverse_iterator grem::CStringViewBase< CharT, Traits >::rend ( ) const
inlinenodiscardconstexprnoexcept

◆ crend()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reverse_iterator grem::CStringViewBase< CharT, Traits >::crend ( ) const
inlinenodiscardconstexprnoexcept

◆ operator[]()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reference grem::CStringViewBase< CharT, Traits >::operator[] ( size_type pos) const
inlinenodiscardconstexpr

◆ at()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reference grem::CStringViewBase< CharT, Traits >::at ( size_type pos) const
inlinenodiscardconstexpr

◆ front()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reference grem::CStringViewBase< CharT, Traits >::front ( ) const
inlinenodiscardconstexpr

◆ back()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_reference grem::CStringViewBase< CharT, Traits >::back ( ) const
inlinenodiscardconstexpr

◆ data()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_pointer grem::CStringViewBase< CharT, Traits >::data ( ) const
inlinenodiscardconstexprnoexcept

◆ c_str()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr const_pointer grem::CStringViewBase< CharT, Traits >::c_str ( ) const
inlinenodiscardconstexprnoexcept

◆ size()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::size ( ) const
inlinenodiscardconstexprnoexcept

◆ length()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::length ( ) const
inlinenodiscardconstexprnoexcept

◆ max_size()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::max_size ( ) const
inlinenodiscardconstexprnoexcept

◆ empty()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::empty ( ) const
inlinenodiscardconstexprnoexcept

◆ remove_prefix()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr void grem::CStringViewBase< CharT, Traits >::remove_prefix ( size_type n)
inlineconstexpr

◆ swap()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr void grem::CStringViewBase< CharT, Traits >::swap ( CStringViewBase< CharT, Traits > & v)
inlineconstexprnoexcept

◆ copy()

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::copy ( CharT * dest,
size_type count,
size_type pos = 0 ) const
inlineconstexpr

◆ substr() [1/2]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr CStringViewBase grem::CStringViewBase< CharT, Traits >::substr ( size_type pos = 0) const
inlinenodiscardconstexpr

◆ substr() [2/2]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr StringViewBase< CharT, Traits > grem::CStringViewBase< CharT, Traits >::substr ( size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ compare() [1/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( StringViewBase< CharT, Traits > v) const
inlinenodiscardconstexpr

◆ compare() [2/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( const StringBase< CharT, Traits, Allocator > & v) const
inlinenodiscardconstexpr

◆ compare() [3/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( CStringViewBase< CharT, Traits > v) const
inlinenodiscardconstexprnoexcept

◆ compare() [4/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( size_type pos1,
size_type count1,
CStringViewBase< CharT, Traits > v ) const
inlinenodiscardconstexpr

◆ compare() [5/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( size_type pos1,
size_type count1,
CStringViewBase< CharT, Traits > v,
size_type pos2,
size_type count2 ) const
inlinenodiscardconstexpr

◆ compare() [6/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( const CharT * s) const
inlinenodiscardconstexpr

◆ compare() [7/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( size_type pos1,
size_type count1,
const CharT * s ) const
inlinenodiscardconstexpr

◆ compare() [8/8]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr int grem::CStringViewBase< CharT, Traits >::compare ( size_type pos1,
size_type count1,
const CharT * s,
size_type count2 ) const
inlinenodiscardconstexpr

◆ starts_with() [1/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::starts_with ( StringViewBase< CharT, Traits > sv) const
inlinenodiscardconstexprnoexcept

◆ starts_with() [2/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::starts_with ( CStringViewBase< CharT, Traits > sv) const
inlinenodiscardconstexprnoexcept

◆ starts_with() [3/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::starts_with ( CharT ch) const
inlinenodiscardconstexprnoexcept

◆ starts_with() [4/4]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::starts_with ( const CharT * s) const
inlinenodiscardconstexpr

◆ ends_with() [1/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::ends_with ( StringViewBase< CharT, Traits > sv) const
inlinenodiscardconstexprnoexcept

◆ ends_with() [2/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::ends_with ( const StringBase< CharT, Traits, Allocator > & s) const
inlinenodiscardconstexprnoexcept

◆ ends_with() [3/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::ends_with ( CStringViewBase< CharT, Traits > sv) const
inlinenodiscardconstexprnoexcept

◆ ends_with() [4/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::ends_with ( CharT ch) const
inlinenodiscardconstexprnoexcept

◆ ends_with() [5/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::ends_with ( const CharT * s) const
inlinenodiscardconstexpr

◆ contains() [1/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::contains ( StringViewBase< CharT, Traits > sv) const
inlinenodiscardconstexprnoexcept

◆ contains() [2/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::contains ( const StringBase< CharT, Traits, Allocator > & s) const
inlinenodiscardconstexprnoexcept

◆ contains() [3/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::contains ( CStringViewBase< CharT, Traits > sv) const
inlinenodiscardconstexprnoexcept

◆ contains() [4/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::contains ( CharT c) const
inlinenodiscardconstexprnoexcept

◆ contains() [5/5]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr bool grem::CStringViewBase< CharT, Traits >::contains ( const CharT * s) const
inlinenodiscardconstexprnoexcept

◆ find() [1/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find ( StringViewBase< CharT, Traits > sv,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find() [2/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find ( const StringBase< CharT, Traits, Allocator > & s,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find() [3/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find ( CStringViewBase< CharT, Traits > sv,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find() [4/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find ( CharT ch,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find() [5/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find ( const CharT * s,
size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ find() [6/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find ( const CharT * s,
size_type pos = 0 ) const
inlinenodiscardconstexpr

◆ rfind() [1/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::rfind ( StringViewBase< CharT, Traits > sv,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ rfind() [2/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::rfind ( const StringBase< CharT, Traits, Allocator > & s,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ rfind() [3/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::rfind ( CStringViewBase< CharT, Traits > sv,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ rfind() [4/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::rfind ( CharT ch,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ rfind() [5/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::rfind ( const CharT * s,
size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ rfind() [6/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::rfind ( const CharT * s,
size_type pos = npos ) const
inlinenodiscardconstexpr

◆ find_first_of() [1/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_of ( StringViewBase< CharT, Traits > v,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_of() [2/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_of ( const StringBase< CharT, Traits, Allocator > & s,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_of() [3/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_of ( CStringViewBase< CharT, Traits > v,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_of() [4/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_of ( CharT ch,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_of() [5/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_of ( const CharT * s,
size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ find_first_of() [6/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_of ( const CharT * s,
size_type pos = 0 ) const
inlinenodiscardconstexpr

◆ find_last_of() [1/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_of ( StringViewBase< CharT, Traits > v,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_of() [2/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_of ( const StringBase< CharT, Traits, Allocator > & s,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_of() [3/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_of ( CStringViewBase< CharT, Traits > v,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_of() [4/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_of ( CharT ch,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_of() [5/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_of ( const CharT * s,
size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ find_last_of() [6/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_of ( const CharT * s,
size_type pos = npos ) const
inlinenodiscardconstexpr

◆ find_first_not_of() [1/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_not_of ( StringViewBase< CharT, Traits > v,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_not_of() [2/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_not_of ( const StringBase< CharT, Traits, Allocator > & s,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_not_of() [3/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_not_of ( CStringViewBase< CharT, Traits > v,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_not_of() [4/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_not_of ( CharT ch,
size_type pos = 0 ) const
inlinenodiscardconstexprnoexcept

◆ find_first_not_of() [5/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_not_of ( const CharT * s,
size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ find_first_not_of() [6/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_first_not_of ( const CharT * s,
size_type pos = 0 ) const
inlinenodiscardconstexpr

◆ find_last_not_of() [1/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_not_of ( StringViewBase< CharT, Traits > v,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_not_of() [2/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_not_of ( const StringBase< CharT, Traits, Allocator > & s,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_not_of() [3/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_not_of ( CStringViewBase< CharT, Traits > v,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_not_of() [4/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_not_of ( CharT ch,
size_type pos = npos ) const
inlinenodiscardconstexprnoexcept

◆ find_last_not_of() [5/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_not_of ( const CharT * s,
size_type pos,
size_type count ) const
inlinenodiscardconstexpr

◆ find_last_not_of() [6/6]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE constexpr size_type grem::CStringViewBase< CharT, Traits >::find_last_not_of ( const CharT * s,
size_type pos = npos ) const
inlinenodiscardconstexpr

◆ swap

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr void swap ( CStringViewBase< CharT, Traits > & a,
CStringViewBase< CharT, Traits > & b )
friend

◆ operator<<

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend std::basic_ostream< CharT, Traits > & operator<< ( std::basic_ostream< CharT, Traits > & stream,
CStringViewBase< CharT, Traits > v )
friend

◆ operator== [1/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( CStringViewBase< CharT, Traits > a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator== [2/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( CStringViewBase< CharT, Traits > a,
StringViewBase< CharT, Traits > b )
friend

◆ operator== [3/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( StringViewBase< CharT, Traits > a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator== [4/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( CStringViewBase< CharT, Traits > a,
const StringBase< CharT, Traits, Allocator > & b )
friend

◆ operator== [5/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( const StringBase< CharT, Traits, Allocator > & a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator== [6/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( CStringViewBase< CharT, Traits > a,
const CharT * b )
friend

◆ operator== [7/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr bool operator== ( const CharT * a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator<=> [1/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( CStringViewBase< CharT, Traits > a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator<=> [2/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( CStringViewBase< CharT, Traits > a,
StringViewBase< CharT, Traits > b )
friend

◆ operator<=> [3/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( StringViewBase< CharT, Traits > a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator<=> [4/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( CStringViewBase< CharT, Traits > a,
const StringBase< CharT, Traits, Allocator > & b )
friend

◆ operator<=> [5/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
template<typename Allocator>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( const StringBase< CharT, Traits, Allocator > & a,
CStringViewBase< CharT, Traits > b )
friend

◆ operator<=> [6/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( CStringViewBase< CharT, Traits > a,
const CharT * b )
friend

◆ operator<=> [7/7]

template<typename CharT, typename Traits = std::char_traits<CharT>>
GREM_ALWAYS_INLINE friend constexpr auto operator<=> ( const CharT * a,
CStringViewBase< CharT, Traits > b )
friend

Member Data Documentation

◆ npos

template<typename CharT, typename Traits = std::char_traits<CharT>>
size_type grem::CStringViewBase< CharT, Traits >::npos = static_cast<size_type>(-1)
staticconstexpr

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