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

Public Types

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

Public Member Functions

 string (string const &str)
 
 string (string &&rhs)
 
 string (const_pointer zstr)
 
 string (const_pointer data, size_type size)
 
 string (zstring_view view)
 
 string (string_view view)
 
stringoperator= (string const &)=delete
 
stringoperator= (string &&rhs) noexcept
 
const_pointer c_str () const noexcept
 
const_pointer data () const noexcept
 
size_type size () const noexcept
 
bool empty () const noexcept
 
 operator bool () const noexcept
 
const_iterator begin () const noexcept
 
const_iterator end () const noexcept
 
value_type front () const noexcept
 
value_type back () const noexcept
 
value_type operator[] (size_type index) const noexcept
 
string_view first (size_type count) const noexcept
 
string_view last (size_type count) const noexcept
 
string_view substr (size_type offset, size_type count=npos) const noexcept
 
bool starts_with (string_view str) const noexcept
 
bool ends_with (string_view str) const noexcept
 
size_type find (value_type ch) const noexcept
 
size_type find_first_of (string_view chars) const noexcept
 
size_type find_last_of (string_view chars) const noexcept
 
 operator string_view () const noexcept
 
 operator zstring_view () const noexcept
 
stringassign (const_pointer str, size_type length)
 
stringassign (const_pointer zstr)
 
void reset ()
 
pointer release () noexcept
 
stringswap (string &other) noexcept
 

Static Public Member Functions

static string take_ownership (pointer str, size_type length)
 

Static Public Attributes

static constexpr size_type npos = ~size_type{0}
 

Friends

bool operator== (string const &lhs, string const &rhs) noexcept
 
bool operator== (string const &lhs, const_pointer rhs) noexcept
 
bool operator!= (string const &lhs, string const &rhs) noexcept
 
bool operator< (string const &lhs, string const &rhs) noexcept
 

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