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

Classes

struct  const_sentinel
 

Public Types

using value_type = char
 
using pointer = char const *
 
using size_type = std::size_t
 
using const_iterator = pointer
 

Public Member Functions

constexpr zstring_view (pointer str) noexcept
 
constexpr zstring_view (std::nullptr_t) noexcept
 
constexpr operator bool () const noexcept
 
constexpr bool empty () const noexcept
 
constexpr size_type size () const noexcept
 
constexpr pointer data () const noexcept
 
constexpr pointer c_str () const noexcept
 
constexpr operator string_view () const noexcept
 
constexpr value_type operator[] (size_type index) const noexcept
 
constexpr zstring_view substr (size_type index) const noexcept
 
constexpr string_view substr (size_type index, size_type count) const noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_sentinel end () const noexcept
 
constexpr value_type front () const noexcept
 
constexpr string_view first (size_type count) 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

constexpr bool operator== (zstring_view lhs, zstring_view rhs) noexcept
 
constexpr bool operator== (zstring_view lhs, pointer rhs) noexcept
 
constexpr bool operator== (pointer lhs, zstring_view rhs) noexcept
 

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