Add empty()

This commit is contained in:
Przemek Pawlas
2023-11-08 14:58:07 +01:00
committed by WarmUpTill
parent e16ac9400a
commit 53a0b76e8c
2 changed files with 7 additions and 0 deletions

View File

@@ -63,6 +63,12 @@ const char *StringVariable::c_str() const
return _resolvedValue.c_str();
}
bool StringVariable::empty() const
{
Resolve();
return _resolvedValue.empty();
}
std::string SubstitueVariables(std::string str)
{
if (!switcher) {

View File

@@ -20,6 +20,7 @@ public:
void operator=(const char *value);
const char *c_str();
const char *c_str() const;
bool empty() const;
const std::string &UnresolvedValue() const { return _value; }