16 return A_CHAR(
"Command Line Arguments");
27 Substring varNameWithoutCategory=
nullptr;
32 varNameWithoutCategory= name.
Substring(defaultCategory.Length());
55 if constexpr (!std::same_as<character, char>) {
56 stringConverter.
Reset(
reinterpret_cast<const char**
>(argV)[i] );
57 cliArg= stringConverter;
60 cliArg=
reinterpret_cast<const character**
>(argV)[i];
63 if constexpr (!std::same_as<character, wchar_t>) {
64 stringConverter.
Reset(
reinterpret_cast<const wchar_t**
>(argV)[i] );
65 cliArg= stringConverter;
68 cliArg=
reinterpret_cast<const character**
>(argV)[i];
112 return A_CHAR(
"Environment Variables");
122 Substring varNameWithoutCategory=
nullptr;
128 target.
Reset(result);
135 varNameWithoutCategory= varName.
Substring(defaultCategory.Length());
139 target.
Reset(result);
#define ALIB_ALLOW_UNREACHABLE_CODE
#define ALIB_POP_ALLOWANCE
integer SearchAndReplace(TChar needle, TChar replacement, integer startIdx=0, integer endIdx=strings::MAX_LEN)
void DbgDisableBufferReplacementWarning()
constexpr bool IsEmpty() const
constexpr bool IsNotEmpty() const
TString< TChar > Substring(integer regionStart, integer regionLength=MAX_LEN) const
bool StartsWith(const TString &needle) const
bool ConsumeString(const TString< TChar > &consumable)
TSubstring & Trim(const TCString< TChar > &whiteSpaces=CStringConstantsTraits< TChar >::DefaultWhitespaces())
uint8_t QtyMandatoryHyphens
CLIVariablesPlugin(MonoAllocator &ma, Priority pPriority=Priority::CLI)
StringVectorMA DefaultCategories
uint8_t QtyOptionalHyphens
virtual String Name() const override
StringVectorMA AlternativeArgs
virtual bool Get(const String &name, AString &target) override
ConfigurationPlugin(Priority pPriority)
EnvironmentVariablesPlugin(MonoAllocator &ma, Priority pPriority=Priority::Environment)
StringVectorMA DefaultCategories
virtual bool Get(const String &name, AString &target) override
virtual String Name() const override
@ Keep
Chooses not no clear existing data.
@ Keep
Keep whitespaces in string.
monomem::TMonoAllocator< lang::HeapAllocator > MonoAllocator
strings::TString< character > String
Type alias in namespace #"%alib".
strings::TSubstring< character > Substring
Type alias in namespace #"%alib".
camp::Basecamp BASECAMP
The singleton instance of ALib Camp class #"Basecamp".
LocalString< 256 > String256
Type alias name for #"TLocalString;TLocalString<character,256>".
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace #"%alib".
characters::character character
Type alias in namespace #"%alib".
static bool Get(const CString &varName, AString &target, lang::CurrentData targetData=lang::CurrentData::Clear)