CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::BasicString< T, CharTraits, RawAllocator > Class Template Reference

Basic string that uses framework's memory allocators. More...

#include <CeresEngine/Foundation/String.hpp>

Inheritance diagram for CeresEngine::BasicString< T, CharTraits, RawAllocator >:
CeresEngine::BasicStringBase< BasicString< T, CharTraits, RawAllocator >, T, CharTraits >

Public Member Functions

 BasicString (const super &other)
 Creates a new BasicString from a std::basic_string.
 
 BasicString (super &&other)
 Creates a new BasicString from a std::basic_string.
 
 BasicString (const BasicString &str)=default
 
 BasicString (BasicString &&str) noexcept=default
 
BasicStringoperator= (const BasicString &str)=default
 
BasicStringoperator= (BasicString &&str)=default
 
 operator const super & () const
 Converts a BasicString into the underlying std::basic_string.
 
 operator super & ()
 Converts a BasicString into the underlying std::basic_string.
 
- Public Member Functions inherited from CeresEngine::BasicStringBase< BasicString< T, CharTraits, RawAllocator >, T, CharTraits >
bool contains (const BasicStringView< T, CharTraits > &text) const
 
void split (const StringViewType delimiter, Func &&func, bool skipEmpty=false) const
 
void split (const T delimiter, Func &&func) const
 
to (Args &&... args) const
 Converts the string into it's object representation.
 

Static Public Member Functions

template<typename U , typename... Args>
static decltype(autofrom (U value, Args &&... args)
 Converts a value into it's string representation.
 

Private Types

using super = std::basic_string< T, CharTraits, StdAllocator< T, RawAllocator > >
 

Detailed Description

template<typename T, typename CharTraits, typename RawAllocator>
class CeresEngine::BasicString< T, CharTraits, RawAllocator >

Basic string that uses framework's memory allocators.

Member Typedef Documentation

◆ super

Constructor & Destructor Documentation

◆ BasicString() [1/4]

Creates a new BasicString from a std::basic_string.

◆ BasicString() [2/4]

CeresEngine::BasicString< T, CharTraits, RawAllocator >::BasicString ( super &&  other)
inline

Creates a new BasicString from a std::basic_string.

◆ BasicString() [3/4]

◆ BasicString() [4/4]

Member Function Documentation

◆ from()

template<typename U , typename... Args>
decltype(auto) CeresEngine::BasicString< T, CharTraits, RawAllocator >::from ( U  value,
Args &&...  args 
)
static

Converts a value into it's string representation.

The conversion is performed using StringConverter.

◆ operator const super &()

Converts a BasicString into the underlying std::basic_string.

◆ operator super &()

Converts a BasicString into the underlying std::basic_string.

◆ operator=() [1/2]

◆ operator=() [2/2]


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