cpp17:: basic_string_view
Summary
Constructors and Destructors |
|
---|---|
basic_string_view()
|
|
basic_string_view(const CharT *s, size_type count)
|
|
basic_string_view(const CharT *s)
|
|
basic_string_view(const std::basic_string< CharT, Traits, Allocator > & s)
|
|
basic_string_view(const basic_string_view & other)
|
|
basic_string_view(basic_string_view &&)
|
|
~basic_string_view()
|
Public types |
|
---|---|
const_iterator
|
usingiterator
|
const_pointer
|
usingconst CharT *
|
const_reference
|
usingconst CharT &
|
const_reverse_iterator
|
usingreverse_iterator
|
difference_type
|
usingstd::ptrdiff_t
|
iterator
|
usingconst_pointer
|
pointer
|
usingCharT *
|
reference
|
usingCharT &
|
reverse_iterator
|
usingstd::reverse_iterator< const_iterator >
|
size_type
|
usingstd::size_t
|
traits_type
|
usingTraits
|
value_type
|
usingCharT
|
Public static attributes |
|
---|---|
npos = static_cast
|
constexpr size_type
|
Public functions |
|
---|---|
at(size_type pos) const
|
constexpr const_reference
|
back() const
|
constexpr const_reference
|
begin() const
|
constexpr iterator
|
cbegin() const
|
constexpr const_iterator
|
cend() const
|
constexpr const_iterator
|
compare(basic_string_view v) const
|
constexpr int
|
compare(size_type pos1, size_type count1, basic_string_view v) const
|
constexpr int
|
compare(size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const
|
constexpr int
|
compare(const CharT *s) const
|
constexpr int
|
compare(size_type pos1, size_type count1, const CharT *s) const
|
constexpr int
|
compare(size_type pos1, size_type count1, const CharT *s, size_type count2) const
|
constexpr int
|
copy(CharT *dest, size_type count, size_type pos) const
|
size_type
|
crbegin() const
|
constexpr const_reverse_iterator
|
crend() const
|
constexpr const_reverse_iterator
|
data() const
|
constexpr const_pointer
|
empty() const
|
constexpr bool
|
end() const
|
constexpr iterator
|
find(basic_string_view v, size_type pos) const noexcept
|
constexpr size_type
|
find(CharT ch, size_type pos) const
|
constexpr size_type
|
find(const CharT *s, size_type pos, size_type count) const
|
constexpr size_type
|
find(const CharT *s, size_type pos) const
|
constexpr size_type
|
find_first_not_of(basic_string_view v, size_type pos) const noexcept
|
constexpr size_type
|
find_first_not_of(CharT c, size_type pos) const noexcept
|
constexpr size_type
|
find_first_not_of(const CharT *s, size_type pos, size_type count) const
|
constexpr size_type
|
find_first_not_of(const CharT *s, size_type pos) const
|
constexpr size_type
|
find_first_of(basic_string_view v, size_type pos) const noexcept
|
constexpr size_type
|
find_first_of(CharT c, size_type pos) const noexcept
|
constexpr size_type
|
find_first_of(const CharT *s, size_type pos, size_type count) const
|
constexpr size_type
|
find_first_of(const CharT *s, size_type pos) const
|
constexpr size_type
|
find_last_not_of(basic_string_view v, size_type pos) const noexcept
|
constexpr size_type
|
find_last_not_of(CharT c, size_type pos) const noexcept
|
constexpr size_type
|
find_last_not_of(const CharT *s, size_type pos, size_type count) const
|
constexpr size_type
|
find_last_not_of(const CharT *s, size_type pos) const
|
constexpr size_type
|
find_last_of(basic_string_view v, size_type pos) const noexcept
|
constexpr size_type
|
find_last_of(CharT c, size_type pos) const noexcept
|
constexpr size_type
|
find_last_of(const CharT *s, size_type pos, size_type count) const
|
constexpr size_type
|
find_last_of(const CharT *s, size_type pos) const
|
constexpr size_type
|
front() const
|
constexpr const_reference
|
length() const
|
constexpr size_type
|
max_size() const
|
constexpr size_type
|
operator=(const basic_string_view & view) noexcept=default
|
constexpr basic_string_view &
|
operator=(basic_string_view &&) noexcept=default
|
constexpr basic_string_view &
|
operator[](size_type pos) const
|
constexpr const_reference
|
rbegin() const
|
constexpr reverse_iterator
|
remove_prefix(size_type n)
|
constexpr void
|
remove_suffix(size_type n)
|
constexpr void
|
rend() const
|
constexpr reverse_iterator
|
rfind(basic_string_view v, size_type pos) const noexcept
|
constexpr size_type
|
rfind(CharT ch, size_type pos) const
|
constexpr size_type
|
rfind(const CharT *s, size_type pos, size_type count) const
|
constexpr size_type
|
rfind(const CharT *s, size_type pos) const
|
constexpr size_type
|
size() const
|
constexpr size_type
|
substr(size_type pos, size_type count) const
|
constexpr basic_string_view
|
swap(basic_string_view & other) noexcept
|
constexpr void
|
Public types
const_iterator
iterator const_iterator
const_pointer
const CharT * const_pointer
const_reference
const CharT & const_reference
const_reverse_iterator
reverse_iterator const_reverse_iterator
difference_type
std::ptrdiff_t difference_type
iterator
const_pointer iterator
pointer
CharT * pointer
reference
CharT & reference
reverse_iterator
std::reverse_iterator< const_iterator > reverse_iterator
size_type
std::size_t size_type
traits_type
Traits traits_type
value_type
CharT value_type
Public static attributes
npos
constexpr size_type npos = static_cast<size_type>(-1)
Public functions
at
constexpr const_reference at( size_type pos ) const
back
constexpr const_reference back() const
basic_string_view
constexpr basic_string_view() noexcept
basic_string_view
constexpr basic_string_view( const CharT *s, size_type count ) noexcept
basic_string_view
constexpr basic_string_view( const CharT *s ) noexcept
basic_string_view
basic_string_view( const std::basic_string< CharT, Traits, Allocator > & s ) noexcept
basic_string_view
constexpr basic_string_view( const basic_string_view & other ) noexcept=default
basic_string_view
basic_string_view( basic_string_view && ) noexcept=default
begin
constexpr iterator begin() const
cbegin
constexpr const_iterator cbegin() const
cend
constexpr const_iterator cend() const
compare
constexpr int compare( basic_string_view v ) const
compare
constexpr int compare( size_type pos1, size_type count1, basic_string_view v ) const
compare
constexpr int compare( size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2 ) const
compare
constexpr int compare( const CharT *s ) const
compare
constexpr int compare( size_type pos1, size_type count1, const CharT *s ) const
compare
constexpr int compare( size_type pos1, size_type count1, const CharT *s, size_type count2 ) const
copy
size_type copy( CharT *dest, size_type count, size_type pos ) const
crbegin
constexpr const_reverse_iterator crbegin() const
crend
constexpr const_reverse_iterator crend() const
data
constexpr const_pointer data() const
empty
constexpr bool empty() const
end
constexpr iterator end() const
find
constexpr size_type find( basic_string_view v, size_type pos ) const noexcept
find
constexpr size_type find( CharT ch, size_type pos ) const
find
constexpr size_type find( const CharT *s, size_type pos, size_type count ) const
find
constexpr size_type find( const CharT *s, size_type pos ) const
find_first_not_of
constexpr size_type find_first_not_of( basic_string_view v, size_type pos ) const noexcept
find_first_not_of
constexpr size_type find_first_not_of( CharT c, size_type pos ) const noexcept
find_first_not_of
constexpr size_type find_first_not_of( const CharT *s, size_type pos, size_type count ) const
find_first_not_of
constexpr size_type find_first_not_of( const CharT *s, size_type pos ) const
find_first_of
constexpr size_type find_first_of( basic_string_view v, size_type pos ) const noexcept
find_first_of
constexpr size_type find_first_of( CharT c, size_type pos ) const noexcept
find_first_of
constexpr size_type find_first_of( const CharT *s, size_type pos, size_type count ) const
find_first_of
constexpr size_type find_first_of( const CharT *s, size_type pos ) const
find_last_not_of
constexpr size_type find_last_not_of( basic_string_view v, size_type pos ) const noexcept
find_last_not_of
constexpr size_type find_last_not_of( CharT c, size_type pos ) const noexcept
find_last_not_of
constexpr size_type find_last_not_of( const CharT *s, size_type pos, size_type count ) const
find_last_not_of
constexpr size_type find_last_not_of( const CharT *s, size_type pos ) const
find_last_of
constexpr size_type find_last_of( basic_string_view v, size_type pos ) const noexcept
find_last_of
constexpr size_type find_last_of( CharT c, size_type pos ) const noexcept
find_last_of
constexpr size_type find_last_of( const CharT *s, size_type pos, size_type count ) const
find_last_of
constexpr size_type find_last_of( const CharT *s, size_type pos ) const
front
constexpr const_reference front() const
length
constexpr size_type length() const
max_size
constexpr size_type max_size() const
operator=
constexpr basic_string_view & operator=( const basic_string_view & view ) noexcept=default
operator=
constexpr basic_string_view & operator=( basic_string_view && ) noexcept=default
operator[]
constexpr const_reference operator[]( size_type pos ) const
rbegin
constexpr reverse_iterator rbegin() const
remove_prefix
constexpr void remove_prefix( size_type n )
remove_suffix
constexpr void remove_suffix( size_type n )
rend
constexpr reverse_iterator rend() const
rfind
constexpr size_type rfind( basic_string_view v, size_type pos ) const noexcept
rfind
constexpr size_type rfind( CharT ch, size_type pos ) const
rfind
constexpr size_type rfind( const CharT *s, size_type pos, size_type count ) const
rfind
constexpr size_type rfind( const CharT *s, size_type pos ) const
size
constexpr size_type size() const
substr
constexpr basic_string_view substr( size_type pos, size_type count ) const
swap
constexpr void swap( basic_string_view & other ) noexcept
~basic_string_view
~basic_string_view()=default