B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Engine::StringEx Class Reference

String class. More...

#include <B2BITS_String.h>

Public Member Functions

StringExappend (BasicString< char > value)
 Appends given value to string.
 
StringExappend (char const *value)
 Appends given value to string.
 
StringExappend (char const *value, std::size_t size)
 Appends given value to string.
 
StringExappend (char value)
 Appends given value to string.
 
StringExappend (std::size_t count, char value)
 Appends given value to string.
 
StringExappend (std::string const &value)
 Appends given value to string.
 
StringExappend (StringEx const &value)
 Appends given value to string.
 
V12_API StringExappend (System::i32 value)
 Appends given value to string.
 
V12_API StringExappend (System::i64 value)
 Appends given value to string.
 
V12_API StringExappend (System::u32 value)
 Appends given value to string.
 
V12_API StringExappend (System::u64 value)
 Appends given value to string.
 
template<int N>
StringExappendStr (char const (&value)[N])
 Appends given value to string.
 
 operator std::string & ()
 Conversion operator.
 
 operator std::string const & () const
 Conversion operator.
 
template<typename T >
StringExoperator+= (T const &v)
 Increment operator.
 
template<int N>
StringExoperator<< (char const (&value)[N])
 Shift operator.
 
template<typename T >
StringExoperator<< (T const &v)
 Shift operator.
 
template<typename T >
StringExoperator= (T const &v)
 Assign operator.
 
BasicString< char > reference () const
 Returns reference to string.
 
StringExreserve (std::size_t size)
 Reserves memory.
 
std::string & str ()
 Returns inner string.
 
std::string const & str () const
 Returns inner string.
 
 StringEx ()
 Default constructor.
 
 StringEx (BasicString< char > src)
 Constructs from BasicString.
 
 StringEx (char const *src)
 Constructs from C string.
 
 StringEx (std::string const &src)
 Constructs from std::string.
 

Detailed Description

String class.

Extends std::string with some methods.

Constructor & Destructor Documentation

◆ StringEx() [1/4]

Engine::StringEx::StringEx ( )
inline

Default constructor.

◆ StringEx() [2/4]

Engine::StringEx::StringEx ( BasicString< char > src)
inline

Constructs from BasicString.

◆ StringEx() [3/4]

Engine::StringEx::StringEx ( std::string const & src)
inline

Constructs from std::string.

◆ StringEx() [4/4]

Engine::StringEx::StringEx ( char const * src)
inline

Constructs from C string.

Member Function Documentation

◆ append() [1/11]

StringEx & Engine::StringEx::append ( BasicString< char > value)
inline

Appends given value to string.

References Engine::MemBlock< T >::data(), and Engine::MemBlock< T >::size().

◆ append() [2/11]

StringEx & Engine::StringEx::append ( char const * value)
inline

Appends given value to string.

◆ append() [3/11]

StringEx & Engine::StringEx::append ( char const * value,
std::size_t size )
inline

Appends given value to string.

References Engine::MemBlock< CharType >::size().

◆ append() [4/11]

StringEx & Engine::StringEx::append ( char value)
inline

Appends given value to string.

◆ append() [5/11]

StringEx & Engine::StringEx::append ( std::size_t count,
char value )
inline

Appends given value to string.

◆ append() [6/11]

StringEx & Engine::StringEx::append ( std::string const & value)
inline

Appends given value to string.

◆ append() [7/11]

StringEx & Engine::StringEx::append ( StringEx const & value)
inline

Appends given value to string.

◆ append() [8/11]

V12_API StringEx & Engine::StringEx::append ( System::i32 value)

Appends given value to string.

◆ append() [9/11]

V12_API StringEx & Engine::StringEx::append ( System::i64 value)

Appends given value to string.

◆ append() [10/11]

V12_API StringEx & Engine::StringEx::append ( System::u32 value)

Appends given value to string.

◆ append() [11/11]

V12_API StringEx & Engine::StringEx::append ( System::u64 value)

Appends given value to string.

◆ appendStr()

template<int N>
StringEx & Engine::StringEx::appendStr ( char const (&) value[N])
inline

Appends given value to string.

◆ operator std::string &()

Engine::StringEx::operator std::string & ( )
inline

Conversion operator.

◆ operator std::string const &()

Engine::StringEx::operator std::string const & ( ) const
inline

Conversion operator.

◆ operator+=()

template<typename T >
StringEx & Engine::StringEx::operator+= ( T const & v)
inline

Increment operator.

◆ operator<<() [1/2]

template<int N>
StringEx & Engine::StringEx::operator<< ( char const (&) value[N])
inline

Shift operator.

◆ operator<<() [2/2]

template<typename T >
StringEx & Engine::StringEx::operator<< ( T const & v)
inline

Shift operator.

◆ operator=()

template<typename T >
StringEx & Engine::StringEx::operator= ( T const & v)
inline

Assign operator.

◆ reference()

BasicString< char > Engine::StringEx::reference ( ) const
inline

Returns reference to string.

◆ reserve()

StringEx & Engine::StringEx::reserve ( std::size_t size)
inline

Reserves memory.

References Engine::MemBlock< CharType >::size().

◆ str() [1/2]

std::string & Engine::StringEx::str ( )
inline

Returns inner string.

◆ str() [2/2]

std::string const & Engine::StringEx::str ( ) const
inline

Returns inner string.