Potato Engine
Hobby Game Engine Project
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
up::string_view Class Reference

Public Types

using value_type = char
 
using iterator = char const *
 
using const_iterator = char const *
 
using pointer = char const *
 
using reference = char const &
 
using size_type = size_t
 

Public Member Functions

constexpr string_view (string_view const &)=default
 
constexpr string_view (pointer zstr) noexcept
 
constexpr string_view (pointer data, size_type size) noexcept
 
constexpr string_viewoperator= (string_view const &)=default
 
constexpr string_viewoperator= (pointer zstr) noexcept
 
constexpr pointer data () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr operator bool () const noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
constexpr value_type front () const noexcept
 
constexpr value_type back () const noexcept
 
constexpr value_type operator[] (size_type index) const noexcept
 
constexpr void pop_front () noexcept
 
constexpr void pop_back () noexcept
 
constexpr void remove_prefix (size_type count) noexcept
 
constexpr void remove_suffix (size_type count) noexcept
 
constexpr string_view first (size_type count) const noexcept
 
constexpr string_view last (size_type count) const noexcept
 
constexpr string_view substr (size_type offset, size_type count=npos) const noexcept
 
constexpr bool starts_with (string_view str) const noexcept
 
constexpr bool ends_with (string_view str) const noexcept
 
constexpr size_type find (value_type ch) const noexcept
 
constexpr size_type find_first_of (string_view chars) const noexcept
 
constexpr size_type find_last_of (string_view chars) const noexcept
 

Static Public Attributes

static constexpr size_type npos = ~size_type{0}
 

Friends

bool constexpr operator== (string_view lhs, string_view rhs) noexcept
 
bool constexpr operator!= (string_view lhs, string_view rhs) noexcept
 
bool constexpr operator< (string_view lhs, string_view rhs) noexcept
 

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