openMSX
Classes | Typedefs | Functions
strCatImpl Namespace Reference

Classes

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

Typedefs

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

Functions

template<std::unsigned_integral T>
FastUnsigned< T > absHelper (T t)
 
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, std::integral 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)
 
std::string to_string (std::integral auto 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

◆ absHelper()

template<std::unsigned_integral T>
FastUnsigned< T > strCatImpl::absHelper ( t)

Definition at line 260 of file strCat.hh.

References t.

Referenced by strCatImpl::ConcatIntegral< T >::ConcatIntegral().

◆ calcTotalSize()

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

Definition at line 510 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 504 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 525 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 518 of file strCat.hh.

References t.

Referenced by copyUnits().

◆ makeConcatUnit() [1/18]

auto strCatImpl::makeConcatUnit ( char *  s)
inline

Definition at line 402 of file strCat.hh.

◆ makeConcatUnit() [2/18]

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

Definition at line 397 of file strCat.hh.

◆ makeConcatUnit() [3/18]

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

Definition at line 490 of file strCat.hh.

References t.

◆ makeConcatUnit() [4/18]

auto strCatImpl::makeConcatUnit ( const ConcatSpaces t)
inline

Definition at line 495 of file strCat.hh.

References t.

◆ makeConcatUnit() [5/18]

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

Definition at line 392 of file strCat.hh.

◆ makeConcatUnit() [6/18]

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

Definition at line 386 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 406 of file strCat.hh.

◆ makeConcatUnit() [8/18]

auto strCatImpl::makeConcatUnit ( int  i)
inline

Definition at line 436 of file strCat.hh.

◆ makeConcatUnit() [9/18]

auto strCatImpl::makeConcatUnit ( long  l)
inline

Definition at line 446 of file strCat.hh.

◆ makeConcatUnit() [10/18]

auto strCatImpl::makeConcatUnit ( long long  l)
inline

Definition at line 456 of file strCat.hh.

◆ makeConcatUnit() [11/18]

auto strCatImpl::makeConcatUnit ( short  s)
inline

Definition at line 426 of file strCat.hh.

◆ makeConcatUnit() [12/18]

auto strCatImpl::makeConcatUnit ( signed char  c)
inline

Definition at line 416 of file strCat.hh.

◆ makeConcatUnit() [13/18]

auto strCatImpl::makeConcatUnit ( unsigned char  c)
inline

Definition at line 421 of file strCat.hh.

◆ makeConcatUnit() [14/18]

auto strCatImpl::makeConcatUnit ( unsigned long  l)
inline

Definition at line 451 of file strCat.hh.

◆ makeConcatUnit() [15/18]

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

Definition at line 461 of file strCat.hh.

◆ makeConcatUnit() [16/18]

auto strCatImpl::makeConcatUnit ( unsigned short  s)
inline

Definition at line 431 of file strCat.hh.

◆ makeConcatUnit() [17/18]

auto strCatImpl::makeConcatUnit ( unsigned  u)
inline

Definition at line 441 of file strCat.hh.

◆ makeConcatUnit() [18/18]

auto strCatImpl::makeConcatUnit ( zstring_view  s)
inline

Definition at line 410 of file strCat.hh.

◆ to_string()

std::string strCatImpl::to_string ( std::integral auto  x)
inline

Definition at line 532 of file strCat.hh.