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  ConcatIntegral
 
struct  ConcatFixedWidthHexIntegral
 
struct  ConcatSpaces
 

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 517 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 511 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 532 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 525 of file strCat.hh.

References t.

Referenced by copyUnits().

◆ makeConcatUnit() [1/18]

auto strCatImpl::makeConcatUnit ( char *  s)
inline

Definition at line 409 of file strCat.hh.

◆ makeConcatUnit() [2/18]

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

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

References t.

◆ makeConcatUnit() [4/18]

auto strCatImpl::makeConcatUnit ( const ConcatSpaces t)
inline

Definition at line 502 of file strCat.hh.

References t.

◆ makeConcatUnit() [5/18]

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

Definition at line 399 of file strCat.hh.

◆ makeConcatUnit() [6/18]

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

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

◆ makeConcatUnit() [8/18]

auto strCatImpl::makeConcatUnit ( int  i)
inline

Definition at line 443 of file strCat.hh.

◆ makeConcatUnit() [9/18]

auto strCatImpl::makeConcatUnit ( long  l)
inline

Definition at line 453 of file strCat.hh.

◆ makeConcatUnit() [10/18]

auto strCatImpl::makeConcatUnit ( long long  l)
inline

Definition at line 463 of file strCat.hh.

◆ makeConcatUnit() [11/18]

auto strCatImpl::makeConcatUnit ( short  s)
inline

Definition at line 433 of file strCat.hh.

◆ makeConcatUnit() [12/18]

auto strCatImpl::makeConcatUnit ( signed char  c)
inline

Definition at line 423 of file strCat.hh.

◆ makeConcatUnit() [13/18]

auto strCatImpl::makeConcatUnit ( unsigned char  c)
inline

Definition at line 428 of file strCat.hh.

◆ makeConcatUnit() [14/18]

auto strCatImpl::makeConcatUnit ( unsigned long  l)
inline

Definition at line 458 of file strCat.hh.

◆ makeConcatUnit() [15/18]

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

Definition at line 468 of file strCat.hh.

◆ makeConcatUnit() [16/18]

auto strCatImpl::makeConcatUnit ( unsigned short  s)
inline

Definition at line 438 of file strCat.hh.

◆ makeConcatUnit() [17/18]

auto strCatImpl::makeConcatUnit ( unsigned  u)
inline

Definition at line 448 of file strCat.hh.

◆ makeConcatUnit() [18/18]

auto strCatImpl::makeConcatUnit ( zstring_view  s)
inline

Definition at line 417 of file strCat.hh.

◆ to_string()

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

Definition at line 539 of file strCat.hh.

References openmsx::x.

Referenced by strCat().