libstdc++
|
#include <>>
Public Types | |
using | const_iterator = const value_type * |
using | const_pointer = const value_type * |
using | const_reference = const value_type & |
using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
using | difference_type = ptrdiff_t |
using | iterator = const_iterator |
using | pointer = value_type * |
using | reference = value_type & |
using | reverse_iterator = const_reverse_iterator |
using | size_type = size_t |
using | traits_type = _Traits |
using | value_type = _CharT |
Public Member Functions | |
template<contiguous_iterator _It, sized_sentinel_for< _It > _End> requires same_as<iter_value_t<_It>, _CharT> && (!convertible_to<_End, size_type>) | |
constexpr | basic_string_view (_It __first, _End __last) noexcept(noexcept(__last - __first)) |
constexpr | basic_string_view (const _CharT *__str) noexcept |
constexpr | basic_string_view (const _CharT *__str, size_type __len) noexcept |
constexpr | basic_string_view (const basic_string_view &) noexcept=default |
constexpr const_reference | at (size_type __pos) const |
constexpr const_reference | back () const noexcept |
constexpr const_iterator | begin () const noexcept |
constexpr const_iterator | cbegin () const noexcept |
constexpr const_iterator | cend () const noexcept |
constexpr int | compare (basic_string_view __str) const noexcept |
constexpr int | compare (const _CharT *__str) const noexcept |
constexpr int | compare (size_type __pos1, size_type __n1, basic_string_view __str) const |
constexpr int | compare (size_type __pos1, size_type __n1, basic_string_view __str, size_type __pos2, size_type __n2) const |
constexpr int | compare (size_type __pos1, size_type __n1, const _CharT *__str) const |
constexpr int | compare (size_type __pos1, size_type __n1, const _CharT *__str, size_type __n2) const noexcept(false) |
constexpr size_type | copy (_CharT *__str, size_type __n, size_type __pos=0) const |
constexpr const_reverse_iterator | crbegin () const noexcept |
constexpr const_reverse_iterator | crend () const noexcept |
constexpr const_pointer | data () const noexcept |
constexpr bool | empty () const noexcept |
constexpr const_iterator | end () const noexcept |
constexpr bool | ends_with (_CharT __x) const noexcept |
constexpr bool | ends_with (basic_string_view __x) const noexcept |
constexpr bool | ends_with (const _CharT *__x) const noexcept |
constexpr size_type | find (_CharT __c, size_type __pos=0) const noexcept |
constexpr size_type | find (basic_string_view __str, size_type __pos=0) const noexcept |
constexpr size_type | find (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
constexpr size_type | find (const _CharT *__str, size_type __pos=0) const noexcept |
constexpr size_type | find_first_not_of (_CharT __c, size_type __pos=0) const noexcept |
constexpr size_type | find_first_not_of (basic_string_view __str, size_type __pos=0) const noexcept |
constexpr size_type | find_first_not_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
constexpr size_type | find_first_not_of (const _CharT *__str, size_type __pos=0) const noexcept |
constexpr size_type | find_first_of (_CharT __c, size_type __pos=0) const noexcept |
constexpr size_type | find_first_of (basic_string_view __str, size_type __pos=0) const noexcept |
constexpr size_type | find_first_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
constexpr size_type | find_first_of (const _CharT *__str, size_type __pos=0) const noexcept |
constexpr size_type | find_last_not_of (_CharT __c, size_type __pos=npos) const noexcept |
constexpr size_type | find_last_not_of (basic_string_view __str, size_type __pos=npos) const noexcept |
constexpr size_type | find_last_not_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
constexpr size_type | find_last_not_of (const _CharT *__str, size_type __pos=npos) const noexcept |
constexpr size_type | find_last_of (_CharT __c, size_type __pos=npos) const noexcept |
constexpr size_type | find_last_of (basic_string_view __str, size_type __pos=npos) const noexcept |
constexpr size_type | find_last_of (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
constexpr size_type | find_last_of (const _CharT *__str, size_type __pos=npos) const noexcept |
constexpr const_reference | front () const noexcept |
constexpr size_type | length () const noexcept |
constexpr size_type | max_size () const noexcept |
constexpr basic_string_view & | operator= (const basic_string_view &) noexcept=default |
constexpr const_reference | operator[] (size_type __pos) const noexcept |
constexpr const_reverse_iterator | rbegin () const noexcept |
constexpr void | remove_prefix (size_type __n) noexcept |
constexpr void | remove_suffix (size_type __n) noexcept |
constexpr const_reverse_iterator | rend () const noexcept |
constexpr size_type | rfind (_CharT __c, size_type __pos=npos) const noexcept |
constexpr size_type | rfind (basic_string_view __str, size_type __pos=npos) const noexcept |
constexpr size_type | rfind (const _CharT *__str, size_type __pos, size_type __n) const noexcept |
constexpr size_type | rfind (const _CharT *__str, size_type __pos=npos) const noexcept |
constexpr size_type | size () const noexcept |
constexpr bool | starts_with (_CharT __x) const noexcept |
constexpr bool | starts_with (basic_string_view __x) const noexcept |
constexpr bool | starts_with (const _CharT *__x) const noexcept |
constexpr basic_string_view | substr (size_type __pos=0, size_type __n=npos) const noexcept(false) |
constexpr void | swap (basic_string_view &__sv) noexcept |
Static Public Attributes | |
static constexpr size_type | npos |
A non-owning reference to a string.
_CharT | Type of character |
_Traits | Traits for character type, defaults to char_traits<_CharT>. |
A basic_string_view looks like this:
Definition at line 100 of file string_view.
using std::basic_string_view< _CharT, _Traits >::const_iterator = const value_type* |
Definition at line 115 of file string_view.
using std::basic_string_view< _CharT, _Traits >::const_pointer = const value_type* |
Definition at line 112 of file string_view.
using std::basic_string_view< _CharT, _Traits >::const_reference = const value_type& |
Definition at line 114 of file string_view.
using std::basic_string_view< _CharT, _Traits >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 117 of file string_view.
using std::basic_string_view< _CharT, _Traits >::difference_type = ptrdiff_t |
Definition at line 120 of file string_view.
using std::basic_string_view< _CharT, _Traits >::iterator = const_iterator |
Definition at line 116 of file string_view.
using std::basic_string_view< _CharT, _Traits >::pointer = value_type* |
Definition at line 111 of file string_view.
using std::basic_string_view< _CharT, _Traits >::reference = value_type& |
Definition at line 113 of file string_view.
using std::basic_string_view< _CharT, _Traits >::reverse_iterator = const_reverse_iterator |
Definition at line 118 of file string_view.
using std::basic_string_view< _CharT, _Traits >::size_type = size_t |
Definition at line 119 of file string_view.
using std::basic_string_view< _CharT, _Traits >::traits_type = _Traits |
Definition at line 109 of file string_view.
using std::basic_string_view< _CharT, _Traits >::value_type = _CharT |
Definition at line 110 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 126 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 134 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 140 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 149 of file string_view.
|
inlineconstexpr |
Definition at line 258 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 277 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 183 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 193 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 198 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 336 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 360 of file string_view.
|
inlineconstexpr |
Definition at line 347 of file string_view.
|
inlineconstexpr |
Definition at line 352 of file string_view.
|
inlineconstexpr |
Definition at line 365 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 370 of file string_view.
|
inlineconstexpr |
Definition at line 314 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 213 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 218 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 285 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 243 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 188 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 406 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 396 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 411 of file string_view.
|
constexprnoexcept |
Definition at line 80 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 437 of file string_view.
|
constexprnoexcept |
Definition at line 47 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 450 of file string_view.
|
constexprnoexcept |
Definition at line 185 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 514 of file string_view.
|
constexprnoexcept |
Definition at line 172 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 529 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 478 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 473 of file string_view.
|
constexprnoexcept |
Definition at line 133 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 488 of file string_view.
|
constexprnoexcept |
Definition at line 218 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 537 of file string_view.
|
constexprnoexcept |
Definition at line 196 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 552 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 499 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 493 of file string_view.
|
constexprnoexcept |
Definition at line 150 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 509 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 269 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 230 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 235 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 250 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 203 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 291 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 299 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 208 of file string_view.
|
constexprnoexcept |
Definition at line 116 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 455 of file string_view.
|
constexprnoexcept |
Definition at line 96 of file bits/string_view.tcc.
|
inlineconstexprnoexcept |
Definition at line 468 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 225 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 386 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 381 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 391 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 327 of file string_view.
|
inlineconstexprnoexcept |
Definition at line 303 of file string_view.
|
staticconstexpr |
Definition at line 121 of file string_view.