19 #pragma clang diagnostic push
20 #pragma clang diagnostic ignored "-Wreserved-id-macro"
25 #pragma clang diagnostic pop
35, Sizes(&SizesDefaultInstance)
108 if( endConversion < 0 )
172 do switch ( formatSpec.
CharAt( cNo++ ) )
194 while( cNo < 2 && charsToConsume != 1 );
199 while( (actChar= formatSpec.
CharAtStart()) !=
'\0' )
202 if( isdigit( actChar ) )
208 if ( actChar ==
'0' )
222 else if( actChar ==
'.' )
226 - formatSpec.
Length() -1 );
233 - formatSpec.
Length() - 1 );
239 else if (
String(
A_CHAR(
"sdcboxXeEfFngGhHB%" )).IndexOf( actChar ) >= 0 )
247 - formatSpec.
Length() - 1 );
252 - formatSpec.
Length() - 1 );
294 default:
ALIB_ERROR(
"FMT",
"Unhandled character in choices string above" )
302 else switch( actChar )
326 - formatSpec.
Length() - 1,
359 else if( ( c1 ==
'{' && c2 ==
'{')
360 || ( c1 ==
'}' && c2 ==
'}')
366 case 'r': c1=
'\r' ;
break;
372 case 't': c1=
'\t' ;
break;
373 case 'a': c1=
'\a' ;
break;
374 case 'b': c1=
'\b' ;
break;
375 case 'v': c1=
'\v' ;
break;
376 case 'f': c1=
'\f' ;
break;
377 case '"': c1=
'"' ;
break;
378 default: c1=
'?' ;
break;
405 bool isPreProcess= startIdx < 0;
406 bool isPostProcess= startIdx>= 0 && target ==
nullptr;
503 else if ( isPostProcess )
531 if( target !=
nullptr )
const std::type_info & TypeID() const
void InsertDerived(TArgs &&... args)
ALIB_API integer SearchAndReplace(TChar needle, TChar replacement, integer startIdx=0, integer endIdx=strings::MAX_LEN)
TAString & ToLower(integer regionStart=0, integer regionLength=MAX_LEN)
TAString & ToUpper(integer regionStart=0, integer regionLength=MAX_LEN)
TAString & InsertChars(TChar c, integer qty)
TAString & _(const TString< TChar > &src, integer regionStart, integer regionLength=MAX_LEN)
void EnsureRemainingCapacity(integer spaceNeeded)
void SetLength(integer newLength)
TAString & InsertAt(const TString< TChar > &src, integer pos)
constexpr bool IsNull() const
integer IndexOf(TChar needle, integer startIdx=0) const
constexpr bool IsEmpty() const
TChar CharAt(integer idx) const
constexpr bool IsNotEmpty() const
constexpr integer Length() const
TChar CharAtStart() const
integer IndexOfAny(const TString &needles, integer startIdx=0) const
constexpr const TChar * Buffer() const
TString< TChar > ConsumeField(TChar startChar, TChar endChar)
integer ConsumePartOf(const TString< TChar > &consumable, int minChars=1)
integer ConsumeChars(integer regionLength, TSubstring *target=nullptr)
bool ConsumeDecDigits(TIntegral &result)
void Restart(unsigned int startIdx=0)
@ Field
denotes a field width entry.
@ Tabstop
denotes a tab stop entry.
ALIB_API integer Actual(Types type, integer requestedSize, integer growthPadding)
integer Next(Types type, integer requestedSize, integer growthPadding)
#define ALIB_CALLER_NULLED
#define ALIB_WARNINGS_RESTORE
#define ALIB_WARNINGS_ALLOW_UNSAFE_BUFFER_USAGE
@ Include
Chooses inclusion.
platform_specific integer
Switch
Denotes if sth. is switched on or off.
@ On
Switch it on, switched on, etc.
@ Off
Switch it off, switched off, etc.
@ Center
Chooses centered alignment.
@ Right
Chooses right alignment.
@ Left
Chooses left alignment.
lang::Exception Exception
Type alias in namespace alib.
characters::character character
Type alias in namespace alib.