mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-11 11:47:41 -05:00
Add empty()
This commit is contained in:
committed by
WarmUpTill
parent
e16ac9400a
commit
53a0b76e8c
@@ -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) {
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user