#include <sstring_view.hpp>
|
|
using | value_type = char const |
| |
|
using | traits = std::char_traits< value_type > |
| |
|
using | pointer = value_type * |
| |
|
using | const_pointer = value_type const * |
| |
|
using | reference = value_type & |
| |
|
using | const_reference = value_type const & |
| |
|
using | const_iterator = value_type const * |
| |
| using | iterator = const_iterator |
| | Because sstring_view refers to a constant sequence, iterator and const_iterator are the same type. More...
|
| |
|
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 |
| |
|
|
| sstring_view (PointerType ptr, size_type const size) noexcept |
| |
|
| sstring_view (sstring_view const &)=default |
| |
|
| sstring_view (sstring_view &&) noexcept=default |
| |
|
sstring_view & | operator= (sstring_view const &)=default |
| |
|
sstring_view & | operator= (sstring_view &&) noexcept=default |
| |
|
const_iterator | begin () const noexcept |
| |
|
const_iterator | end () const noexcept |
| |
|
const_iterator | cbegin () const noexcept |
| |
|
const_iterator | cend () const noexcept |
| |
|
const_reverse_iterator | rbegin () const noexcept |
| |
|
const_reverse_iterator | rend () const noexcept |
| |
|
const_reverse_iterator | crbegin () const noexcept |
| |
|
const_reverse_iterator | crend () const noexcept |
| |
|
size_type | size () const noexcept |
| |
|
size_type | length () const noexcept |
| |
|
size_type | max_size () const noexcept |
| |
|
bool | empty () const noexcept |
| |
|
const_reference | operator[] (size_type const pos) const |
| |
|
const_reference | at (size_type const pos) const |
| |
|
const_reference | front () const |
| |
|
const_reference | back () const |
| |
|
const_pointer | data () const noexcept |
| |
|
void | clear () noexcept |
| |
|
void | swap (sstring_view &s) noexcept |
| |
|
| operator std::string () const |
| |
|
template<class Allocator = std::allocator<char>> |
| std::basic_string< char, std::char_traits< char >, Allocator > | to_string (Allocator const &a=Allocator()) const |
| |
| sstring_view< gsl::czstring > | substr (size_type pos=0, size_type const n=npos) const |
| | Returns a view of the substring [pos, pos + rcount), where rcount is the smaller of n and size() - pos. More...
|
| |
|
template<typename StringType > |
| int | compare (StringType const &s) const |
| |
|
size_type | find (value_type ch, size_type pos=0) const noexcept |
| | Finds the first occurrence of ch in this view, starting at position pos.
|
| |
|
|
static constexpr auto const | npos = static_cast<size_type> (-1) |
| |
template<typename PointerType>
class pstore::sstring_view< PointerType >
- Note
- This class implements a subset of the std::string_view methods. Complete the set of members as we need them...
◆ iterator
template<typename PointerType>
Because sstring_view refers to a constant sequence, iterator and const_iterator are the same type.
◆ substr()
template<typename PointerType>
Returns a view of the substring [pos, pos + rcount), where rcount is the smaller of n and size() - pos.
- Parameters
-
| pos | position of the first character |
| n | requested length |
The documentation for this class was generated from the following file: