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 ) {
v.value= int64_t(
value); }
95 template<
typename TIntegral>
96 requires std::integral<TIntegral>
101 ,
valueType( std::numeric_limits<TIntegral>::is_signed ? 1 : 2 ) {
v.value= int64_t(
value); }
113 template<
typename TFloat>
114 requires std::floating_point<TFloat>
116 int overrideWidth= 0,
119 ,
width (overrideWidth)
129 template<
typename TFloat>
130 requires std::floating_point<TFloat>
152template<
typename TChar>
186template<
typename TChar>
195 TField(
const TString<TChar>& content,
198 TChar fillChar =
' ' )
221template<
typename TChar>
257template<
typename TChar>
279 template<
typename TIntegral>
281 int overrideWidth= 0,
285 ,
nf (numberFormat) {}
294 template<
typename TIntegral>
298 ,
nf (numberFormat) {}
312template<
typename TChar>
333 template<
typename TIntegral>
337 ,
nf (numberFormat) {}
345 template<
typename TIntegral>
349 ,
nf (numberFormat) {}
362template<
typename TChar>
383 template<
typename TIntegral>
387 ,
nf (numberFormat) {}
396 template<
typename TIntegral>
400 ,
nf (numberFormat) {}
408template<
typename TChar>
429 namespace APPENDABLES {
TDec(TFloat value, TNumberFormat< TChar > *numberFormat=nullptr)
TDec(TFloat value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
union alib::strings::TDec::@250162344364232072022327240003340353234213071270 v
The data.
TDec(TIntegral value, TNumberFormat< TChar > *numberFormat=nullptr)
TNumberFormat< character > * nf
TDec(TIntegral value, int overrideWidth=0, TNumberFormat< TChar > *numberFormat=nullptr)
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=' ')