|
|
constexpr | basic_string_view () noexcept |
| | Default constructs a basic_string_view without any content.
|
| |
| constexpr | basic_string_view (const basic_string_view &other) noexcept=default |
| | Constructs a basic_string_view by copying another one. More...
|
| |
| constexpr | basic_string_view (basic_string_view &&other) noexcept=default |
| | Constructs a basic_string_view by moving anothe rone. More...
|
| |
| template<typename Allocator > |
| | basic_string_view (const std::basic_string< CharT, Traits, Allocator > &str) noexcept |
| | Constructs a basic_string_view from a std::basic_string. More...
|
| |
| constexpr | basic_string_view (const char_type *str) noexcept |
| | Constructs a basic_string_view from an ansi-string. More...
|
| |
| constexpr | basic_string_view (const char_type *str, size_type count) noexcept |
| | Constructs a basic_string_view from an ansi string of a given size. More...
|
| |
| basic_string_view & | operator= (const basic_string_view &view)=default |
| | Assigns a basic_string_view from an ansi-string. More...
|
| |
| constexpr size_type | max_size () const noexcept |
| | The largest possible number of char-like objects that can be referred to by a basic_string_view. More...
|
| |
| constexpr bool | empty () const noexcept |
| | Returns whether the basic_string_view is empty (i.e. whether its length is 0). More...
|
| |
| constexpr const char_type * | data () const noexcept |
| | Gets the data of the current basic_string_view. More...
|
| |
| constexpr const_reference | operator[] (size_type pos) const noexcept |
| | Accesses the element at index pos. More...
|
| |
| constexpr const_reference | at (size_type pos) const |
| | Accesses the element at index pos. More...
|
| |
| constexpr const_reference | front () const noexcept |
| | Access the first character of the string. More...
|
| |
| constexpr const_reference | back () const noexcept |
| | References the last character of the string. More...
|
| |
| BPSTD_CPP14_CONSTEXPR void | remove_prefix (size_type n) noexcept |
| | Moves the start of the view forward by n characters. More...
|
| |
| BPSTD_CPP14_CONSTEXPR void | remove_suffix (size_type n) noexcept |
| | Moves the end of the view back by n characters. More...
|
| |
| BPSTD_CPP14_CONSTEXPR void | swap (basic_string_view &v) noexcept |
| | Exchanges the view with that of v. More...
|
| |
| template<typename Allocator > |
| constexpr | operator std::basic_string< CharT, Traits, Allocator > () const |
| | Creates a basic_string with a copy of the content of the current view. More...
|
| |
| BPSTD_CPP14_CONSTEXPR size_type | copy (char_type *dest, size_type count=npos, size_type pos=0) const |
| | Copies the substring [pos, pos + rcount) to the character string pointed to by dest, where rcount is the smaller of count and size() - pos. More...
|
| |
| BPSTD_CPP14_CONSTEXPR basic_string_view | substr (size_t pos=0, size_t len=npos) const |
| | Returns a substring of this viewed string. More...
|
| |
| BPSTD_CPP14_CONSTEXPR int | compare (basic_string_view v) const noexcept |
| | Compares two character sequences. More...
|
| |
| BPSTD_CPP14_CONSTEXPR int | compare (size_type pos, size_type count, basic_string_view v) const |
| | Compares two character sequences. More...
|
| |
| BPSTD_CPP14_CONSTEXPR int | compare (size_type pos1, size_type count1, basic_string_view v, size_type pos2, size_type count2) const |
| | Compares two character sequences. More...
|
| |
| BPSTD_CPP14_CONSTEXPR int | compare (const char_type *s) const |
| | Compares two character sequences. More...
|
| |
| BPSTD_CPP14_CONSTEXPR int | compare (size_type pos, size_type count, const char_type *s) const |
| | Compares two character sequences. More...
|
| |
| BPSTD_CPP14_CONSTEXPR int | compare (size_type pos, size_type count1, const char_type *s, size_type count2) const |
| | Compares two character sequences. More...
|
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find (basic_string_view v, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find (char_type c, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find (const char_type *s, size_type pos, size_type count) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find (const char_type *s, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | rfind (basic_string_view v, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | rfind (char_type c, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | rfind (const char_type *s, size_type pos, size_type count) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | rfind (const char_type *s, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_of (basic_string_view v, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_of (char_type c, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_of (const char_type *s, size_type pos, size_type count) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_of (const char_type *s, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_of (basic_string_view v, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_of (char_type c, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_of (const char_type *s, size_type pos, size_type count) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_of (const char_type *s, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_not_of (basic_string_view v, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_not_of (char_type c, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_not_of (const char_type *s, size_type pos, size_type count) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_first_not_of (const char_type *s, size_type pos=0) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_not_of (basic_string_view v, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_not_of (char_type c, size_type pos=npos) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_not_of (const char_type *s, size_type pos, size_type count) const |
| |
|
BPSTD_CPP14_CONSTEXPR size_type | find_last_not_of (const char_type *s, size_type pos=npos) const |
| |
|
template<typename Allocator > |
| BPSTD_INLINE_VISIBILITY | basic_string_view (const std::basic_string< CharT, Traits, Allocator > &str) noexcept |
| |
|
template<class Allocator > |
| constexpr BPSTD_INLINE_VISIBILITY | operator std::basic_string< CharT, Traits, Allocator > () const |
| |
|
| constexpr size_type | size () const noexcept |
| | Returns the length of the string, in terms of bytes. More...
|
| |
| constexpr size_type | length () const noexcept |
| | Returns the length of the string, in terms of bytes. More...
|
| |
|
| BPSTD_CPP14_CONSTEXPR const_iterator | begin () const noexcept |
| | Retrieves the begin iterator for this basic_string_view. More...
|
| |
| BPSTD_CPP14_CONSTEXPR const_iterator | cbegin () const noexcept |
| | Retrieves the begin iterator for this basic_string_view. More...
|
| |
|
| BPSTD_CPP14_CONSTEXPR const_iterator | end () const noexcept |
| | Retrieves the end iterator for this basic_string_view. More...
|
| |
| BPSTD_CPP14_CONSTEXPR const_iterator | cend () const noexcept |
| | Retrieves the end iterator for this basic_string_view. More...
|
| |
|
| BPSTD_CPP14_CONSTEXPR const_reverse_iterator | rbegin () const noexcept |
| | Retrieves the reverse begin iterator for this basic_string_view. More...
|
| |
| BPSTD_CPP14_CONSTEXPR const_reverse_iterator | rend () const noexcept |
| | Retrieves the reverse begin iterator for this basic_string_view. More...
|
| |
|
| BPSTD_CPP14_CONSTEXPR const_reverse_iterator | crbegin () const noexcept |
| | Retrieves the reverse end iterator for this basic_string_view. More...
|
| |
| BPSTD_CPP14_CONSTEXPR const_reverse_iterator | crend () const noexcept |
| | Retrieves the reverse end iterator for this basic_string_view. More...
|
| |
template<typename CharT, typename Traits = std::char_traits<CharT>>
class bpstd::basic_string_view< CharT, Traits >
A semantic non-owning wrapper around contiguous character sequences.
This class 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.
Definition at line 61 of file string_view.hpp.