openMSX
Classes | Typedefs | Functions
strCatImpl Namespace Reference

Classes

struct  ConcatUnit
 
struct  ConcatViaString
 
struct  ConcatUnit< std::string_view >
 
struct  ConcatUnit< char >
 
struct  ConcatUnit< bool >
 
struct  FastUnsignedImpl
 
struct  FastUnsignedImpl< long >
 
struct  FastUnsignedImpl< unsigned long >
 
struct  FastUnsignedImpl< long long >
 
struct  FastUnsignedImpl< unsigned long long >
 
struct  AbsHelper
 
struct  AbsHelper< true >
 
struct  AbsHelper< false >
 
struct  PutSignHelper
 
struct  PutSignHelper< true >
 
struct  PutSignHelper< false >
 
struct  ConcatIntegral
 
struct  ConcatFixedWidthHexIntegral
 
struct  ConcatSpaces
 

Typedefs

template<typename T >
using FastUnsigned = typename FastUnsignedImpl< T >::type
 

Functions

template<typename T >
auto makeConcatUnit (const T &t)
 
auto makeConcatUnit (const std::string &s)
 
auto makeConcatUnit (const char *s)
 
auto makeConcatUnit (char *s)
 
auto makeConcatUnit (const TemporaryString &s)
 
auto makeConcatUnit (zstring_view s)
 
auto makeConcatUnit (signed char c)
 
auto makeConcatUnit (unsigned char c)
 
auto makeConcatUnit (short s)
 
auto makeConcatUnit (unsigned short s)
 
auto makeConcatUnit (int i)
 
auto makeConcatUnit (unsigned u)
 
auto makeConcatUnit (long l)
 
auto makeConcatUnit (unsigned long l)
 
auto makeConcatUnit (long long l)
 
auto makeConcatUnit (unsigned long long l)
 
template<size_t N, typename T >
auto makeConcatUnit (const ConcatFixedWidthHexIntegral< N, T > &t)
 
auto makeConcatUnit (const ConcatSpaces &t)
 
template<typename Tuple , size_t... Is>
size_t calcTotalSizeHelper (const Tuple &t, std::index_sequence< Is... >)
 
template<typename... Ts>
size_t calcTotalSize (const std::tuple< Ts... > &t)
 
template<typename Tuple , size_t... Is>
void copyUnitsHelper (char *dst, const Tuple &t, std::index_sequence< Is... >)
 
template<typename... Ts>
void copyUnits (char *dst, const std::tuple< Ts... > &t)
 
template<typename T >
std::string to_string (T x)
 

Typedef Documentation

◆ FastUnsigned

template<typename T >
using strCatImpl::FastUnsigned = typedef typename FastUnsignedImpl<T>::type

Definition at line 255 of file strCat.hh.

Function Documentation

◆ calcTotalSize()

template<typename... Ts>
size_t strCatImpl::calcTotalSize ( const std::tuple< Ts... > &  t)

Definition at line 558 of file strCat.hh.

References calcTotalSizeHelper(), and t.

Referenced by strAppend(), strCat(), and tmpStrCat().

◆ calcTotalSizeHelper()

template<typename Tuple , size_t... Is>
size_t strCatImpl::calcTotalSizeHelper ( const Tuple &  t,
std::index_sequence< Is... >   
)

Definition at line 552 of file strCat.hh.

References utf8::unchecked::size(), and t.

Referenced by calcTotalSize().

◆ copyUnits()

template<typename... Ts>
void strCatImpl::copyUnits ( char *  dst,
const std::tuple< Ts... > &  t 
)

Definition at line 573 of file strCat.hh.

References copyUnitsHelper(), and t.

Referenced by strAppend(), strCat(), and tmpStrCat().

◆ copyUnitsHelper()

template<typename Tuple , size_t... Is>
void strCatImpl::copyUnitsHelper ( char *  dst,
const Tuple &  t,
std::index_sequence< Is... >   
)

Definition at line 566 of file strCat.hh.

References t.

Referenced by copyUnits().

◆ makeConcatUnit() [1/18]

auto strCatImpl::makeConcatUnit ( char *  s)
inline

Definition at line 450 of file strCat.hh.

◆ makeConcatUnit() [2/18]

auto strCatImpl::makeConcatUnit ( const char *  s)
inline

Definition at line 445 of file strCat.hh.

◆ makeConcatUnit() [3/18]

template<size_t N, typename T >
auto strCatImpl::makeConcatUnit ( const ConcatFixedWidthHexIntegral< N, T > &  t)
inline

Definition at line 538 of file strCat.hh.

References t.

◆ makeConcatUnit() [4/18]

auto strCatImpl::makeConcatUnit ( const ConcatSpaces t)
inline

Definition at line 543 of file strCat.hh.

References t.

◆ makeConcatUnit() [5/18]

auto strCatImpl::makeConcatUnit ( const std::string &  s)
inline

Definition at line 440 of file strCat.hh.

◆ makeConcatUnit() [6/18]

template<typename T >
auto strCatImpl::makeConcatUnit ( const T &  t)
inline

Definition at line 434 of file strCat.hh.

References t.

Referenced by strAppend(), strCat(), and tmpStrCat().

◆ makeConcatUnit() [7/18]

auto strCatImpl::makeConcatUnit ( const TemporaryString s)
inline

Definition at line 454 of file strCat.hh.

◆ makeConcatUnit() [8/18]

auto strCatImpl::makeConcatUnit ( int  i)
inline

Definition at line 484 of file strCat.hh.

◆ makeConcatUnit() [9/18]

auto strCatImpl::makeConcatUnit ( long  l)
inline

Definition at line 494 of file strCat.hh.

◆ makeConcatUnit() [10/18]

auto strCatImpl::makeConcatUnit ( long long  l)
inline

Definition at line 504 of file strCat.hh.

◆ makeConcatUnit() [11/18]

auto strCatImpl::makeConcatUnit ( short  s)
inline

Definition at line 474 of file strCat.hh.

◆ makeConcatUnit() [12/18]

auto strCatImpl::makeConcatUnit ( signed char  c)
inline

Definition at line 464 of file strCat.hh.

◆ makeConcatUnit() [13/18]

auto strCatImpl::makeConcatUnit ( unsigned char  c)
inline

Definition at line 469 of file strCat.hh.

◆ makeConcatUnit() [14/18]

auto strCatImpl::makeConcatUnit ( unsigned long  l)
inline

Definition at line 499 of file strCat.hh.

◆ makeConcatUnit() [15/18]

auto strCatImpl::makeConcatUnit ( unsigned long long  l)
inline

Definition at line 509 of file strCat.hh.

◆ makeConcatUnit() [16/18]

auto strCatImpl::makeConcatUnit ( unsigned short  s)
inline

Definition at line 479 of file strCat.hh.

◆ makeConcatUnit() [17/18]

auto strCatImpl::makeConcatUnit ( unsigned  u)
inline

Definition at line 489 of file strCat.hh.

◆ makeConcatUnit() [18/18]

auto strCatImpl::makeConcatUnit ( zstring_view  s)
inline

Definition at line 458 of file strCat.hh.

◆ to_string()

template<typename T >
std::string strCatImpl::to_string ( x)
inline

Definition at line 581 of file strCat.hh.

References openmsx::x.

Referenced by strCat().