Potato Engine
Hobby Game Engine Project
Public Types | Public Member Functions | List of all members
up::string_writer Class Reference

Public Types

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

Public Member Functions

 string_writer (size_type capacity)
 
 string_writer (string_writer const &)=delete
 
string_writeroperator= (string_writer const &)=delete
 
bool empty () const noexcept
 
 operator bool () const noexcept
 
size_type size () const noexcept
 
size_type capacity () const
 
const_pointer data () const noexcept
 
const_pointer c_str () const noexcept
 
 operator string_view () const noexcept
 
void write (value_type ch)
 
void write (const_pointer data, size_type length)
 
void write (string_view str)
 
void push_back (value_type ch)
 
void reserve (size_type capacity)
 
span< value_type > acquire (size_type size)
 
void commit (span< value_type const > data)
 
void resize (size_type newSize, value_type fill=' ')
 
void clear ()
 
void reset ()
 
string to_string () const &
 
string to_string () &&
 

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