48template<
typename TChar>
78 template<
typename TIntegral>
79 requires std::integral<TIntegral>
84 ,
width (overrideWidth)
85 ,
valueType( std::numeric_limits<TIntegral>::is_signed ? 1 : 2 )
86 {
v.value= int64_t(
value); }
96 template<
typename TIntegral>
97 requires std::integral<TIntegral>
102 ,
valueType( std::numeric_limits<TIntegral>::is_signed ? 1 : 2 )
103 {
v.value= int64_t(
value); }
115 template<
typename TFloat>
116 requires std::floating_point<TFloat>
118 int overrideWidth= 0,
121 ,
width (overrideWidth)
131 template<
typename TFloat>
132 requires std::floating_point<TFloat>
154template<
typename TChar>
189template<
typename TChar>
198 TField(
const TString<TChar>& content,
201 TChar fillChar =
' ' )
224template<
typename TChar>
261template<
typename TChar>
283 template<
typename TIntegral>
285 int overrideWidth= 0,
289 ,
nf (numberFormat) {}
298 template<
typename TIntegral>
302 ,
nf (numberFormat) {}
316template<
typename TChar>
337 template<
typename TIntegral>
341 ,
nf (numberFormat) {}
349 template<
typename TIntegral>
353 ,
nf (numberFormat) {}
366template<
typename TChar>
387 template<
typename TIntegral>
391 ,
nf (numberFormat) {}
400 template<
typename TIntegral>
404 ,
nf (numberFormat) {}
412template<
typename TChar>
433 namespace APPENDABLES {
TDec(TFloat value, TNumberFormat< TChar > *numberFormat=nullptr)
TDec(TFloat value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
TDec(TIntegral value, TNumberFormat< TChar > *numberFormat=nullptr)
TNumberFormat< character > * nf
TDec(TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
union alib::strings::TDec::@030245335166200225330311304017013105006232053015 v
The data.
Alignment
Denotes Alignments.
@ Right
Chooses right alignment.
Switch
Denotes if sth. is switched on or off.
@ On
Switch it on, switched on, etc.
constexpr integer MAX_LEN
The maximum length of an ALib string.
strings::TEscape< character > Escape
Type alias in namespace alib.
strings::TDec< character > Dec
Type alias in namespace alib.
strings::TTab< character > Tab
Type alias in namespace alib.
strings::TFill< nchar > NFill
Type alias in namespace alib.
strings::TDec< wchar > WDec
Type alias in namespace alib.
strings::TBin< wchar > WBin
Type alias in namespace alib.
strings::TDec< nchar > NDec
Type alias in namespace alib.
constexpr const String EMPTY_STRING
An empty string of the default character type.
strings::TOct< wchar > WOct
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.
strings::TField< character > Field
Type alias in namespace alib.
strings::TOct< nchar > NOct
Type alias in namespace alib.
strings::TOct< character > Oct
Type alias in namespace alib.
strings::TTab< nchar > NTab
Type alias in namespace alib.
strings::THex< character > Hex
Type alias in namespace alib.
strings::THex< nchar > NHex
Type alias in namespace alib.
strings::TFill< wchar > WFill
Type alias in namespace alib.
strings::TEscape< wchar > WEscape
Type alias in namespace alib.
strings::TField< nchar > NField
Type alias in namespace alib.
strings::TBin< nchar > NBin
Type alias in namespace alib.
strings::TField< wchar > WField
Type alias in namespace alib.
strings::TEscape< nchar > NEscape
Type alias in namespace alib.
strings::TBin< character > Bin
Type alias in namespace alib.
strings::TFill< character > Fill
Type alias in namespace alib.
strings::THex< wchar > WHex
Type alias in namespace alib.
strings::TTab< wchar > WTab
Type alias in namespace alib.
void operator()(TAString< TChar, TAllocator > &target, const TBin< TChar > &src)
void operator()(TAString< TChar, TAllocator > &target, const TDec< TChar > &src)
void operator()(TAString< TChar, TAllocator > &target, const TEscape< TChar > &esc)
void operator()(TAString< TChar, TAllocator > &target, const TFill< TChar > &src)
void operator()(TAString< TChar, TAllocator > &target, const THex< TChar > &src)
void operator()(TAString< TChar, TAllocator > &target, const TOct< TChar > &src)
void operator()(TAString< TChar, TAllocator > &target, const TTab< TChar > &tab)
TBin(TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
TNumberFormat< character > * nf
TBin(TIntegral value, TNumberFormat< TChar > *numberFormat)
TEscape(lang::Switch escape=lang::Switch::On, integer regionStart=0, integer regionLength=MAX_LEN)
integer fieldWidth
The width of the field.
TChar padChar
The characters used for padding the contents within the field.
lang::Alignment alignment
The alignment of the contents within the field.
TField(Box content, integer pWidth, lang::Alignment pAlignment=lang::Alignment::Right, TChar fillChar=' ')
TFill(TChar pFillChar, int pCount)
THex(TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
THex(TIntegral value, TNumberFormat< TChar > *numberFormat)
TNumberFormat< character > * nf
TOct(TIntegral value, TNumberFormat< TChar > *numberFormat)
TNumberFormat< character > * nf
TOct(TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
TTab(integer size, integer referenceIdx=0, integer minPadChars=1, TChar fillChar=' ')