8#if !defined(ALIB_C20_MODULES) || ((ALIB_C20_MODULES != 0) && (ALIB_C20_MODULES != 1))
9# error "Symbol ALIB_C20_MODULES has to be given to the compiler as either 0 or 1"
22 module ALib.ALox.init;
24 import ALib.Containers.List;
27 import ALib.EnumRecords;
28 import ALib.EnumRecords.Bootstrap;
29 import ALib.Variables;
31 import ALib.Camp.Base;
49 while( (startIdx= target.
IndexOf(
'\033', startIdx ) ) >= 0 ) {
57 if( c ==
'c' || c ==
'C' ) {
61 case 0: code=
A_CHAR(
"RED") ;
break;
62 case 1: code=
A_CHAR(
"GREEN") ;
break;
63 case 2: code=
A_CHAR(
"YELLOW") ;
break;
64 case 3: code=
A_CHAR(
"BLUE") ;
break;
65 case 4: code=
A_CHAR(
"MAGENTA") ;
break;
66 case 5: code=
A_CHAR(
"CYAN") ;
break;
67 case 6: code=
A_CHAR(
"BLACK") ;
break;
68 case 7: code=
A_CHAR(
"WHITE") ;
break;
69 case 8: code=
A_CHAR(
"GRAY") ;
break;
70 case 9: code=
A_CHAR(
"RESET") ;
break;
71 default: code=
A_CHAR(
"COL_ERR");
break;
79 case 'B': code=
A_CHAR(
"BOLD") ;
break;
80 case 'I': code=
A_CHAR(
"ITALICS") ;
break;
81 case 'r': code=
A_CHAR(
"STYLE_RESET") ;
break;
82 case 'a': code=
A_CHAR(
"RESET") ;
break;
83 default: code=
A_CHAR(
"STYLE_ERR") ;
break;
89 case 'S': code=
A_CHAR(
"URL_START") ;
break;
90 case 'E': code=
A_CHAR(
"URL_END") ;
break;
91 default: code=
A_CHAR(
"URL_ERR") ;
break;
95 else if( c ==
't' && c2 ==
'0' ) code=
A_CHAR(
"TAB");
96 else if( c ==
'A' && c2 ==
'0' ) code=
A_CHAR(
"EOMETA");
99 val.
_<
NC>(code)._(
'}');
static ALIB_DLL void ReplaceToReadable(AString &target, integer startIdx)
TAString & ReplaceSubstring(const TString< TChar > &src, integer regionStart, integer regionLength)
TAString & _(const TAppendable &src)
integer IndexOf(TChar needle, integer startIdx=0) const
TChar CharAt(integer idx) const
#define ALIB_BOXING_VTABLE_DEFINE(TMapped, Identifier)
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.
lang::integer integer
Type alias in namespace alib.
LocalString< 32 > String32
Type alias name for TLocalString<character,32>.
characters::character character
Type alias in namespace alib.