neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::i_string Class Referenceabstract

#include <i_string.hpp>

Inheritance diagram for neolib::i_string:
neolib::i_contiguous_random_access_container< char > neolib::i_random_access_container< T > neolib::i_sequence_container< T, i_random_access_const_iterator< T >, i_random_access_iterator< T > > neolib::i_container< T, ConstIteratorType, IteratorType > neolib::i_reference_counted neolib::reference_counted< i_string > neolib::string neogfx::translatable_string

Public Types

typedef self_type abstract_type
 
- Public Types inherited from neolib::i_contiguous_random_access_container< char >
typedef self_type abstract_type
 
typedef offset_iterator< const value_typeconst_iterator
 
typedef offset_iterator< value_typeiterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
- Public Types inherited from neolib::i_random_access_container< T >
typedef self_type abstract_type
 
- Public Types inherited from neolib::i_sequence_container< T, i_random_access_const_iterator< T >, i_random_access_iterator< T > >
typedef self_type abstract_type
 
typedef T value_type
 
typedef size_t size_type
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef i_random_access_const_iterator< T > abstract_const_iterator
 
typedef i_random_access_iterator< T > abstract_iterator
 
- Public Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef T value_type
 
typedef size_t size_type
 
typedef ConstIteratorType abstract_const_iterator
 
typedef IteratorType abstract_iterator
 
typedef abstract_const_iterator::iterator_wrapper const_iterator
 
typedef abstract_iterator::iterator_wrapper iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 

Public Member Functions

virtual i_stringoperator= (const i_string &aOther)=0
 
virtual const value_typec_str () const noexcept=0
 
virtual void assign (const i_string &aOther)=0
 
virtual void assign (const value_type *aSource, size_type aSourceLength)=0
 
virtual void append (const i_string &aOther)=0
 
virtual void append (const value_type *aSource, size_type aSourceLength)=0
 
virtual void replace_all (const i_string &aSearch, const i_string &aReplace)=0
 
 operator std::string () const
 
i_stringoperator= (const std::string &aOther)
 
size_type length () const
 
void assign (const std::string &aSource)
 
void assign (const std::string_view &aSource)
 
void append (const std::string &aSource)
 
void append (const std::string_view &aSource)
 
std::string to_std_string () const
 
std::string_view to_std_string_view () const noexcept
 
- Public Member Functions inherited from neolib::i_contiguous_random_access_container< char >
virtual const value_typecdata () const noexcept=0
 
virtual const value_typedata () const noexcept=0
 
virtual value_typedata () noexcept=0
 
virtual const value_typeat (size_type aIndex) const=0
 
virtual value_typeat (size_type aIndex)=0
 
virtual const value_typeoperator[] (size_type aIndex) const=0
 
virtual value_typeoperator[] (size_type aIndex)=0
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crend () const
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
iterator insert (const const_iterator &aPosition, const value_type &aValue)
 
iterator erase (const const_iterator &aPosition)
 
- Public Member Functions inherited from neolib::i_sequence_container< T, i_random_access_const_iterator< T >, i_random_access_iterator< T > >
virtual size_type capacity () const=0
 
virtual void reserve (size_type aCapacity)=0
 
virtual void resize (size_type aSize)=0
 
virtual void resize (size_type aSize, const value_type &aValue)=0
 
iterator insert (const abstract_iterator &aPosition, const value_type &aValue)
 
iterator insert (const abstract_const_iterator &aPosition, const value_type &aValue)
 
virtual void push_back (const value_type &aValue)=0
 
virtual void pop_back ()=0
 
virtual const value_typefront () const=0
 
virtual value_typefront ()=0
 
virtual const value_typeback () const=0
 
virtual value_typeback ()=0
 
- Public Member Functions inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
virtual size_type size () const noexcept=0
 
virtual size_type max_size () const noexcept=0
 
bool empty () const noexcept
 
const_iterator cbegin () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator cend () const
 
const_iterator end () const
 
iterator end ()
 
const_reverse_iterator crbegin () const
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator crend () const
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
iterator erase (const abstract_iterator &aPosition)
 
iterator erase (const abstract_const_iterator &aPosition)
 
iterator erase (const abstract_iterator &aFirst, const abstract_iterator &aLast)
 
iterator erase (const abstract_const_iterator &aFirst, const abstract_const_iterator &aLast)
 
virtual void clear ()=0
 
virtual void assign (const i_container &aRhs)=0
 
i_containeroperator= (const i_container &aRhs)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 

Additional Inherited Members

- Protected Types inherited from neolib::i_container< T, ConstIteratorType, IteratorType >
typedef i_container< T, ConstIteratorType, IteratorTypegeneric_container_type
 

Detailed Description

Definition at line 48 of file i_string.hpp.

Member Typedef Documentation

◆ abstract_type

Member Function Documentation

◆ append() [1/4]

virtual void neolib::i_string::append ( const i_string aOther)
pure virtual

Implemented in neolib::string, and neolib::string.

◆ append() [2/4]

void neolib::i_string::append ( const std::string &  aSource)
inline

Definition at line 73 of file i_string.hpp.

◆ append() [3/4]

void neolib::i_string::append ( const std::string_view &  aSource)
inline

Definition at line 74 of file i_string.hpp.

◆ append() [4/4]

virtual void neolib::i_string::append ( const value_type aSource,
size_type  aSourceLength 
)
pure virtual

◆ assign() [1/4]

virtual void neolib::i_string::assign ( const i_string aOther)
pure virtual

Implemented in neolib::string, and neolib::string.

◆ assign() [2/4]

void neolib::i_string::assign ( const std::string &  aSource)
inline

Definition at line 71 of file i_string.hpp.

◆ assign() [3/4]

void neolib::i_string::assign ( const std::string_view &  aSource)
inline

Definition at line 72 of file i_string.hpp.

◆ assign() [4/4]

virtual void neolib::i_string::assign ( const value_type aSource,
size_type  aSourceLength 
)
pure virtual

◆ c_str()

virtual const value_type * neolib::i_string::c_str ( ) const
pure virtualnoexcept

Implemented in neolib::string.

◆ length()

size_type neolib::i_string::length ( ) const
inline

Definition at line 70 of file i_string.hpp.

◆ operator std::string()

neolib::i_string::operator std::string ( ) const
inline

Definition at line 68 of file i_string.hpp.

◆ operator=() [1/2]

virtual i_string & neolib::i_string::operator= ( const i_string aOther)
pure virtual

Implemented in neolib::string.

◆ operator=() [2/2]

i_string & neolib::i_string::operator= ( const std::string &  aOther)
inline

Definition at line 69 of file i_string.hpp.

◆ replace_all()

virtual void neolib::i_string::replace_all ( const i_string aSearch,
const i_string aReplace 
)
pure virtual

Implemented in neolib::string.

◆ to_std_string()

std::string neolib::i_string::to_std_string ( ) const
inline

Definition at line 75 of file i_string.hpp.

◆ to_std_string_view()

std::string_view neolib::i_string::to_std_string_view ( ) const
inlinenoexcept

Definition at line 76 of file i_string.hpp.


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