8#ifndef HPP_ALIB_STRINGS_FORMAT
9#define HPP_ALIB_STRINGS_FORMAT 1
11#if !defined (HPP_ALIB_STRINGS_ASTRING)
15#if ALIB_BOXING && !defined(HPP_ALIB_BOXING_BOXING)
19#if !defined (_GLIBCXX_NUMERIC_LIMITS) && !defined(_LIMITS_)
23namespace alib {
namespace strings {
83template<
typename TChar>
169 #if ALIB_BOXING || defined(ALIB_DOX)
205 TChar fillChar =
' ' )
294 template<
typename TIntegral>
296 int overrideWidth= 0,
300 ,
nf (numberFormat) {}
311 template<
typename TIntegral>
316 ,
nf (numberFormat) {}
353 template<
typename TIntegral>
355 int overrideWidth= 0,
359 ,
nf (numberFormat) {}
369 template<
typename TIntegral>
374 ,
nf (numberFormat) {}
410 template<
typename TIntegral>
412 int overrideWidth= 0,
416 ,
nf (numberFormat) {}
427 template<
typename TIntegral>
432 ,
nf (numberFormat) {}
476 int overrideWidth= 0,
495 template<
typename TInteger, ATMP_T_IF(
int, std::numeric_limits<TInteger>::is_
integer) = 0 >
497 int overrideWidth= 0,
500 ,
width (overrideWidth)
501 ,
valueType( std::numeric_limits<TInteger>::is_signed ? 1 : 2 )
502 {
v.value=
static_cast<int64_t
>(
value); }
504 template<
typename TInteger, ATMP_T_IF(
int, std::numeric_limits<TInteger>::is_
integer) = 0 >
509 ,
valueType( std::numeric_limits<TInteger>::is_signed ? 1 : 2 )
510 {
v.value=
static_cast<int64_t
>(
value); }
513 ||
ATMP_EQ(TInteger,
float ) )= 0 >
515 int overrideWidth= 0,
516 TNumberFormat<TChar>* numberFormat =
nullptr )
518 ,
width (overrideWidth)
520 {
v.fpValue=
static_cast<double>(
value); }
523 ||
ATMP_EQ(TInteger,
float ) )= 0 >
525 TNumberFormat<TChar>* numberFormat =
nullptr )
529 {
v.fpValue=
static_cast<double>(
value); }
544 namespace APPENDABLES {
#define ATMP_EQ( T, TEqual)
#define ATMP_T_IF(T, Cond)
@ On
Switch it on, switched on, etc.
@ Right
Chooses right alignment.
static constexpr integer MAX_LEN
characters::wchar wchar
Type alias in namespace alib.
constexpr CString EmptyString()
characters::xchar xchar
Type alias in namespace alib.
characters::nchar nchar
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.